IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#98 closed defect (fixed)

Questions for psGetMJD() Function

Reported by: calvin.harman@… Owned by: eugene
Priority: high Milestone:
Component: IPP SDRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

Section 5.1 for the SDRS has the psGetMJD() function return the Modified Julian
Days (MJD) value into a psTime struct. How should modified Julian days be
packed into the psTime struct? Or should psGetMJD() simply return a long with
units of days?

TAI calculates MJD as a whole number, and not in terms of fractional days. Are
fractional days expected?

Change History (3)

comment:1 by calvin.harman@…, 22 years ago

Maybe this function should be replaced with a new function named psGetTime
(psTime time) and allow the already listed psTimeToMJD() function to convert to
MJD time?

comment:2 by eugene, 22 years ago

Resolution: fixed
Status: newclosed

we have made some changes to the APIs to clear this up. we have dropped
psGetSidereal and psGetMJD and instead created:

psTime psTimeGetTime (void);

which returns the current time in the correct psTime units.

double psMJDToSidereal (double MJD, double longitude);
double psSiderealToMJD (double sidereal, double longitude);

which convert betwee MJD and Sidereal given the longitude.

comment:3 by Paul Price, 22 years ago

psTime functions have changed significantly in the new SDRS. Hence this bug is
probably no longer relevant.

Note: See TracTickets for help on using tickets.