Changeset 25425 for trunk/psModules
- Timestamp:
- Sep 16, 2009, 6:35:31 PM (17 years ago)
- Location:
- trunk/psModules/src/concepts
- Files:
-
- 4 edited
-
pmConcepts.c (modified) (2 diffs)
-
pmConceptsRead.c (modified) (4 diffs)
-
pmConceptsStandard.c (modified) (2 diffs)
-
pmConceptsStandard.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConcepts.c
r25046 r25425 329 329 conceptRegisterF32("FPA.TELTEMP.EXTRA", "Telescope Temperatures: extra", p_pmConceptParse_TELTEMPS, NULL, NULL, false, PM_FPA_LEVEL_FPA); 330 330 conceptRegisterF32("FPA.PON.TIME", "Power On Time", NULL, NULL, NULL, false, PM_FPA_LEVEL_FPA); 331 conceptRegisterS32("FPA.BURNTOOL.APPLIED", "Status of burntool processing", p_pmConceptParse_BTOOLAPP,NULL,NULL,false,PM_FPA_LEVEL_FPA); 331 332 conceptRegisterF32("FPA.EXPOSURE", "Exposure time (sec)", NULL, NULL, NULL, false, PM_FPA_LEVEL_FPA); 332 333 } … … 344 345 conceptRegisterF32("CHIP.TEMP", "Temperature of chip", NULL, NULL, NULL, false, PM_FPA_LEVEL_CHIP); 345 346 conceptRegisterStr("CHIP.ID", "Chip identifier", NULL, NULL, NULL, false, PM_FPA_LEVEL_CHIP); 347 346 348 } 347 349 -
trunk/psModules/src/concepts/pmConceptsRead.c
r24824 r25425 73 73 return false; 74 74 } 75 76 75 psTrace ("psModules.concepts", 3, "parsing concept: %s\n", spec->blank->name); 77 76 if (!strcmp (spec->blank->name, "CELL.XPARITY")) { … … 275 274 psMetadataItem *headerItem = NULL; // The value of the concept from the header 276 275 276 277 277 psTrace ("psModules.concepts", 3, "reading concept: %s\n", name); 278 278 if (!strcmp (name, "CELL.XPARITY")) { … … 307 307 } 308 308 } 309 310 309 if (!headerItem) { 311 310 psMetadataItem *formatItem = psMetadataLookup(transSpec, name); // Item with keyword … … 328 327 } 329 328 psString keywords = formatItem->data.str; // The FITS keywords 330 331 329 // In case there are multiple headers 332 330 psList *keys = psStringSplit(keywords, " ,;", true); // List of keywords -
trunk/psModules/src/concepts/pmConceptsStandard.c
r25134 r25425 160 160 assert(concept); 161 161 assert(pattern); 162 163 162 double value = NAN; 164 163 switch (concept->type) { … … 632 631 return psMetadataItemAllocS32(pattern->name, pattern->comment, binning); 633 632 } 633 634 // BTOOLAPP 635 psMetadataItem *p_pmConceptParse_BTOOLAPP(const psMetadataItem *concept, 636 const psMetadataItem *pattern, 637 pmConceptSource source, 638 const psMetadata *cameraFormat, 639 const pmFPA *fpa, 640 const pmChip *chip, 641 const pmCell *cell) 642 { 643 assert(concept); 644 assert(pattern); 645 646 int bt_status = 0; 647 648 if (concept->type != PS_DATA_BOOL) { 649 psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Type for %s (%x) is not BOOL\n", 650 concept->name, concept->type); 651 return NULL; 652 } 653 654 if (concept->data.B == true) { 655 bt_status = -2; 656 } 657 else if (concept->data.B == false) { 658 bt_status = 1 ; 659 } 660 661 return psMetadataItemAllocS32(concept->name, concept->comment, bt_status); 662 } 634 663 635 664 // Get the current value of a concept -
trunk/psModules/src/concepts/pmConceptsStandard.h
r22699 r25425 115 115 ); 116 116 117 /// Format for the BTOOLAPP conceptn 118 psMetadataItem *p_pmConceptParse_BTOOLAPP( 119 const psMetadataItem *concept, ///< Concept to format 120 const psMetadataItem *pattern, 121 pmConceptSource source, ///< Source for concept 122 const psMetadata *cameraFormat, ///< Camera format definition 123 const pmFPA *fpa, ///< FPA for concept, or NULL 124 const pmChip *chip, ///< Chip for concept, or NULL 125 const pmCell *cell ///< Cell for concept, or NULL 126 ); 127 128 117 129 /// Parse the cell binning concepts: CELL.XBIN, CELL.YBIN 118 130 psMetadataItem *p_pmConceptParse_CELL_Binning(
Note:
See TracChangeset
for help on using the changeset viewer.
