Changeset 39782 for branches/czw_branch/20160809/psModules
- Timestamp:
- Oct 18, 2016, 4:58:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/psModules/src/astrom/pmAstrometryModel.c
r39780 r39782 320 320 // the PosZero is the offset between the reported and actual POSANGLE values 321 321 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"); 322 324 char *refChip = psMetadataLookupStr (&status, file->fpa->concepts, "FPA.REF.CHIP"); 323 325 … … 349 351 350 352 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); 351 354 psMetadataAddStr(row, PS_LIST_TAIL, "REF_CHIP", PS_META_REPLACE, "reference chip for model", refChip); 352 355 … … 624 627 TRANSFER (file->fpa->concepts, row, "BORE_P0"); 625 628 TRANSFER (file->fpa->concepts, row, "POS_ZERO"); 629 TRANSFER (file->fpa->concepts, row, "ROT_PARITY"); 626 630 TRANSFER (file->fpa->concepts, row, "REF_CHIP"); 627 631 … … 687 691 char *refChip = psMetadataLookupStr(&status, file->fpa->concepts, "REF_CHIP"); REQUIRE (status, "missing REF_CHIP"); 688 692 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"); 690 694 691 695 // XXX we've swapped the sign and parity of POS (add to model)
Note:
See TracChangeset
for help on using the changeset viewer.
