Sanity tests

From CARMA
(Difference between revisions)
Jump to: navigation, search
(Miriad Sanity Tests)
Line 1: Line 1:
 
== Miriad Sanity Tests ==
 
== Miriad Sanity Tests ==
  
* Generating (from scratch) and displaying an image in miriad:
+
* Generating an image and displaying it in miriad:
  
 
   % imgen out=map0
 
   % imgen out=map0
Line 10: Line 10:
  
  
The important thing to note is the last line, if endianism is wrong on your machine, the last 4 bytes might read as 2,0,0,0 instead of 0,0,0,2.   Now display the data
+
The important thing to note is the last line, if endianism is wrong on your machine, the last 4 bytes might read as 2,0,0,0 instead of 0,0,0,2. As in FITS files, data in miriad are stored in a big-endian fashion, which means on intel chips (little-endian) data will need to be byte swapped.
 +
 
 +
Now display the data
  
 
   % implot in=map0 device=/xs
 
   % implot in=map0 device=/xs
Line 16: Line 18:
 
   % mirds9 map0
 
   % mirds9 map0
  
* Getting a dataset from the archive and displaying some basic visibility data
+
* Getting a Carma visibility dataset from the archive and displaying some basic properties of the data
  
 
   % wget -O - http://carma-server.ncsa.uiuc.edu:8080/sciarch/data/fringe.3C345.2007feb02.2.miriad.tar.gz | tar zxf -
 
   % wget -O - http://carma-server.ncsa.uiuc.edu:8080/sciarch/data/fringe.3C345.2007feb02.2.miriad.tar.gz | tar zxf -

Revision as of 13:23, 11 February 2007

Miriad Sanity Tests

  • Generating an image and displaying it in miriad:
 % imgen out=map0
 % hexdump -C map0/header | tail
 ...
 000001c0  6e 61 78 69 73 00 00 00  00 00 00 00 00 00 00 08  |naxis...........|
 000001d0  00 00 00 02 00 00 00 02                           |........|


The important thing to note is the last line, if endianism is wrong on your machine, the last 4 bytes might read as 2,0,0,0 instead of 0,0,0,2. As in FITS files, data in miriad are stored in a big-endian fashion, which means on intel chips (little-endian) data will need to be byte swapped.

Now display the data

 % implot in=map0 device=/xs
 % ds9 &
 % mirds9 map0
  • Getting a Carma visibility dataset from the archive and displaying some basic properties of the data
 % wget -O - http://carma-server.ncsa.uiuc.edu:8080/sciarch/data/fringe.3C345.2007feb02.2.miriad.tar.gz | tar zxf -
or
 % curl http://carma-server.ncsa.uiuc.edu:8080/sciarch/data/fringe.3C345.2007feb02.2.miriad.tar.gz | tar zxf -
 % itemize in=fringe.3C345.2007feb02.2.miriad
 Itemize: Version 22-jun-02
   obstype  = mixed-auto-cross
   nwcorr   = 4410
   ncorr    = 66150
   vislen   = 366512
   vartable   (text data, 660 elements)
   wflags     (integer data, 143 elements)
   visdata    (binary data, 366508 elements)
   history    (unknown data, 0 elements)
   flags      (integer data, 2134 elements)


 % uvplt vis=fringe.3C345.2007feb02.2.miriad device=/xs
  • wip: give the following commands to see if you have your environment setup correctly:
 % wip -d /ps
 WIP> box
 WIP> hardcopy
 WIP> end
 % wip -d /xs
 WIP> box
 WIP> end
 % wip -d /gif
 WIP> box
 WIP> hardcopy
 WIP> end
Personal tools