IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 7, 2013, 8:44:53 AM (13 years ago)
Author:
eugene
Message:

fix md collisions / double free; get the right cells for multiple inputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpMaskStats.c

    r35521 r35525  
    3232    return false;
    3333  }
    34   psMetadataAddS32(stats, PS_LIST_TAIL,"MASKFRAC_NPIX", 0,
    35                    "Number of valid pixels", Npix_valid);
    36   psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_STATIC", 0,
    37                    "Fraction of pixels statically masked", (float) Npix_static / Npix_valid);
    38   psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_DYNAMIC", 0,
    39                    "Fraction of pixels dynamically masked", (float) Npix_dynamic / Npix_valid);
    40   psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_MAGIC", 0,
    41                    "Fraction of pixels magically masked", (float) Npix_magic / Npix_valid);
    42   psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_ADVISORY", 0,
    43                    "Fraction of pixels masked as an advisory", (float) Npix_advisory / Npix_valid);
     34
     35  // XXX with multiple inputs (eg, output stacks -> exposure), these only represent the last input
     36  psMetadataAddS32(stats, PS_LIST_TAIL,"MASKFRAC_NPIX",     PS_META_REPLACE, "Number of valid pixels", Npix_valid);
     37  psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_STATIC",   PS_META_REPLACE, "Fraction of pixels statically masked", (float) Npix_static / Npix_valid);
     38  psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_DYNAMIC",  PS_META_REPLACE, "Fraction of pixels dynamically masked", (float) Npix_dynamic / Npix_valid);
     39  psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_MAGIC",    PS_META_REPLACE, "Fraction of pixels magically masked", (float) Npix_magic / Npix_valid);
     40  psMetadataAddF32(stats,PS_LIST_TAIL, "MASKFRAC_ADVISORY", PS_META_REPLACE, "Fraction of pixels masked as an advisory", (float) Npix_advisory / Npix_valid);
    4441  return true;
    4542}
Note: See TracChangeset for help on using the changeset viewer.