IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2026, 3:08:04 PM (4 weeks ago)
Author:
eugene
Message:

add -mjd-obs; add chip & cell names to output test file; more trace verbosity; fix chebyshev scales for bias variations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimUtils.c

    r43042 r43068  
    134134    float zeropoint = psMetadataLookupF32(NULL, recipe, "ZEROPOINT"); // Detector Temperature
    135135
     136    float MJDobs    = psMetadataLookupF32(NULL, recipe, "MJD.OBS"); // observation MJD
     137
    136138    const char *filter = psMetadataLookupStr(NULL, recipe, "FILTER"); // Filter name
    137139    if (!filter) {
     
    156158    psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "FPA.ZP",        PS_META_REPLACE, "Zero Point", zeropoint);
    157159
    158     // test time
    159     psTime *obstime = psTimeFromMJD (55440.0);
     160    // set time of the observation
     161    psTime *obstime = isfinite(MJDobs) ? psTimeFromMJD (MJDobs) : psTimeFromMJD (60000.0);
    160162    psMetadataAddTime(fpa->concepts, PS_LIST_TAIL, "FPA.TIME", PS_META_REPLACE, "sample time", obstime);
    161163
Note: See TracChangeset for help on using the changeset viewer.