IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19012


Ignore:
Timestamp:
Aug 11, 2008, 2:55:38 PM (18 years ago)
Author:
Paul Price
Message:

Adjust MJD-OBS for output from start to mid-point of exposure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_mops_translate.pl

    r18151 r19012  
    6565    'FPA.ALT'      => { name => 'TEL_ALT',  type => TDOUBLE, comment => 'Telescope altitude' },
    6666    'FPA.AZ'       => { name => 'TEL_AZ',   type => TDOUBLE, comment => 'Telescope azimuth' },
    67     'MJD-OBS'      => { name => 'MJD-OBS',  type => TDOUBLE, comment => 'Time of exposure' },
    6867            };
    6968
     
    176175}
    177176
     177# Adjust the time from start to mid-point
     178{
     179    my $mjd = $inHeader->{'MJD-OBS'} or die "Can't find MJD.\n"; # Modified Julian Date
     180    my $exptime = $inHeader->{'EXPTIME'} or die "Can't find EXPTIME.\n"; # Exposure time, seconds
     181    $mjd += $exptime / 2.0;     # start --> mid-point
     182    $outFiles->write_key( TDOUBLE, 'MJD-OBS', $mjd, 'Time of exposure mid-point', $status);
     183    check_fitsio( $status );
     184}
     185
    178186# Stellar PSF
    179187my $fwhm = 0.5 * 3600 * ($inHeader->{'FWHM_X'} * $cdelt1 + $inHeader->{'FWHM_Y'} * $cdelt2); # FWHM for star
Note: See TracChangeset for help on using the changeset viewer.