IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39782


Ignore:
Timestamp:
Oct 18, 2016, 4:58:00 PM (10 years ago)
Author:
watersc1
Message:

Fix missing ROT_PARITY information by sticking it directly into the FP table of the astrometry model.

Location:
branches/czw_branch/20160809
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/psModules/src/astrom/pmAstrometryModel.c

    r39780 r39782  
    320320    // the PosZero is the offset between the reported and actual POSANGLE values
    321321    float PosZero = psMetadataLookupF32 (&status, file->fpa->concepts, "FPA.POS_ZERO");  /// XXX be consistent with degrees v radians
     322    // Indicate which direction the position angle goes
     323    int rotParity = psMetadataLookupS32 (&status, file->fpa->concepts, "FPA.ROT_PARITY");
    322324    char *refChip = psMetadataLookupStr (&status, file->fpa->concepts, "FPA.REF.CHIP");
    323325
     
    349351
    350352    psMetadataAddF32(row,    PS_LIST_TAIL, "POS_ZERO", PS_META_REPLACE, "POSANGLE offset (degrees)", PosZero);
     353    psMetadataAddS32(row,    PS_LIST_TAIL, "ROT_PARITY", PS_META_REPLACE, "rotator parity", rotParity);
    351354    psMetadataAddStr(row,    PS_LIST_TAIL, "REF_CHIP", PS_META_REPLACE, "reference chip for model", refChip);
    352355
     
    624627    TRANSFER (file->fpa->concepts, row, "BORE_P0");
    625628    TRANSFER (file->fpa->concepts, row, "POS_ZERO");
     629    TRANSFER (file->fpa->concepts, row, "ROT_PARITY");
    626630    TRANSFER (file->fpa->concepts, row, "REF_CHIP");
    627631
     
    687691    char *refChip  = psMetadataLookupStr(&status, file->fpa->concepts, "REF_CHIP"); REQUIRE (status, "missing REF_CHIP");
    688692
    689     int rotatorParity = psMetadataLookupS32(&status, file->fpa->concepts, "FPA.ROT.PARITY"); REQUIRE (status, "missing ROT.PARITY");
     693    int rotatorParity = psMetadataLookupS32(&status, file->fpa->concepts, "ROT_PARITY"); REQUIRE (status, "missing ROT_PARITY");
    690694   
    691695    // XXX we've swapped the sign and parity of POS (add to model)
  • branches/czw_branch/20160809/psastro/src/psastroModelAdjust.c

    r39777 r39782  
    2828    }
    2929
     30
     31   
    3032    // if we have not measured the boresite position, no adjustment is needed
    3133    bool fitBoresite = psMetadataLookupBool (&status, recipe, "PSASTRO.MODEL.FIT.BORESITE");
     
    6062    int rotatorParity = psMetadataLookupS32(&status, recipe, "PSASTRO.MODEL.ROT.PARITY");
    6163    if (!status) psAbort ("Can't find recipe option PSASTRO.MODEL.ROT.PARITY");
    62     psMetadataAddS32 (output->fpa->concepts, PS_LIST_TAIL, "FPA.ROT.PARITY", PS_META_REPLACE, "rotator parity parameter", rotatorParity);
     64    psMetadataAddS32 (output->fpa->concepts, PS_LIST_TAIL, "FPA.ROT_PARITY", PS_META_REPLACE, "rotator parity parameter", rotatorParity);
    6365   
    6466    // get reference chip from name
     
    150152
    151153    psMetadata *header = output->fpa->hdu->header;
     154   
    152155    pmAstromWriteBilevelMosaic (header, output->fpa, NONLIN_TOL);
    153156
Note: See TracChangeset for help on using the changeset viewer.