IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17961


Ignore:
Timestamp:
Jun 6, 2008, 11:02:19 AM (18 years ago)
Author:
eugene
Message:

check for valid ra and dec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimLoadSpots.c

    r17958 r17961  
    3030    float dec0    = psMetadataLookupF32(NULL, recipe, "DEC");       // Boresight Dec (radians)
    3131    float scale   = psMetadataLookupF32(NULL, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
     32
     33    if (isnan(ra0) || isnan(dec0)) {
     34        psError(PS_ERR_UNKNOWN, false, "image boresite coords not defined.");
     35        return false;
     36    }
    3237
    3338    char *catdir = psMetadataLookupStr(NULL, recipe, "FORCED.CATDIR");
Note: See TracChangeset for help on using the changeset viewer.