IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42612


Ignore:
Timestamp:
Feb 6, 2024, 10:13:28 AM (2 years ago)
Author:
eugene
Message:

add photcode to output (from first warp)

Location:
branches/eam_branches/ipp-20230313/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psphot/src/psphotFullForceSummary.c

    r40809 r42612  
    322322    int numCols = psMetadataLookupS32(&status, input->fpa->hdu->header, "IMNAXIS1");
    323323    int numRows = psMetadataLookupS32(&status, input->fpa->hdu->header, "IMNAXIS2");
     324    char *photcode   = psMetadataLookupStr(&status, input->fpa->hdu->header, "PHOTCODE");
     325//    char *filter     = psMetadataLookupStr(&status, input->fpa->hdu->header, "FPA.FILTER");
     326//    char *telescope  = psMetadataLookupStr(&status, input->fpa->hdu->header, "FPA.TELESCOPE");
     327//    char *instrument = psMetadataLookupStr(&status, input->fpa->hdu->header, "FPA.INSTRUMENT");
     328//    char *detector   = psMetadataLookupStr(&status, input->fpa->hdu->header, "FPA.DETECTOR");
     329
    324330    psMetadataAddS32(output->fpa->hdu->header, PS_LIST_TAIL, "IMNAXIS1", PS_META_REPLACE, "", numCols);
    325331    psMetadataAddS32(output->fpa->hdu->header, PS_LIST_TAIL, "IMNAXIS2", PS_META_REPLACE, "", numRows);
    326 
     332    psMetadataAddStr(output->fpa->hdu->header, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "", photcode);
     333
     334    // XXX EAM 20240204 : these are added to the header psMetadata but do not make it out to the file header?
     335    // psMetadataAddStr(output->fpa->hdu->header, PS_LIST_TAIL, "FPA.FILTER", PS_META_REPLACE, "", filter);
     336    // psMetadataAddStr(output->fpa->hdu->header, PS_LIST_TAIL, "FPA.TELESCOPE", PS_META_REPLACE, "", telescope);
     337    // psMetadataAddStr(output->fpa->hdu->header, PS_LIST_TAIL, "FPA.INSTRUMENT", PS_META_REPLACE, "", instrument);
     338    // psMetadataAddStr(output->fpa->hdu->header, PS_LIST_TAIL, "FPA.DETECTOR", PS_META_REPLACE, "", detector);
     339   
    327340    // XXX: Also add psphot version information
    328341
  • branches/eam_branches/ipp-20230313/psphot/src/psphotFullForceSummaryReadout.c

    r40809 r42612  
    4545        outputReadout = pmReadoutAlloc(outputCell);
    4646    }
     47
     48    // this requires the readout to exist -- and does not work
     49    // psphotAddPhotcode (config, view, "PSPHOT.FULLFORCE.OUTPUT");
    4750
    4851    // Get the exposure parameters for the output from recipe and set them on the output
Note: See TracChangeset for help on using the changeset viewer.