Changeset 15715
- Timestamp:
- Nov 29, 2007, 12:49:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigCamera.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigCamera.c
r15513 r15715 85 85 // Don't update these skycell concepts; last one MUST be 0 (i.e., NULL). 86 86 const static char *skycellConceptsCell[] = { "CELL.BIASSEC", "CELL.TRIMSEC", "CELL.READDIR", "CELL.XPARITY", 87 "CELL.YPARITY", "CELL.XWINDOW", "CELL.YWINDOW", "CELL.X0", 88 "CELL.Y0", "CELL.XSIZE", "CELL.YSIZE", 0 }; 89 const static char *skycellConceptsChip[] = { "CHIP.XPARITY", "CHIP.YPARITY", "CHIP.XSIZE", "CHIP.YSIZE", 0 }; 87 "CELL.YPARITY", "CELL.X0", "CELL.Y0", 0 }; 88 const static char *skycellConceptsChip[] = { "CHIP.XPARITY", "CHIP.YPARITY", 0 }; 90 89 const static char *skycellConceptsFPA[] = { 0 }; 91 90 … … 247 246 psFree(concepts); 248 247 249 psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.XSIZE", 0, NULL, "NAXIS1");250 psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.YSIZE", 0, NULL, "NAXIS2");251 psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.XWINDOW", 0, NULL, "NAXIS1");252 psMetadataAddStr(translation, PS_LIST_TAIL, "CELL.YWINDOW", 0, NULL, "NAXIS2");253 psMetadataAddStr(translation, PS_LIST_TAIL, "CHIP.XSIZE", 0, NULL, "NAXIS1");254 psMetadataAddStr(translation, PS_LIST_TAIL, "CHIP.YSIZE", 0, NULL, "NAXIS2");255 256 248 psMetadataAddMetadata(format, PS_LIST_TAIL, "TRANSLATION", 0, "How to translate the FITS headers", 257 249 translation); … … 426 418 while ((fpaItem = psMetadataGetAndIncrement(fpaIter))) { 427 419 if (fpaItem->type != PS_DATA_STRING) { 428 psError(PS_ERR_UNKNOWN, true, "Element %s within FPA in camera configuration is not of type STR.", 429 fpaItem->name); 420 psError(PS_ERR_UNKNOWN, true, 421 "Element %s within FPA in camera configuration is not of type STR.", 422 fpaItem->name); 430 423 psFree(new); 431 424 return false; … … 597 590 psAbort("Should never get here.\n"); 598 591 } 599 600 #if 0601 // XXXX when do I need to adjust the value of CONTENT, CELL.NAME, CHIP.NAME?602 603 // Don't need a "CONTENT" to identify the content!604 if (psMetadataLookup(file, "CONTENT")) {605 psMetadataRemoveKey(file, "CONTENT");606 }607 psMetadataAddStr(file, PS_LIST_TAIL, "CONTENT", PS_META_REPLACE, "Key to CONTENTS menu",608 "PS_CNTNT");609 // Don't need CELL.NAME for chip-mosaicked camera610 if (psMetadataLookup(file, "CELL.NAME")) {611 psMetadataRemoveKey(file, "CELL.NAME");612 }613 // Don't need CHIP.NAME or CELL.NAME for fpa-mosaicked camera614 if (psMetadataLookup(file, "CHIP.NAME")) {615 psMetadataRemoveKey(file, "CHIP.NAME");616 }617 if (psMetadataLookup(file, "CELL.NAME")) {618 psMetadataRemoveKey(file, "CELL.NAME");619 }620 #endif621 592 622 593 // Fix up the CONTENTS to contain only the mosaicked cell for each chip
Note:
See TracChangeset
for help on using the changeset viewer.
