IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43042


Ignore:
Timestamp:
Jun 1, 2026, 9:53:57 AM (6 weeks ago)
Author:
eugene
Message:

include RA, DEC, PA, ZEROPOINT in output headers for ppSim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimUtils.c

    r41331 r43042  
    129129    float detTemp = psMetadataLookupF32(NULL, recipe, "DET.TEMP"); // Detector Temperature
    130130
     131    float raCenter  = psMetadataLookupF32(NULL, recipe, "RA"); // Detector Temperature
     132    float decCenter = psMetadataLookupF32(NULL, recipe, "DEC"); // Detector Temperature
     133    float posAngle  = psMetadataLookupF32(NULL, recipe, "PA"); // Detector Temperature
     134    float zeropoint = psMetadataLookupF32(NULL, recipe, "ZEROPOINT"); // Detector Temperature
     135
    131136    const char *filter = psMetadataLookupStr(NULL, recipe, "FILTER"); // Filter name
    132137    if (!filter) {
     
    146151    psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "FPA.AIRMASS",  PS_META_REPLACE, "airmass (dummy value)", 1.0);
    147152
     153    psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "FPA.POSANGLE",  PS_META_REPLACE, "RA of boresite", raCenter);
     154    psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "FPA.RA",        PS_META_REPLACE, "DEC of boresite", decCenter);
     155    psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "FPA.DEC",       PS_META_REPLACE, "Position Angle", posAngle);
     156    psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "FPA.ZP",        PS_META_REPLACE, "Zero Point", zeropoint);
     157
    148158    // test time
    149159    psTime *obstime = psTimeFromMJD (55440.0);
Note: See TracChangeset for help on using the changeset viewer.