IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2018, 2:53:29 PM (8 years ago)
Author:
watersc1
Message:

Modification to pswarp and ppSub to propagate the PSREFCAT keyword from the camera stage SMF.

File:
1 edited

Legend:

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

    r36835 r40344  
    5858    }
    5959
     60    psString refcat = NULL;
    6061    // loop over this section once per input group
    6162    for (int i = 0; i < nInputs; i++) {
     
    121122                            psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "Sources from input astrometry", detections);
    122123                        }
     124
     125                        // 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);
     129                        }
     130
     131                       
    123132                    }
    124133
Note: See TracChangeset for help on using the changeset viewer.