IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2010, 9:31:50 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/pswarp/src/pswarpParseCamera.c

    r27096 r28794  
    6161{
    6262    psAssert(config, "Require configuration");
     63    bool mdok;                          // Status of MD lookup
    6364
    6465    // The input image(s) is required: it defines the camera
     
    9495    psFree(skyConfig);
    9596
     97    psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE);
     98    if (!recipe) {
     99        psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE);
     100        return false;
     101    }
     102
    96103    // The output skycell
    97104    pmFPAfile *output = pmFPAfileDefineSkycell(config, NULL, "PSWARP.OUTPUT");
     
    118125    }
    119126
    120     if (astrom) {
     127    if (astrom && psMetadataLookupBool(&mdok, recipe, "SOURCES")) {
    121128        pmFPAfile *outSources = pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.SOURCES");
    122129        if (!outSources) {
     
    127134    }
    128135
    129     psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSWARP_RECIPE);
    130     if (!recipe) {
    131         psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE);
    132         return false;
    133     }
    134 
    135     bool mdok;                          // Status of MD lookup
    136136    if (psMetadataLookupBool(&mdok, recipe, "PSF")) {
    137137        // This file, PSPHOT.INPUT, is just used as a carrier; output files (eg, PSPHOT.RESID) are defined by
Note: See TracChangeset for help on using the changeset viewer.