Astro-FITS-HdrTrans
view release on metacpan or search on metacpan
lib/Astro/FITS/HdrTrans/ClassicCam.pm view on Meta::CPAN
my @pos = split( /:/, $sexa );
$hms = 15.0 * ( $pos[ 0 ] + $pos[ 1 ] / 60.0 + $pos [ 2 ] / 3600. );
}
return $hms;
}
=item B<quad_bounds>
Returns the detector bounds in pixels of the region of the detector
used. The region will be one of the four quadrants or the full
detector. We guess for the moment that keword C<QUAD> values of
1, 2, 3, 4 correspond to lower-left, lower-right, upper-left,
upper-right quadrants respectively, and 5 is the whole
256x256-pixel array.
=cut
sub quad_bounds {
my $self = shift;
my $FITS_headers = shift;
my @bounds = ( 1, 1, 256, 256 );
lib/Astro/FITS/HdrTrans/ESO.pm view on Meta::CPAN
my $self = shift;
my $FITS_headers = shift;
my $dec = 0.0;
if ( exists ( $FITS_headers->{DEC} ) ) {
$dec = $FITS_headers->{DEC};
}
$dec = defined( $dec ) ? $dec: 0.0;
return $dec;
}
# This is guesswork at present. It's rather tied to the UKIRT names
# and we need generic names or use instrument-specific values in
# instrument-specific primitives, and pass the actual value for the
# night log. Could do with separate CHOPPING, BIAS booleans
# to indicate whether or not chopping is enabled and whether or not the
# detector mode needs a bias removed, like UKIRT's STARE mode.
sub to_DETECTOR_READ_TYPE {
my $self = shift;
my $FITS_headers = shift;
my $read_type;
my $chop = $FITS_headers->{"HIERARCH.ESO.TEL.CHOP.ST"};
lib/Astro/FITS/HdrTrans/INGRID.pm view on Meta::CPAN
# The sense is reversed compared with UKIRT, as these measure the
# place son the sky, not the motion of the telescope.
return -1.0 * $decoffset
}
=item B<to_DETECTOR_READ_TYPE>
Returns the UKIRT-like detector type "STARE" or "NDSTARE" from the
FITS C<REDMODE> and C<NUMREADS> keywords.
This is guesswork at present.
=cut
sub to_DETECTOR_READ_TYPE {
my $self = shift;
my $FITS_headers = shift;
my $read_type;
my $readout_mode = $FITS_headers->{READMODE};
my $nreads = $FITS_headers->{NUMREADS};
if ( $readout_mode =~ /^mndr/i ||
( run in 1.367 second using v1.01-cache-2.11-cpan-702932259ff )