IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2005, 3:30:32 PM (21 years ago)
Author:
Paul Price
Message:

Working with release 8. Overscan, bias, flat-fielding all working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/pmFPAConceptsSet.c

    r5371 r5462  
    6868        }
    6969        return (item1->data.F64 == item2->data.F64) ? true : false;
    70       case PS_META_STR:
    71         if (item2->type != PS_META_STR) {
     70      case PS_DATA_STRING:
     71        if (item2->type != PS_DATA_STRING) {
    7272            return false;
    7373        }
     
    112112        // XXX: Need to expand range of types
    113113        switch (concept->type) {
    114           case PS_META_STR:
     114          case PS_DATA_STRING:
    115115            headerItem = psMetadataItemAllocStr(keyword, concept->comment, concept->data.V);
    116116            break;
    117           case PS_META_S32:
     117          case PS_DATA_S32:
    118118            headerItem = psMetadataItemAllocS32(keyword, concept->comment, concept->data.S32);
    119119            break;
    120           case PS_META_F32:
     120          case PS_DATA_F32:
    121121            headerItem = psMetadataItemAllocF32(keyword, concept->comment, concept->data.F32);
    122122            break;
    123           case PS_META_F64:
     123          case PS_DATA_F64:
    124124            headerItem = psMetadataItemAllocF64(keyword, concept->comment, concept->data.F64);
    125125            break;
     
    183183    psMetadataItem *defItem = psMetadataLookup(defaults, concept->name);
    184184    if (defItem) {
    185         if (defItem->type == PS_META_META) {
     185        if (defItem->type == PS_DATA_METADATA) {
    186186            // A dependent default
    187187            psTrace(__func__, 7, "Evaluating dependent default....\n");
     
    205205                return false;
    206206            }
    207             if (depItem->type != PS_META_STR) {
     207            if (depItem->type != PS_DATA_STRING) {
    208208                psError(PS_ERR_IO, true, "Value of %s is not of type string, as required for dependency"
    209209                        " --- ignored.\n", dependsOn);
     
    555555        if (! sourceItem) {
    556556            psError(PS_ERR_IO, false, "Couldn't find CELL.TRIMSEC.SOURCE.\n");
    557         } else if (sourceItem->type != PS_META_STR) {
     557        } else if (sourceItem->type != PS_DATA_STRING) {
    558558            psError(PS_ERR_IO, true, "CELL.TRIMSEC.SOURCE is not of type STR (%x)\n", sourceItem->type);
    559559        } else {
     
    596596        if (! sourceItem) {
    597597            psError(PS_ERR_IO, false, "Couldn't find CELL.BIASSEC.SOURCE.\n");
    598         } else if (sourceItem->type != PS_META_STR) {
     598        } else if (sourceItem->type != PS_DATA_STRING) {
    599599            psError(PS_ERR_IO, true, "CELL.BIASSEC.SOURCE is not of type STR (%x)\n", sourceItem->type);
    600600        } else {
     
    668668                            psRegion *biassec = psListGetAndIncrement(biassecsIter);
    669669                            psString biassecString = psRegionToString(*biassec);
    670                             psMetadataAdd(header, PS_LIST_TAIL, keyword, PS_META_STR | PS_META_REPLACE,
     670                            psMetadataAdd(header, PS_LIST_TAIL, keyword, PS_DATA_STRING | PS_META_REPLACE,
    671671                                          "Bias section", biassecString);
    672672                            psFree(biassecString);
Note: See TracChangeset for help on using the changeset viewer.