IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25134


Ignore:
Timestamp:
Aug 19, 2009, 3:32:43 PM (17 years ago)
Author:
Paul Price
Message:

Only write sexagesimal format for RA and Dec.
Only write negative/positive sign for Dec.

File:
1 edited

Legend:

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

    r25133 r25134  
    429429        }
    430430
    431         psString ra = psMetadataLookupStr(&mdok, formats, "FPA.RA"); // Format for RA
    432         psString dec = psMetadataLookupStr(&mdok, formats, "FPA.DEC"); // Format for Dec
    433         if (ra && strcasecmp(ra, "HOURS") == 0 && dec && strcasecmp(dec, "DEGREES") == 0) {
    434             sexagesimal = true;
     431        if (strcmp(concept->name, "FPA.RA") == 0 || strcmp(concept->name, "FPA.DEC") == 0) {
     432            psString ra = psMetadataLookupStr(&mdok, formats, "FPA.RA"); // Format for RA
     433            psString dec = psMetadataLookupStr(&mdok, formats, "FPA.DEC"); // Format for Dec
     434            if (ra && strcasecmp(ra, "HOURS") == 0 && dec && strcasecmp(dec, "DEGREES") == 0) {
     435                sexagesimal = true;
     436            }
    435437        }
    436438    } else {
Note: See TracChangeset for help on using the changeset viewer.