imheadlist

Return to directory of Todd's CASA extensions

Emulates CASA's imhead(mode='list'), but runs faster for large cubes because it does not read the binary data, and thus omits the min/max/minpos/maxpos keys of the dictionary returned.

Usage:

au.imheadlist(vis, omitBeam=False)

Example:

CASA <6>: au.imheadlist('c18o.image')
  Out[6]:
{'beammajor': {'unit': 'arcsec', 'value': 1.644845724105835},
 'beamminor': {'unit': 'arcsec', 'value': 1.4877198934555054},
 'beampa': {'unit': 'deg', 'value': -72.08570861816406},
 'bunit': 'Jy/beam',
 'cdelt1': {'unit': 'rad', 'value': -9.69627362219072e-07},
 'cdelt2': {'unit': 'rad', 'value': 9.69627362219072e-07},
 'cdelt3': {'unit': '', 'value': 1.0},
 'cdelt4': {'unit': 'Hz', 'value': -61519.460357666016},
 'crpix1': 225.0,
 'crpix2': 225.0,
 'crpix3': 0.0,
 'crpix4': 0.0,
 'crval1': {'unit': 'rad', 'value': 3.1485666983925533},
 'crval2': {'unit': 'rad', 'value': -1.1370297544557557},
 'crval3': array(['I'],
      dtype='|S2'),
 'crval4': {'unit': 'Hz', 'value': 219566658421.0},
 'ctype1': 'Right Ascension',
 'ctype2': 'Declination',
 'ctype3': 'Stokes',
 'ctype4': 'Frequency',
 'cunit1': 'rad',
 'cunit2': 'rad',
 'cunit3': '',
 'cunit4': 'Hz',
 'date-obs': '2015/01/17/07:21:44',
 'equinox': 'J2000',
 'imtype': 'Intensity',
 'masks': array(['mask0'],
      dtype='|S6'),
 'object': 'BHR71_C18O',
 'observer': 'jjtobin',
 'projection': 'SIN',
 'reffreqtype': 'LSRK',
 'restfreq': {'unit': 'Hz', 'value': 219560360000.0},
 'shape': array([450, 450,   1, 100], dtype=int32),
 'telescope': 'ALMA'}
-- ToddHunter - 2016-02-09
Topic revision: r2 - 2016-02-13, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback