Changeset 18473
- Timestamp:
- Jul 11, 2008, 8:37:41 AM (18 years ago)
- Location:
- branches/eam_branch_20080706/ippScripts/scripts
- Files:
-
- 10 edited
-
camera_exp.pl (modified) (3 diffs)
-
chip_imfile.pl (modified) (3 diffs)
-
detrend_norm_calc.pl (modified) (2 diffs)
-
detrend_norm_exp.pl (modified) (2 diffs)
-
detrend_process_imfile.pl (modified) (1 diff)
-
detrend_reject_exp.pl (modified) (4 diffs)
-
detrend_stack.pl (modified) (1 diff)
-
fake_imfile.pl (modified) (3 diffs)
-
warp_overlap.pl (modified) (2 diffs)
-
warp_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080706/ippScripts/scripts/camera_exp.pl
r18360 r18473 27 27 28 28 my ( $exp_tag, $cam_id, $camera, $outroot, $recipe, $dbname, $reduction, $dvodb, $verbose, $no_update, 29 $no_op, $ save_temps );29 $no_op, $redirect, $save_temps ); 30 30 GetOptions( 31 'exp_tag=s' => \$exp_tag, # Exposure identifier 32 'cam_id=s' => \$cam_id, # Camtool identifier 33 'recipe=s' => \$recipe, # Recipe to use 34 'camera|c=s' => \$camera, # Camera 35 'dbname|d=s' => \$dbname, # Database name 36 'outroot|w=s' => \$outroot, # output file base name 37 'reduction=s' => \$reduction, # Reduction class 38 'dvodb|w=s' => \$dvodb, # output DVO database 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, # Update the database? 41 'no-op' => \$no_op, # Don't do any operations? 42 'save-temps' => \$save_temps, # Save temporary files? 43 ) or pod2usage( 2 ); 31 'exp_tag=s' => \$exp_tag, # Exposure identifier 32 'cam_id=s' => \$cam_id, # Camtool identifier 33 'recipe=s' => \$recipe, # Recipe to use 34 'camera|c=s' => \$camera, # Camera 35 'dbname|d=s' => \$dbname, # Database name 36 'outroot|w=s' => \$outroot, # output file base name 37 'reduction=s' => \$reduction, # Reduction class 38 'dvodb|w=s' => \$dvodb, # output DVO database 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, # Update the database? 41 'no-op' => \$no_op, # Don't do any operations? 42 'redirect-output' => \$redirect, 43 'save-temps' => \$save_temps, # Save temporary files? 44 ) or pod2usage( 2 ); 44 45 45 46 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 54 55 55 56 $ipprc->define_camera($camera); 57 58 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); 59 60 $ipprc->redirect_output($logDest) if $redirect; 56 61 57 62 # Recipes to use based on reduction class … … 185 190 my $fpaStats = $ipprc->filename("PSASTRO.STATS", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); 186 191 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); 187 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR);188 192 189 193 # convert supplied DVO database name to UNIX filename -
branches/eam_branch_20080706/ippScripts/scripts/chip_imfile.pl
r18360 r18473 26 26 # Parse the command-line arguments 27 27 my ( $exp_id, $chip_id, $class_id, $uri, $camera, $outroot, $dbname, $reduction, $verbose, 28 $no_update, $no_op );28 $no_update, $no_op, $redirect ); 29 29 GetOptions( 30 'exp_id=s' => \$exp_id, # Exposure identifier 31 'chip_id=s' => \$chip_id, # Chiptool identifier 32 'class_id=s' => \$class_id, # Class identifier 33 'uri|u=s' => \$uri, # Input FITS file 34 'camera|c=s' => \$camera, # Camera 35 'outroot|w=s' => \$outroot, # output file base name 36 'dbname|d=s' => \$dbname, # Database name 37 'reduction=s' => \$reduction, # Reduction class 38 'verbose' => \$verbose, # Print to stdout 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations? 41 ) or pod2usage( 2 ); 30 'exp_id=s' => \$exp_id, # Exposure identifier 31 'chip_id=s' => \$chip_id, # Chiptool identifier 32 'class_id=s' => \$class_id, # Class identifier 33 'uri|u=s' => \$uri, # Input FITS file 34 'camera|c=s' => \$camera, # Camera 35 'outroot|w=s' => \$outroot, # output file base name 36 'dbname|d=s' => \$dbname, # Database name 37 'reduction=s' => \$reduction, # Reduction class 38 'verbose' => \$verbose, # Print to stdout 39 'no-update' => \$no_update, # Don't update the database? 40 'no-op' => \$no_op, # Don't do any operations? 41 'redirect-output' => \$redirect, 42 ) or pod2usage( 2 ); 42 43 43 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 52 53 53 54 $ipprc->define_camera($camera); 55 56 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 57 58 $ipprc->redirect_output($logDest) if $redirect; 54 59 55 60 # Recipes to use based on reduction class … … 125 130 my $outputStats = $ipprc->filename("PPIMAGE.STATS", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 126 131 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR); 127 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $chip_id, $class_id, $PS_EXIT_CONFIG_ERROR);128 132 129 133 # Run ppImage -
branches/eam_branch_20080706/ippScripts/scripts/detrend_norm_calc.pl
r18362 r18473 20 20 use PS::IPP::Config 1.01 qw( :standard ); 21 21 22 my $ipprc = PS::IPP::Config->new(); # IPP configuration 23 22 24 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 23 25 use Pod::Usage qw( pod2usage ); 24 26 25 27 # Parse command-line arguments 26 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op );28 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op, $redirect ); 27 29 GetOptions( 28 'det_id|d=s' => \$det_id, # Detrend id 29 'iteration|i=s' => \$iter, # Iteration 30 'det_type|t=s' => \$detType, # Detrend type 31 'outroot|w=s' => \$outroot, # output file base name 32 'dbname|d=s' => \$dbname, # Database name 33 'verbose' => \$verbose, # Print to stdout 34 'no-update' => \$no_update, # Don't update the database? 35 'no-op' => \$no_op, # Don't do operations 36 ) or pod2usage( 2 ); 30 'det_id|d=s' => \$det_id, # Detrend id 31 'iteration|i=s' => \$iter, # Iteration 32 'det_type|t=s' => \$detType, # Detrend type 33 'outroot|w=s' => \$outroot, # output file base name 34 'dbname|d=s' => \$dbname, # Database name 35 'verbose' => \$verbose, # Print to stdout 36 'no-update' => \$no_update, # Don't update the database? 37 'no-op' => \$no_op, # Don't do operations 38 'redirect-output' => \$redirect, 39 ) or pod2usage( 2 ); 37 40 38 41 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 44 47 defined $detType and 45 48 defined $outroot; 49 50 my $logfile = $outroot . ".log"; 51 52 $ipprc->redirect_output($logfile) if $redirect; 46 53 47 54 use constant STATISTIC => 'bg'; # Background statistic to use from the database -
branches/eam_branch_20080706/ippScripts/scripts/detrend_norm_exp.pl
r17943 r18473 26 26 use Pod::Usage qw( pod2usage ); 27 27 28 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op, $ save_temps);28 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps); 29 29 GetOptions( 30 'det_id|d=s' => \$det_id, 31 'iteration|i=s' => \$iter, 32 'camera|c=s' => \$camera, 33 'det_type|t=s' => \$det_type, 34 'outroot|w=s' => \$outroot, # output file base name 35 'dbname|d=s' => \$dbname, # Database name 36 'reduction|=s' => \$reduction, 37 'verbose' => \$verbose, # Print to stdout 38 'no-update' => \$no_update, 39 'no-op' => \$no_op, 40 'save-temps' => \$save_temps, # Save temporary files? 41 ) or pod2usage( 2 ); 30 'det_id|d=s' => \$det_id, 31 'iteration|i=s' => \$iter, 32 'camera|c=s' => \$camera, 33 'det_type|t=s' => \$det_type, 34 'outroot|w=s' => \$outroot, # output file base name 35 'dbname|d=s' => \$dbname, # Database name 36 'reduction|=s' => \$reduction, 37 'verbose' => \$verbose, # Print to stdout 38 'no-update' => \$no_update, 39 'no-op' => \$no_op, 40 'redirect-output' => \$redirect, 41 'save-temps' => \$save_temps, # Save temporary files? 42 ) or pod2usage( 2 ); 42 43 43 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 49 50 defined $det_type and 50 51 defined $outroot; 52 53 my $logfile = $outroot . ".log"; 54 55 $ipprc->redirect_output($logfile) if $redirect; 51 56 52 57 $ipprc->define_camera($camera); -
branches/eam_branch_20080706/ippScripts/scripts/detrend_process_imfile.pl
r18049 r18473 58 58 $ipprc->define_camera($camera); 59 59 60 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) 61 or &my_die("Missing entry from camera config", $det_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 60 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR); 62 61 63 62 $ipprc->redirect_output($logDest) if $redirect; -
branches/eam_branch_20080706/ippScripts/scripts/detrend_reject_exp.pl
r18467 r18473 28 28 use Pod::Usage qw( pod2usage ); 29 29 30 my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $verbose, $no_update, $no_op );30 my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $verbose, $no_update, $no_op, $redirect); 31 31 GetOptions( 32 'det_id|d=s' => \$det_id, 33 'iteration=s' => \$iter, 34 'det_type|t=s' => \$det_type, 35 'camera=s' => \$camera, 36 'outroot|w=s' => \$outroot, # output file base name 37 'filter=s' => \$filter, 38 'dbname|d=s' => \$dbname, # Database name 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, 41 'no-op' => \$no_op, 32 'det_id|d=s' => \$det_id, 33 'iteration=s' => \$iter, 34 'det_type|t=s' => \$det_type, 35 'camera=s' => \$camera, 36 'outroot|w=s' => \$outroot, # output file base name 37 'filter=s' => \$filter, 38 'dbname|d=s' => \$dbname, # Database name 39 'verbose' => \$verbose, # Print to stdout 40 'no-update' => \$no_update, 41 'no-op' => \$no_op, 42 'redirect-output' => \$redirect, 42 43 ) or pod2usage( 2 ); 43 44 … … 50 51 defined $camera and 51 52 defined $outroot; 53 54 # check for existing directory, generate if needed 55 $ipprc->outroot_prepare($outroot); 56 57 my $logName = "$outroot.log"; # Name for log 58 59 $ipprc->redirect_output($logName) if $redirect; 52 60 53 61 # values to extract from output metadata and the stats to calculate … … 145 153 # neb:///*/gpc1/20080130 (volume not specified) 146 154 147 # check for existing directory, generate if needed148 $ipprc->outroot_prepare($outroot);149 150 my $logName = "$outroot.log"; # Name for log151 152 155 my $logFile; 153 156 unless ($no_op) { … … 302 305 exit($PS_EXIT_PROG_ERROR); 303 306 } 307 308 # Allow iteration to be turned off 309 my $allow_iter = metadataLookupBool($ipprc->{rejection}, "ITERATION"); # Allow iteration? 310 my $force_master = metadataLookupBool($ipprc->{rejection}, "MASTER"); # Force the stack to be accepted 311 $stop = 1 unless $allow_iter; 312 $master = 1 if $force_master; 304 313 305 314 ## add the summary statistics, and request a new iteration if needed -
branches/eam_branch_20080706/ippScripts/scripts/detrend_stack.pl
r18065 r18473 209 209 # Command to update the database 210 210 $command = "$dettool -addstacked"; 211 $command .= " -det_id $det_id -iteration $iter"; 211 $command .= " -det_id $det_id"; 212 $command .= " -iteration $iter"; 212 213 $command .= " -class_id $class_id"; 213 214 $command .= " -uri $outputStack"; -
branches/eam_branch_20080706/ippScripts/scripts/fake_imfile.pl
r18020 r18473 42 42 # Parse the command-line arguments 43 43 my ( $exp_id, $fake_id, $class_id, $chiproot, $camroot, $camera, $outroot, 44 $dbname, $reduction, $verbose, $no_update, $no_op );44 $dbname, $reduction, $verbose, $no_update, $no_op, $redirect ); 45 45 GetOptions( 46 'exp_id=s' => \$exp_id, # Exposure identifier 47 'fake_id=s' => \$fake_id, # Chiptool identifier 48 'class_id=s' => \$class_id, # Class identifier 49 'chiproot=s' => \$chiproot, # Input Chip files (root) 50 'camroot=s' => \$camroot, # Input Camera files (root) 51 'camera|c=s' => \$camera, # Camera 52 'outroot|w=s' => \$outroot, # output file base name 53 'dbname|d=s' => \$dbname, # Database name 54 'reduction=s' => \$reduction, # Reduction class 55 'verbose' => \$verbose, # Print to stdout 56 'no-update' => \$no_update, # Don't update the database? 57 'no-op' => \$no_op, # Don't do any operations? 58 ) or pod2usage( 2 ); 46 'exp_id=s' => \$exp_id, # Exposure identifier 47 'fake_id=s' => \$fake_id, # Chiptool identifier 48 'class_id=s' => \$class_id, # Class identifier 49 'chiproot=s' => \$chiproot, # Input Chip files (root) 50 'camroot=s' => \$camroot, # Input Camera files (root) 51 'camera|c=s' => \$camera, # Camera 52 'outroot|w=s' => \$outroot, # output file base name 53 'dbname|d=s' => \$dbname, # Database name 54 'reduction=s' => \$reduction, # Reduction class 55 'verbose' => \$verbose, # Print to stdout 56 'no-update' => \$no_update, # Don't update the database? 57 'no-op' => \$no_op, # Don't do any operations? 58 'redirect-output' => \$redirect, 59 ) or pod2usage( 2 ); 59 60 60 61 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 71 72 $ipprc->define_camera($camera); 72 73 74 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 75 76 $ipprc->redirect_output($logDest) if $redirect; 77 73 78 # Recipes to use based on reduction class 74 79 $reduction = 'DEFAULT' unless defined $reduction; … … 116 121 my $cameraObjects = $ipprc->filename("PSASTRO.OUTPUT", $camroot) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 117 122 my $traceDest = $ipprc->filename("TRACE.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR); 118 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or &my_die("Missing entry from camera config", $exp_id, $fake_id, $class_id, $PS_EXIT_CONFIG_ERROR);119 123 120 124 # XXX check for existence of input data -
branches/eam_branch_20080706/ippScripts/scripts/warp_overlap.pl
r18055 r18473 27 27 my $ipprc = PS::IPP::Config->new(); # IPP configuration 28 28 29 my ($warp_id, $camera, $tess_dir, $dbname, $verbose, $no_update, $no_op, $ save_temps);29 my ($warp_id, $camera, $tess_dir, $dbname, $verbose, $no_update, $no_op, $logfile, $save_temps); 30 30 GetOptions( 31 31 'warp_id|i=s' => \$warp_id, # Warp identifier … … 36 36 'no-update' => \$no_update, # Don't update the database? 37 37 'no-op' => \$no_op, # Don't do any operations 38 'logfile=s' => \$logfile, 38 39 'save-temps' => \$save_temps, # Save temporary files? 39 40 ) or pod2usage( 2 ); 41 42 $ipprc->redirect_output($logfile) if $logfile; 40 43 41 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; -
branches/eam_branch_20080706/ippScripts/scripts/warp_skycell.pl
r18056 r18473 25 25 my $ipprc = PS::IPP::Config->new(); # IPP configuration 26 26 27 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $ save_temps);27 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $verbose, $no_update, $no_op, $redirect, $save_temps); 28 28 GetOptions( 29 29 'warp_id|i=s' => \$warp_id, # Warp identifier … … 36 36 'no-update' => \$no_update, # Don't update the database? 37 37 'no-op' => \$no_op, # Don't do any operations? 38 'redirect-output' => \$redirect, 38 39 'save-temps' => \$save_temps, # Save temporary files? 39 40 ) or pod2usage( 2 ); … … 50 51 51 52 $ipprc->define_camera($camera); 53 54 my $logDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id); 55 56 $ipprc->redirect_output($logDest) if $redirect; 52 57 53 58 my $STATS = … … 119 124 my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot, $skycell_id ); 120 125 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id); 121 my $logDest = $ipprc->filename("TRACE.EXP", $outroot, $skycell_id);122 126 123 127 my $skyFile = $ipprc->filename("SKYCELL.TEMPLATE", $outroot, $skycell_id );
Note:
See TracChangeset
for help on using the changeset viewer.
