Go to the documentation of this file.
100 PGSt_SMF_status retval = PGS_S_SUCCESS;
101 PGSt_SMF_status
status = PGS_S_SUCCESS;
103 PGSt_double jdUTC[2];
106 static char filefunc[] = __FILE__
", GEO_get_utcpole_metadata";
108 PGSt_IO_Gen_FileHandle *filehandle;
113 if (ECS_metadata ==
NULL || utcpole_metadata ==
NULL) {
114 sprintf(msgbuf,
"ECS_metadata: %p utcpole_metadata: %p",
115 (
void*)ECS_metadata, (
void*)utcpole_metadata);
123 if (PGS_IO_Gen_Open(PGSd_UTCPOLE, PGSd_IO_Gen_Read, &filehandle,
version)
125 sprintf(msgbuf,
"PGS_IO_Gen_Open(%d)", (
int)PGSd_UTCPOLE);
133 if ( fgets(utcpole_metadata->
header,
sizeof(utcpole_metadata->
header), filehandle)
134 != utcpole_metadata->
header) {
135 if (ferror(filehandle)) {
136 PGS_SMF_SetUNIXMsg(
errno,
"fgets(utcpole.dat)", filefunc);
146 status = PGS_IO_Gen_Close(filehandle);
156 status = PGS_TD_UTCtoUTCjd(asciiUTC, jdUTC);
157 if (
status != PGS_S_SUCCESS) {
158 sprintf(msgbuf,
"PGS_TD_UTCtoUTCjd(%s)", asciiUTC);
167 if (
status != PGSCSC_W_PREDICTED_UT1 &&
status != PGS_S_SUCCESS) {
168 sprintf(msgbuf,
"PGS_CSC_UTC_UT1Pole(%s)", asciiUTC);
#define MODIS_E_BAD_INPUT_ARG
#define MODIS_E_PREMATURE_EOF