IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 11:54:11 AM (20 years ago)
Author:
Paul Price
Message:

Adding -no-update option (bug 825).

File:
1 edited

Legend:

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

    r8715 r9091  
    1010use Data::Dumper;
    1111
     12use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     13
     14my ($expid, $no_update);
     15
     16GetOptions(
     17    'exp_id|e=s'    => \$expid,
     18    'no-update'     => \$no_update
     19) or pod2usage( 2 );
     20
     21pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     22pod2usage(
     23    -msg => "Required options: --exp_id",
     24    -exitval => 3,
     25) unless defined $expid;
     26
     27# Define setup
    1228use constant TYPE => "exp_type"; # Observation type keyword
    1329use constant DETRENDS => [ "bias", "dark", "flat", "fringe" ]; # Observation types to mark as detrend
     
    4258###                           "time" # Time of exposure --- not yet implemented
    4359                           ];
    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 id
    5060
    5161
     
    106116
    107117# Output results to the database
    108 {
     118unless ($no_update) {
    109119    my $command = "$p0tool -updateexp -exp_id $expid"; # Command to execute to update exposure parameters
    110120   
Note: See TracChangeset for help on using the changeset viewer.