IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5861


Ignore:
Timestamp:
Dec 30, 2005, 6:31:23 PM (21 years ago)
Author:
magnier
Message:

added JD/MJD as string (like Keck)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/astrom/pmFPAConceptsGet.c

    r5796 r5861  
    859859                                // timeString contains an ISO time
    860860                                time = psTimeFromISO(timeString, timeSys);
     861                            } else if (strcasecmp(timeFormat, "JD") == 0) {
     862                                double timeValue = strtod (timeString, NULL);
     863                                time = psTimeFromJD(timeValue);
     864                            } else if (strcasecmp(timeFormat, "MJD") == 0) {
     865                                double timeValue = strtod (timeString, NULL);
     866                                time = psTimeFromMJD(timeValue);
    861867                            } else if (strstr(timeFormat, "SEPARATE")) {
    862868                                // timeString contains headers for the date and time
Note: See TracChangeset for help on using the changeset viewer.