IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25425 for trunk/psModules


Ignore:
Timestamp:
Sep 16, 2009, 6:35:31 PM (17 years ago)
Author:
watersc1
Message:

changes to support new burntool_state

Location:
trunk/psModules/src/concepts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r25046 r25425  
    329329        conceptRegisterF32("FPA.TELTEMP.EXTRA", "Telescope Temperatures: extra", p_pmConceptParse_TELTEMPS, NULL, NULL, false, PM_FPA_LEVEL_FPA);
    330330        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);
    331332        conceptRegisterF32("FPA.EXPOSURE", "Exposure time (sec)", NULL, NULL, NULL, false, PM_FPA_LEVEL_FPA);
    332333    }
     
    344345        conceptRegisterF32("CHIP.TEMP", "Temperature of chip", NULL, NULL, NULL, false, PM_FPA_LEVEL_CHIP);
    345346        conceptRegisterStr("CHIP.ID", "Chip identifier", NULL, NULL, NULL, false, PM_FPA_LEVEL_CHIP);
     347
    346348    }
    347349
  • trunk/psModules/src/concepts/pmConceptsRead.c

    r24824 r25425  
    7373        return false;
    7474    }
    75 
    7675    psTrace ("psModules.concepts", 3, "parsing concept: %s\n", spec->blank->name);
    7776    if (!strcmp (spec->blank->name, "CELL.XPARITY")) {
     
    275274        psMetadataItem *headerItem = NULL; // The value of the concept from the header
    276275
     276
    277277        psTrace ("psModules.concepts", 3, "reading concept: %s\n", name);
    278278        if (!strcmp (name, "CELL.XPARITY")) {
     
    307307            }
    308308        }
    309 
    310309        if (!headerItem) {
    311310            psMetadataItem *formatItem = psMetadataLookup(transSpec, name); // Item with keyword
     
    328327            }
    329328            psString keywords = formatItem->data.str; // The FITS keywords
    330 
    331329            // In case there are multiple headers
    332330            psList *keys = psStringSplit(keywords, " ,;", true); // List of keywords
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r25134 r25425  
    160160    assert(concept);
    161161    assert(pattern);
    162 
    163162    double value = NAN;
    164163    switch (concept->type) {
     
    632631    return psMetadataItemAllocS32(pattern->name, pattern->comment, binning);
    633632}
     633
     634// BTOOLAPP
     635psMetadataItem *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
    634663
    635664// Get the current value of a concept
  • trunk/psModules/src/concepts/pmConceptsStandard.h

    r22699 r25425  
    115115    );
    116116
     117/// Format for the BTOOLAPP conceptn
     118psMetadataItem *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
    117129/// Parse the cell binning concepts: CELL.XBIN, CELL.YBIN
    118130psMetadataItem *p_pmConceptParse_CELL_Binning(
Note: See TracChangeset for help on using the changeset viewer.