IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2007, 5:38:06 PM (19 years ago)
Author:
eugene
Message:

adding select_sat_pixel_frac_max

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r13626 r13696  
    839839            if (!psMetadataAddF32(where, PS_LIST_TAIL, "airmass", PS_META_DUPLICATE_OK, "<=", select_airmass_max)) {
    840840                psError(PS_ERR_UNKNOWN, false, "failed to add item airmass");
     841                psFree(where);
     842                return false;
     843            }
     844        }
     845
     846        psF32 select_sat_pixel_frac_max = psMetadataLookupF32(&status, config->args, "-select_sat_pixel_frac_max");
     847        if (!status) {
     848            psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -select_sat_pixel_frac_max");
     849            psFree(where);
     850            return false;
     851        }
     852        if (isfinite(select_sat_pixel_frac_max)) {
     853            if (!psMetadataAddF32(where, PS_LIST_TAIL, "sat_pixel_frac", PS_META_DUPLICATE_OK, "<=", select_sat_pixel_frac_max)) {
     854                psError(PS_ERR_UNKNOWN, false, "failed to add item sat_pixel_frac");
    841855                psFree(where);
    842856                return false;
Note: See TracChangeset for help on using the changeset viewer.