Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | image |
header | out | Header information | |
Default: | empty | ||
doppler | in | If there is a spectral axis, list velocity too, with this doppler definition | |
Allowed: | String | ||
Default: | RADIO | ||
list | in | List the summary to the logger | |
Allowed: | T or F | ||
Default: | T | ||
pixelorder | in | List axis descriptors in pixel or world axis order | |
Allowed: | T or F | ||
Default: | T |
This function summarizes miscellaneous information such as shape, Coordinate System, restoring beams, and masks.
If called without any arguments, this function displays a summary of the image header to the logger only; where appropriate, values will be formatted nicely (e.g. HH:MM:SS.SS for the reference value of RA axes).
For spectral axes, the information is listed as a velocity as well as a frequency. The argument doppler allows you to specify what velocity doppler convention it is listed in. You can choose from radio, optical and true. Alternative names are z for optical, and beta or relativistic for true. The default is radio. The definitions are
If the header argument is supplied, that argument will be a Glish record with the following fields filled in:
If you set list=F, then the summary will not be written to the logger. However, in addition to the output record, the return value of the function will be a vector strings containing the formatted output that would normally have gone to the logger. If list=T the return value is always T or a fail.
- im := image('myim1') - im.summary() # summarize to logging only Image name : test Image mask : mask0 [mask1, mask2] Image units : JY/BEAM Direction reference : J2000 Spectral reference : LSRK Velocity type : RADIO Rest frequency : 1.42041e+09 Hz Telescope : ATCA Observer : NEBK Date observation : 1997/02/121/03:03:26 Axis Type Name Proj Shape Tile Coord value at pixel Coord incr Units ------------------------------------------------------------------------------------------ 1 Direction Right Ascension SIN 512 10 00:00:00.000 6.00 -6.000000e+01 arcsec 2 Direction Declination SIN 512 20 +00.00.00.000 11.00 6.000000e+01 arcsec 3 Spectral Frequency 1024 30 1.415000e+09 16.00 1.000000e+03 Hz Velocity 1.140944e+03 16.00 -2.110611e-01 km/s - im.summary(header,list=F) # store header in Glish record - if (header.ndim == 3) ... # program using header values
Note that the Spectral Coordinate is listed twice; once with frequency and once with velocity units. You can distinguish this double listing because the shape of the axis is only listed once (in this case on the Frequency line).
Note also that this image has three masks present. The first one is the default which means that it is applied by applications. Any of the other masks, listed in square brackets, could be made the default mask by application of the maskhandler function. If there was no default mask (effectively that means an all good mask would be applied), all the mask names would be listed in square brackets.