~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to outside/pixcheck.sh

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
3
# script pixcheck for emulating INTAPE/FITS in Midas
 
4
# using keyword file "INTAPE.KEY"
 
5
# to check for correct no. of data values in FITS file
 
6
 
7
# execute as $ pixcheck FITS-file [YES]
 
8
# if 2nd param. given, full listing is shown
 
9
 
10
# K. Banse      DMD/DFS, ESO - Garching
 
11
# 041112        creation
 
12
 
13
  
 
14
# fill keyword file
 
15
 
 
16
echo "p1/c/1/40 1                                           " > INTAPE.KEY
 
17
echo "p2/c/1/40 toto                                        " >> INTAPE.KEY
 
18
echo "p3/c/1/128 $1" >> INTAPE.KEY
 
19
if [ $# -lt 2 ]; then
 
20
##   echo "p4/c/1/3 NNN " >> INTAPE.KEY
 
21
   echo "p4/c/1/3 SON " >> INTAPE.KEY
 
22
else
 
23
   echo "p4/c/1/3 FOY " >> INTAPE.KEY
 
24
fi
 
25
echo "p5/c/1/8 9999    " >> INTAPE.KEY
 
26
 
 
27
# switch to outside mode + execute
 
28
export MIDAS_OUTSIDE=1
 
29
$MID_EXE/intape.exe
 
30
 
31
# get rid of created Midas file
 
32
rm -f toto0001.*