File: tMSReader.run

package info (click to toggle)
casacore 3.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,912 kB
  • sloc: cpp: 471,569; fortran: 16,372; ansic: 7,416; yacc: 4,714; lex: 2,346; sh: 1,865; python: 629; perl: 531; sed: 499; csh: 201; makefile: 32
file content (24 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

if [ ${#AIPSPATH} = 0 ]
then 
   echo "UNTESTED: tMSReader (AIPSPATH not defined)"
   exit 3
fi

DATAFILE=`echo $AIPSPATH | awk '{print $1}'`/data/demo/dishdemo/dishdemo1.fits

if [ -f $DATAFILE ]
then
   $casa_checktool ./sdfits2ms $DATAFILE tMSReader_tmp.ms
   if [ -d tMSReader_tmp.ms ]
   then
      $casa_checktool ./tMSReader tMSReader_tmp.ms
   else
      echo "FAIL: tMSReader, could not create tMSReader.ms from" $DATAFILE
      exit 3
   fi
else
   echo "UNTESTED: tMSReader, could not find the test data" $DATAFILE
   exit 3
fi