IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 9, 2018, 4:18:29 PM (8 years ago)
Author:
watersc1
Message:

I missed the pswarpLoopBackground case for the PSREFCAT. Developing for too many cameras simultaneously.

File:
1 edited

Legend:

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

    r35683 r40345  
    6262    pmFPAfileActivate(config->files, true, "PSWARP.BKGMODEL");
    6363
     64    psString refcat = NULL;
    6465    // loop over this section once per input group
    6566    for (int i = 0; i < nInputs; i++) {
     
    134135                    }
    135136
     137                    if (astrom != input) {
     138                      pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry
     139                      if (!refcat) {
     140                        refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT");
     141
     142                        psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE, "Reference catalog used for calibration.", refcat);
     143                      }
     144                    }
     145                   
    136146                    // re-normalize the BKGMODEL pixels by modified astrometry
    137147                    for (int x = 0; x < readout->image->numCols; x++) {
Note: See TracChangeset for help on using the changeset viewer.