IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2018, 4:17:43 PM (8 years ago)
Author:
watersc1
Message:

Be more aggressive at checking parameters for the PSREFCAT field, as dependent code isn't run when quality != 0 and the warping process is being aborted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpLoop.c

    r40344 r40354  
    124124
    125125                        // Determine the reference catalog used
    126                         if (!refcat) {
    127                           refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT");
    128                           psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE, "Reference catalog used for calibration.", refcat);
     126                        if ((!refcat)&&(astromRO)) {
     127                          if ((astromRO->parent->parent->hdu->header)&&(output->fpa->analysis)) {
     128                            psMetadataItem *refItem = psMetadataLookup(astromRO->parent->parent->hdu->header, "PSREFCAT");
     129                            if (refItem) {
     130                              refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT");
     131                              psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE,
     132                                               "Reference catalog used for calibration.", refcat);
     133                            }
     134                          }
    129135                        }
    130 
    131136                       
    132137                    }
Note: See TracChangeset for help on using the changeset viewer.