IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14165


Ignore:
Timestamp:
Jul 12, 2007, 9:43:41 AM (19 years ago)
Author:
eugene
Message:

add partial code to handle poor lumfunc fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroRefstarSubset.c

    r12806 r14165  
    3232    return true;
    3333  }
     34
     35// XXX code to better deal with mismatches in the fitted lum function
     36# if (0)
     37  // if the fitted slopes differ by too much, give up and just try to match the peak bin
     38  fSlope = (reffunc->slope / rawfunc->slope);
     39  if ((fSlope > 1.3) || (fSlope < 0.77)) {
     40      // XXX do something here (choose the peak of the smaller set, generate a histogram for
     41      // the other set, then choose the bin from the larger set which has nBin = nPeak
     42  }
     43# endif
    3444
    3545  // what is the offset between the two lines at the average magnitude?
Note: See TracChangeset for help on using the changeset viewer.