IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20319


Ignore:
Timestamp:
Oct 21, 2008, 6:06:01 PM (18 years ago)
Author:
eugene
Message:

if lookup fails, return photcode NONE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroLoadRefstars.c

    r20270 r20319  
    8888    // supply the max magnitude, the output format, and the photcode
    8989    if (strcasecmp (photcode, "NONE")) {
    90 
    9190        psStringAppend (&getstarCommand, " -photcode %s -minmag %f -max-density %f", photcode, minMag, maxRho);
    9291    }
     
    238237    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
    239238    if (!input) {
    240         psError(PSASTRO_ERR_CONFIG, true, "Can't find input data");
    241         return NULL;
     239        psLogMsg ("psastro", PS_LOG_DETAIL, "no supplied reference header data");
     240        photcode = psStringCopy ("NONE");
     241        return photcode;
    242242    }
    243243    assert (input->fpa);
Note: See TracChangeset for help on using the changeset viewer.