IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22677


Ignore:
Timestamp:
Feb 25, 2009, 6:11:50 PM (17 years ago)
Author:
Paul Price
Message:

Need to explicitly set the time type to the TIMESYS value.
Previously, parsed times were implicitly TAI (because that's psTime's
default type), which doesn't necessarily match the real type, leading
to errors in the output time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r21183 r22677  
    116116                        if (!isfinite(gain)) {
    117117                            psWarning("CELL.READNOISE is supposed to be in ADU, but CELL.GAIN isn't set -- forcing to 1.0");
    118                             gain = 1.0;
     118                            gain = 1.0;
    119119                        }
    120120                        rn /= gain;
     
    876876        return NULL;
    877877    }
     878
     879    time->type = timeSys;
    878880
    879881    psMetadataItem *item = psMetadataItemAllocPtr(pattern->name, PS_DATA_TIME, pattern->comment, time);
Note: See TracChangeset for help on using the changeset viewer.