IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2008, 10:49:45 AM (18 years ago)
Author:
eugene
Message:

adding format_20080925 to handle mismatch between SHUTOUTC and db times; format_orig needs to use MJD-OBS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/gpc1/format_orig.config

    r20009 r20021  
    99        NAMPS           S32     64
    1010END
     11
     12#       The most accurate keyword for the time/date is SHUTOUTC, but
     13#       until 2009/9/30, there was a bug which set the month off by 1.
     14#       The prior formats use MJD-OBS for time/date, and this is set
     15#       in the db.  SHUTDAVR is supposed to be the key to the new
     16#       shutter driver, but there were earlier periods where the value
     17#       was 1.21, so we are keying on the MJD of the change.  Also
     18#       note that historically (early 2008), SHUTOUTC was not
     19#       available, forcing MJD-OBS in those periods.
    1120
    1221# How to read this data
     
    180189        FPA.POSANGLE    STR     POSANGLE
    181190        FPA.FOCUS       STR     M2Z
    182         FPA.TIME        STR     SHUTOUTC
     191        FPA.TIME        STR     MJD-OBS
    183192        FPA.ALT         STR     ALT
    184193        FPA.AZ          STR     AZ
     
    285294        CELL.EXPOSURE   STR     EXPTIME         # Exposure time measured by shutter
    286295        CELL.DARKTIME   STR     DARKTIME        # Exposure time for camera
    287         CELL.TIME       STR     SHUTOUTC                # Observation time
     296        CELL.TIME       STR     MJD-OBS         # Observation time
    288297END
    289298
     
    569578        CHIP.TEMP.DEPEND        STR     CHIP.NAME
    570579        CHIP.TEMP               METADATA
    571                 # Need to apply correction of 1 month since header still contains bug but database corrected.
    572                 XY24    STR     SELECT AVG(ccd_temp) FROM rawImfile WHERE (dateobs - INTERVAL 1 MONTH BETWEEN '{FPA.TIME}' - INTERVAL 2 SECOND AND '{FPA.TIME}' + INTERVAL 2 SECOND) AND class_id != 'XY24'
     580                XY24    STR     SELECT AVG(ccd_temp) FROM rawImfile WHERE dateobs = '{FPA.TIME}' AND class_id != 'XY24'
    573581        END
    574582END
     
    581589        FPA.LONGITUDE   STR     HOURS
    582590        FPA.LATITUDE    STR     DEGREES
    583         FPA.TIME        STR     YEAR.FIRST
    584         CELL.TIME       STR     YEAR.FIRST
     591        FPA.TIME        STR     MJD
     592        CELL.TIME       STR     MJD
    585593        CELL.BINNING    STR     TOGETHER
    586594        CELL.X0         STR     FORTRAN
Note: See TracChangeset for help on using the changeset viewer.