IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2016, 2:59:30 PM (10 years ago)
Author:
watersc1
Message:

Add rotator parity information to psastro models.

File:
1 edited

Legend:

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

    r36834 r39777  
    687687    char *refChip  = psMetadataLookupStr(&status, file->fpa->concepts, "REF_CHIP"); REQUIRE (status, "missing REF_CHIP");
    688688
     689    int rotatorParity = psMetadataLookupS32(&status, file->fpa->concepts, "ROT.PARITY"); REQUIRE (status, "missing ROT.PARITY");
     690   
    689691    // XXX we've swapped the sign and parity of POS (add to model)
    690692    // apply true posangle = -(POS - POS_ZERO)
    691693    psLogMsg ("psModules.astrom", 4, "Position Angle: %f, Model Position Angle Zero Point: %f\n", POS, PosZero);
    692     psPlaneTransform *fromTPA = psPlaneTransformRotate (NULL, file->fpa->fromTPA, (PosZero - POS));
     694    psPlaneTransform *fromTPA = psPlaneTransformRotate (NULL, file->fpa->fromTPA, rotatorParity * (PosZero - POS));
    693695    psFree (file->fpa->fromTPA);
    694696    file->fpa->fromTPA = fromTPA;
Note: See TracChangeset for help on using the changeset viewer.