Changeset 9091 for trunk/ippScripts/scripts/phase0exp.pl
- Timestamp:
- Oct 2, 2006, 11:54:11 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0exp.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0exp.pl
r8715 r9091 10 10 use Data::Dumper; 11 11 12 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 13 14 my ($expid, $no_update); 15 16 GetOptions( 17 'exp_id|e=s' => \$expid, 18 'no-update' => \$no_update 19 ) or pod2usage( 2 ); 20 21 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 22 pod2usage( 23 -msg => "Required options: --exp_id", 24 -exitval => 3, 25 ) unless defined $expid; 26 27 # Define setup 12 28 use constant TYPE => "exp_type"; # Observation type keyword 13 29 use constant DETRENDS => [ "bias", "dark", "flat", "fringe" ]; # Observation types to mark as detrend … … 42 58 ### "time" # Time of exposure --- not yet implemented 43 59 ]; 44 45 if (scalar @ARGV == 0 || scalar @ARGV >= 2) {46 die "Perform phase 0 processing at the exposure level.\n\n" .47 "Usage: $0 EXP_ID\n\n";48 }49 my $expid = shift @ARGV; # Exposure id50 60 51 61 … … 106 116 107 117 # Output results to the database 108 {118 unless ($no_update) { 109 119 my $command = "$p0tool -updateexp -exp_id $expid"; # Command to execute to update exposure parameters 110 120
Note:
See TracChangeset
for help on using the changeset viewer.
