[daip] Quick question -- how to display an image

Eric Greisen egreisen at nrao.edu
Fri Nov 30 17:38:29 EST 2007


Bryan E. Penprase writes:
 >  >mcat
 > AIPS 1: Catalog on disk  1
 > AIPS 1:  Cat Usid Mapname      Class   Seq  Pt     Last access      Stat
 > AIPS 1:   13    2 0137+331    .ICL001.    1 MA 28-NOV-2007 21:36:20
 > AIPS 1:   14    2 2323-032    .ICL001.    1 MA 28-NOV-2007 21:39:03
 > AIPS 1:   15    2 URANUS      .ICL001.    1 MA 28-NOV-2007 21:41:29
 > AIPS 1:   20    2 0137+331    .ICL001.    2 MA 28-NOV-2007 22:41:57
 > AIPS 1:   21    2 0334-401    .ICL001.    1 MA 28-NOV-2007 22:43:55
 > AIPS 1:   22    2 NGC1316     .ICL001.    1 MA 28-NOV-2007 22:48:30
 > AIPS 1:   30    2 0137+331    .IBM001.    1 MA 28-NOV-2007 22:51:01
 > AIPS 1:   31    2 0137+331    .IBM002.    1 MA 28-NOV-2007 22:51:07
 > AIPS 1:   32    2 0137+331    .IBM003.    1 MA 28-NOV-2007 22:51:15
 > AIPS 1:   33    2 0137+331    .IBM004.    1 MA 28-NOV-2007 22:51:22
 > AIPS 1:   34    2 0137+331    .IBM005.    1 MA 28-NOV-2007 22:51:37
 > AIPS 1:   35    2 0137+331    .IBM006.    1 MA 28-NOV-2007 22:51:48
 > AIPS 1:   36    2 0137+331    .IBM007.    1 MA 28-NOV-2007 22:52:00
 > AIPS 1:   37    2 0137+331    .ICL001.    3 MA 28-NOV-2007 22:52:22
 > AIPS 1:   38    2 0137+331    .ICL002.    1 MA 28-NOV-2007 22:52:41
 > AIPS 1:   45    2 0137+331    .IBM001.    2 MA 28-NOV-2007 23:01:30
 > AIPS 1:   46    2 0137+331    .IBM002.    2 MA 28-NOV-2007 23:01:35
 > AIPS 1:   47    2 0137+331    .IBM003.    2 MA 28-NOV-2007 23:01:40
 > AIPS 1:   48    2 0137+331    .IBM004.    2 MA 28-NOV-2007 23:01:43
 > AIPS 1:   49    2 0137+331    .IBM005.    2 MA 28-NOV-2007 23:01:49
 > AIPS 1:   50    2 0137+331    .IBM006.    2 MA 28-NOV-2007 23:01:55
 > 
 > This looks like a good development to me.
 > 
 > How do I display any of these?
 > 
 > I have tried a few things, including "greys", using the cookbook 
 > information, but I get errors. Thanks for any information.
 > 
 > Below is my input to GREYS and the result:
 > 
 > AIPS 1: GREYS:  Task to do  grey-scale plot with optional contours.
 > AIPS 1: Adverbs     Values                 Comments
 > AIPS 1: ----------------------------------------------------------------
 > AIPS 1: DOCONT        1                    > 0 => do contours
 > AIPS 1: DOCOLOR       1                    Plot image(s) as true color
 > AIPS 1: INNAME     '0137+331'              Grey scale image name
 > AIPS 1: INCLASS    'LINE'                  Grey scale image class
 > AIPS 1: INSEQ         0                    Grey scale image seq. #
 > AIPS 1: INDISK        1                    Grey scale disk drive #
 > AIPS 1: IN2NAME    ' '                     Contour image name
 > AIPS 1: IN2CLASS   ' '                     Contour image class
 > AIPS 1: IN2SEQ        0                    Contour image seq. #
 > AIPS 1: IN2DISK       0                    Contour image disk drive #
 > AIPS 1: IN3NAME    ' '                     Green image name
 > AIPS 1: IN3CLASS   ' '                     Green image class
 > AIPS 1: IN3SEQ        0                    Green image seq. #
 > AIPS 1: IN3DISK       0                    Green image disk drive #
 > AIPS 1: IN4NAME    ' '                     Blue image name
 > AIPS 1: IN4CLASS   ' '                     Blue image class
 > AIPS 1: IN4SEQ        0                    Blue image seq. #
 > AIPS 1: IN4DISK       0                    Blue image disk drive #
 > AIPS 1: BLC        *all 0                  Bottom left corner of image
 > AIPS 1:                                      0=>entire image
 > AIPS 1: TRC        *all 0                  Top right corner of image
 > AIPS 1:                                      0=>entire image. See HELP!
 > AIPS 1: XYRATIO       0                    X to Y axis plot ratio. 0 =>
 > AIPS 1:                                    header inc or window ratio.
 > AIPS 1: PIXRANGE      0           0        Min,Max of image intensity
 > AIPS 1:                                      0 => entire range.
 > AIPS 1: FUNCTYPE   ' '                     Image intensity transfer func
 > AIPS 1:                                      'LN' Linear.  unknown=>'LN'
 > AIPS 1:                                      'LG' Logarithmic
 > AIPS 1:                                      'L2' More logarithmic
 > AIPS 1:                                      'SQ' Square root
 > AIPS 1:                                      'NE' Negative linear
 > AIPS 1:                                      'NG' Negative logarithmic
 > AIPS 1:                                      'N2' Negative more log.
 > AIPS 1:                                      'NQ' Negative square root
 > AIPS 1: APARM      *all 0                  1,2 pixrange of green image
 > AIPS 1:                                    3,4 pixrange of red image
 > AIPS 1: LTYPE         3                    Type of labeling: 1 border,
 > AIPS 1: ** press RETURN for more, enter Q or next line to quit print **
 > 
 > The result is:
 > 
 > ERROR  3 ON UNIT TTDEV04         , GETTING HOST/SERVICE BY NAME
 >  ZMSGOP: ZTTOPN RETURNS ERROR =   1 FOR LUN =   6
 > GREYS1: 0137+331    .LINE  .   0 MA    2 NOT FOUND
 > GREYS1: Purports to die of UNNATURAL causes
 > GREYS1: bryan-penpra 31DEC07 TST: Cpu=        .0  Real=       0
 > AIPS 1: Resumes
 > AIPS 1: RETURN CODE      8 RECEIVED: STOPPING
 >  >

The TTDEV message is due to not having done the Inet services.  This
comes from trying to reach the message server that cannot be reached.

The impportant lines are the next two - you need to do a GETN(n)
where n matches the "cat" number of the desired image.  The name
parameter given to GREYS is probably for a UV data set and greys only
works on images.

See my previous message about the services and the Tv shared memory
issues.

Eric Greisen




More information about the Daip mailing list