Astro::FITS::HdrTrans::JCMT_GSD - JCMT GSD Header translations


Astro-FITS-HdrTrans documentation  | view source Contained in the Astro-FITS-HdrTrans distribution.

Index


NAME

Top

Astro::FITS::HdrTrans::JCMT_GSD - JCMT GSD Header translations

DESCRIPTION

Top

Converts information contained in JCMT heterodyne instrument headers to and from generic headers. See Astro::FITS::HdrTrans for a list of generic headers.

METHODS

Top

can_translate

Returns true if the supplied headers can be handled by this class.

  $cando = $class->can_translate( \%hdrs );

For this class, the method will return true if the C1RCV header exists and matches the regular expression /^rx(a|b|w)/i.

COMPLEX CONVERSIONS

Top

These methods are more complicated than a simple mapping. We have to provide both from- and to-FITS conversions All these routines are methods and the to_ routines all take a reference to a hash and return the translated value (a many-to-one mapping) The from_ methods take a reference to a generic hash and return a translated hash (sometimes these are many-to-many)

to_INSTRUMENT

Sets the INSTRUMENT generic header. For RxA3i, sets the value to RXA3. For RxB, sets the value to RXB3.

to_OBSERVATION_ID

Calculate a unique Observation ID.

to_UTDATE

Translates the C3DAT header into a YYYYMMDD integer.

from_UTDATE

Translates YYYYMMDD integer to C3DAT header.

to_UTSTART

Translates the C3DAT and C3UT headers into a Time::Piece object.

to_UTEND

Translates the C3DAT, C3UT, C3NIS, C3CL, C3NCP, and C3NCI headers into a Time::Piece object.

to_BANDWIDTH_MODE

Uses the C3NRS (number of backend sections), C3NFOC (number of frontend output channels) and C3NCH (number of channels) to form a string that is of the format 250MHzx2048. To obtain this, the bandwidth (250MHz in this example) is calculated as 125MHz * C3NRS / C3NFOC. The number of channels is taken directly and not manipulated in any way.

If appropriate, the bandwidth may be given in GHz.

to_EXPOSURE_TIME
to_SYSTEM_VELOCITY

Translate the C12VREF and C12VDEF headers into one combined header.

REVISION

Top

$Id$

AUTHOR

Top

Brad Cavanagh <b.cavanagh@jach.hawaii.edu>, Tim Jenness <t.jenness@jach.hawaii.edu>

COPYRIGHT

Top


Astro-FITS-HdrTrans documentation  | view source Contained in the Astro-FITS-HdrTrans distribution.