IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20379


Ignore:
Timestamp:
Oct 24, 2008, 3:03:44 PM (18 years ago)
Author:
eugene
Message:

add det_type, make outroot directory if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/flatcorr_proc.pl

    r20246 r20379  
    4242use Pod::Usage qw( pod2usage );
    4343
    44 my ($corr_id, $dvodb, $camera, $region, $filter, $dbname, $workdir, $verbose, $no_update, $no_op);
     44my ($corr_id, $det_type, $dvodb, $camera, $region, $filter, $dbname, $workdir, $verbose, $no_update, $no_op);
    4545GetOptions(
    4646    'corr_id|i=s'      => \$corr_id,
     47    'det_type|d=s'     => \$det_type,
    4748    'dvodb|c=s'        => \$dvodb,
    4849    'camera=s'         => \$camera,
     
    6162    defined $corr_id and
    6263    defined $dvodb and
     64    defined $det_type and
    6365    defined $camera and
    6466    defined $region and
     
    8688# XXX either workdir needs to be non-nebulous here, or addstar / relphot need to handle
    8789# nebulous interactions...
    88 my $outgrid = "$workdir/grid.$camera.$filter.$corr_id";
    89 my $outcorr = "$workdir/corr.$camera.$filter.$corr_id";
     90my $outgrid = "$dvodb/flatcorr/$camera.$filter.$corr_id";
     91my $outcorr = "$workdir/$camera.$filter.$corr_id";
     92
     93# check for existing directory, generate if needed
     94print "preparing $outcorr";
     95$ipprc->outroot_prepare($outcorr);
     96
     97if (not -e "$dvodb/flatcorr") {
     98    mkdir "$dvodb/flatcorr" or &my_die ("Unable to make output directory for relphot $dvodb/flatcorr", $corr_id, 3);
     99}
    90100
    91101# parse the region (RAs,RAe:DECs,DECe) : item = +/-NNN.NNNN
     
    191201    my $filter    = $file->{filter};
    192202
     203    print "det_type: $det_type\n";
     204    exit 1;
     205
    193206    my $command = "$dettool -register_detrend";
    194     $command .= " -det_type FLATCORR";
     207    $command .= " -det_type $det_type";
    195208    $command .= " -filelevel $filelevel";
    196209    $command .= " -workdir $workdir";
Note: See TracChangeset for help on using the changeset viewer.