IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2013, 4:48:58 PM (13 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130711/ppStack/src/ppStackUpdateHeader.c

    r34800 r36071  
    9898
    9999        float value = options->norm ? pow(10.0, -0.4*options->norm->data.F32[i]) : NAN;
     100        if ((options->inputMask)&&(options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i])) {
     101          value = 0.0; // If this is NAN, then it's recorded in the header as a character string instead of a float.
     102        }
    100103        snprintf (field, 64, "SCL_%04d", i);
    101104        psMetadataAddF32(hdu->header, PS_LIST_TAIL, field, PS_META_REPLACE, "input image scale factor", value);
     
    132135        expROhdu->header = psMetadataAlloc();
    133136      }
     137
    134138      expRO->parent->parent->parent->hdu->header = psMetadataCopy(expRO->parent->parent->parent->hdu->header,
    135139                                                                  outRO->parent->parent->parent->hdu->header);
Note: See TracChangeset for help on using the changeset viewer.