IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 57


Ignore:
Timestamp:
Feb 19, 2003, 1:33:33 PM (23 years ago)
Author:
eugene
Message:

abstracted the filter-dependent minflux, mincts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/perl/src/fr.select

    r37 r57  
    1111$stop   = $ARGV[2];
    1212$mode = "\U$ARGV[3]\E";
    13 if (($mode ne "MEF") && ($mode ne "SPLIT")) { die "ERROR: mode must be either -split or -mef\n";}
     13if (($mode ne "MEF") && ($mode ne "SPLIT")) { die "ERROR: mode must be either SPLIT or MEF\n";}
    1414$output = $ARGV[4];
    1515
     
    1717# these probably should go in the config files eventually.
    1818$MAX_CNTS = 60000;
    19 $MIN_CNTS = 2000;
    20 $MIN_FLUX = 2;
    2119$MAX_FLUX = 40;
    22 # if ($filter eq "R") { $MIN_CNTS = 900; }
    23 if ($filter eq "NB920") { $MIN_CNTS = 180; $MIN_FLUX = 0.3; }
     20
     21# define some of the relevant parameters
     22$tmp = `filtnames $filter`; chop $tmp;
     23if ($?) { die "ERROR: invalid filter $filter\n"; }
     24$filter = $tmp;
     25
     26# recipe file defines detrend types & cutoff exptime values
     27$recipefile = `gconfig DETREND_RECIPES`; chop $recipefile;
     28if ($?) { die "ERROR: missing DETREND_RECIPES in configuration\n"; }
     29
     30# extract filter extras list
     31($tmp, $tmp, $tmp, $extras) = split (" ", `gconfig -c $recipefile $filter`);
     32if ($?) { die "ERROR: missing detrend recipe for $filter\n"; }
     33
     34# grab extra values:
     35($detype, $MIN_FLUX, $MIN_CNTS) = split (",", $extras);
     36if ("\U$detype\E" ne "FRINGE") { die "ERROR: fringe extras are missing\n"; }
    2437
    2538# relevant camera parameters
Note: See TracChangeset for help on using the changeset viewer.