Changeset 39782
- Timestamp:
- Oct 18, 2016, 4:58:00 PM (10 years ago)
- Location:
- branches/czw_branch/20160809
- Files:
-
- 2 edited
-
psModules/src/astrom/pmAstrometryModel.c (modified) (4 diffs)
-
psastro/src/psastroModelAdjust.c (modified) (3 diffs)
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) -
branches/czw_branch/20160809/psastro/src/psastroModelAdjust.c
r39777 r39782 28 28 } 29 29 30 31 30 32 // if we have not measured the boresite position, no adjustment is needed 31 33 bool fitBoresite = psMetadataLookupBool (&status, recipe, "PSASTRO.MODEL.FIT.BORESITE"); … … 60 62 int rotatorParity = psMetadataLookupS32(&status, recipe, "PSASTRO.MODEL.ROT.PARITY"); 61 63 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); 63 65 64 66 // get reference chip from name … … 150 152 151 153 psMetadata *header = output->fpa->hdu->header; 154 152 155 pmAstromWriteBilevelMosaic (header, output->fpa, NONLIN_TOL); 153 156
Note:
See TracChangeset
for help on using the changeset viewer.
