Sanity tests

From CARMA
(Difference between revisions)
Jump to: navigation, search
 
Line 4: Line 4:
  
 
   % imgen out=map0
 
   % imgen out=map0
   % hd map0/header | tail
+
   % od -x map0/header | tail
 
   ...
 
   ...
   000001C0 6E 61 78 69 73 00 00 00 00 00 00 00 00 00 00 08    naxis...........
+
   0000720 0000 0200 0000 0200
   000001D0 00 00 00 02 00 00 00 02                            ........
+
   0000730
 +
 
  
 
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.    Now display the data
Line 17: Line 18:
 
* Getting a dataset from the archive and displaying some basic visibility data
 
* Getting a dataset from the archive and displaying some basic visibility data
  
   % wget  
+
   % wget -O - http://carma-server.ncsa.uiuc.edu:8080/sciarch/data/fringe.3C345.2007feb02.2.miriad.tar.gz | tar zxf -
 
  or
 
  or
   % curl
+
   % curl http://carma-server.ncsa.uiuc.edu:8080/sciarch/data/fringe.3C345.2007feb02.2.miriad.tar.gz | tar zxf -
  
   % uvplt vis=...
+
   % uvplt vis=fringe.3C345.2007feb02.2.miriad device=/xs
  
 
* wip:  give the following commands to see if you have your environment setup correctly:
 
* wip:  give the following commands to see if you have your environment setup correctly:

Revision as of 00:36, 8 February 2007

Miriad Sanity Tests

  • Generating (from scratch) and displaying an image in miriad:
 % imgen out=map0
 % od -x map0/header | tail
 ...
 0000720 0000 0200 0000 0200
 0000730


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

 % implot in=map0 device=/xs
 % ds9 &
 % mirds9 map0
  • Getting a dataset from the archive and displaying some basic visibility 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 -
 % 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