Changeset 36834 for trunk/psModules/src/astrom/pmAstrometryModel.c
- Timestamp:
- Jun 7, 2014, 6:37:32 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryModel.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryModel.c
r26260 r36834 39 39 #include "pmFPAExtent.h" 40 40 #include "pmFPAfileFitsIO.h" 41 #include "pmConcepts.h" 41 42 #include "pmAstrometryWCS.h" 42 43 #include "pmAstrometryUtils.h" … … 452 453 } 453 454 454 int pmConceptsChipNumberFromName (pmFPA *fpa, char *name) {455 456 for (int i = 0; i < fpa->chips->n; i++) {457 pmChip *chip = fpa->chips->data[i];458 if (!chip) continue;459 char *thisone = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");460 if (!thisone) continue;461 if (!strcmp (name, thisone)) return (i);462 }463 return -1;464 }465 466 pmChip *pmConceptsChipFromName (pmFPA *fpa, char *name) {467 468 for (int i = 0; i < fpa->chips->n; i++) {469 pmChip *chip = fpa->chips->data[i];470 if (!chip) continue;471 char *thisone = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");472 if (!thisone) continue;473 if (!strcmp (name, thisone)) return (chip);474 }475 return NULL;476 }477 478 455 // first layer converts Chip to Focal Plane 479 456 bool pmAstromModelReadChips (pmFPAfile *file) {
Note:
See TracChangeset
for help on using the changeset viewer.
