IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#393 closed defect (fixed)

Configuration file types

Reported by: Eric.VanAlst@… Owned by: jhoblitt
Priority: normal Milestone:
Component: PSLib SDRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

In SDR-14 section 5.1.4.2.1 mentions valid time types are UTC, UT1, TAI, and TT
but there is no corresponding type defined in psMetadataType in section 5.1.2.
There is also a comment that time type values be in ISO8601 format, but there
is no time type specified.

Change History (2)

comment:1 by Paul Price, 21 years ago

Owner: changed from Paul Price to jhoblitt

comment:2 by jhoblitt, 21 years ago

Resolution: fixed
Status: newclosed

UTC, UT1, TAI, and TT are psTimeTypes and as such are only relevant to a psTime
object. A psTime objects is what would be stored in a psMetadataItem. I hope
that answers your question. However, I did notice that there was no meta flag
for psTimes in psMetadataType.

The following change to the SDRS has been made:

Index: psLibSDRS.tex
===================================================================
RCS file:
/usr/local/cvs/repositories/pan-starrs/datasys/IP3/doc/PSLib/psLibSDRS.tex,v
retrieving revision 1.211
diff -u -r1.211 psLibSDRS.tex
--- psLibSDRS.tex 2 May 2005 21:04:26 -0000 1.211
+++ psLibSDRS.tex 5 May 2005 03:10:42 -0000
@@ -3769,6 +3769,7 @@

PS_META_JPEG, /< JPEG data (Stored as item.data.V).
PS_META_PNG,
/< PNG data (Stored as item.data.V).
PS_META_ASTROM, /< Astrometric coefficients (Stored as

item.data.V).
+ PS_META_TIME, /< psTime object (Stored as item.data.V).

PS_META_UNKNOWN, /< Other data (Stored as item.data.V).

PS_META_MULTI /< Used internally, do not create a

metadata item of this type.

} psMetadataType;

UTC, UT1, TAI, and TT can all be expressed as an ISO8601 formatted string. I've
changed the psTimeFromISO() prototype so the time system of the resulting psTime
object can be specified.

Index: psLibSDRS.tex
===================================================================
RCS file:
/usr/local/cvs/repositories/pan-starrs/datasys/IP3/doc/PSLib/psLibSDRS.tex,v
retrieving revision 1.212
diff -u -r1.212 psLibSDRS.tex
--- psLibSDRS.tex 5 May 2005 03:11:19 -0000 1.212
+++ psLibSDRS.tex 5 May 2005 03:21:20 -0000
@@ -4856,7 +4856,7 @@

\begin{verbatim}
psTime *psTimeFromJD(psF64 input);
psTime *psTimeFromMJD(psF64 input);

-psTime *psTimeFromISO(const char *input);
+psTime *psTimeFromISO(const char *input, psTimeType timeSystem);

psTime *psTimeFromTimeval(const timeval *input);
psTime *psTimeFromUTC(psS64 sec, psU32 nsec, bool leapsecond);
psTime *psTimeFromTT(psS64 sec, psU32 nsec);

Note: See TracTickets for help on using tickets.