IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2011, 12:52:49 PM (15 years ago)
Author:
watersc1
Message:

registration summitExp.dateobs/rawExp.dateobs bugfix

File:
1 edited

Legend:

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

    r31060 r31603  
    4040
    4141my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $bytes, $md5sum, $dbname, $verbose, $no_update, $no_op, $logfile);
    42 my ($sunrise, $sunset);
     42my ($sunrise, $sunset, $summit_dateobs);
    4343GetOptions(
    4444    'caches'           => \$cache,
     
    5151    'sunrise=s'        => \$sunrise,
    5252    'sunset=s'         => \$sunset,
     53    'summit_dateobs=s' => \$summit_dateobs,
    5354    'dbname|d=s'       => \$dbname,    # Database name
    5455    'verbose'          => \$verbose,   # Print to stdout
     
    181182if (uc(&value_for_flag ($cmdflags, "NULL", "-exp_type"))  eq "NULL") { &my_die_for_add ("exp_type  not found", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_CONFIG_ERROR); }
    182183my $dateobs   = &value_for_flag($cmdflags, 0.0, "-dateobs");
     184unless($summit_dateobs) {
     185    $summit_dateobs = $dateobs;
     186}
     187
    183188my $exp_type  = &value_for_flag($cmdflags, "NULL", "-exp_type");
    184189
     
    196201    $command .= " -data_state full";
    197202}
    198 elsif (is_daytime($dateobs,$sunrise,$sunset)) {
     203elsif (is_daytime($summit_dateobs,$sunrise,$sunset)) {
    199204    printf STDERR "This is a daytime exposure.\n";
    200205    $command .= " -data_state full";
     
    267272
    268273if ((abs($burntoolStateCurrent) != $burntoolStateTarget)&&
    269     (!is_daytime($dateobs,$sunrise,$sunset))&&
     274    (!is_daytime($summit_dateobs,$sunrise,$sunset))&&
    270275    (!is_ccim($tmp_exp_name,$exp_type))) {
    271276    my $mdcParser  = PS::IPP::Metadata::Config->new;
Note: See TracChangeset for help on using the changeset viewer.