Changeset 20379 for trunk/ippScripts/scripts/flatcorr_proc.pl
- Timestamp:
- Oct 24, 2008, 3:03:44 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/flatcorr_proc.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/flatcorr_proc.pl
r20246 r20379 42 42 use Pod::Usage qw( pod2usage ); 43 43 44 my ($corr_id, $d vodb, $camera, $region, $filter, $dbname, $workdir, $verbose, $no_update, $no_op);44 my ($corr_id, $det_type, $dvodb, $camera, $region, $filter, $dbname, $workdir, $verbose, $no_update, $no_op); 45 45 GetOptions( 46 46 'corr_id|i=s' => \$corr_id, 47 'det_type|d=s' => \$det_type, 47 48 'dvodb|c=s' => \$dvodb, 48 49 'camera=s' => \$camera, … … 61 62 defined $corr_id and 62 63 defined $dvodb and 64 defined $det_type and 63 65 defined $camera and 64 66 defined $region and … … 86 88 # XXX either workdir needs to be non-nebulous here, or addstar / relphot need to handle 87 89 # nebulous interactions... 88 my $outgrid = "$workdir/grid.$camera.$filter.$corr_id"; 89 my $outcorr = "$workdir/corr.$camera.$filter.$corr_id"; 90 my $outgrid = "$dvodb/flatcorr/$camera.$filter.$corr_id"; 91 my $outcorr = "$workdir/$camera.$filter.$corr_id"; 92 93 # check for existing directory, generate if needed 94 print "preparing $outcorr"; 95 $ipprc->outroot_prepare($outcorr); 96 97 if (not -e "$dvodb/flatcorr") { 98 mkdir "$dvodb/flatcorr" or &my_die ("Unable to make output directory for relphot $dvodb/flatcorr", $corr_id, 3); 99 } 90 100 91 101 # parse the region (RAs,RAe:DECs,DECe) : item = +/-NNN.NNNN … … 191 201 my $filter = $file->{filter}; 192 202 203 print "det_type: $det_type\n"; 204 exit 1; 205 193 206 my $command = "$dettool -register_detrend"; 194 $command .= " -det_type FLATCORR";207 $command .= " -det_type $det_type"; 195 208 $command .= " -filelevel $filelevel"; 196 209 $command .= " -workdir $workdir";
Note:
See TracChangeset
for help on using the changeset viewer.
