Changeset 31603 for trunk/ippScripts/scripts
- Timestamp:
- Jun 6, 2011, 12:52:49 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/register_imfile.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_imfile.pl
r31060 r31603 40 40 41 41 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $bytes, $md5sum, $dbname, $verbose, $no_update, $no_op, $logfile); 42 my ($sunrise, $sunset );42 my ($sunrise, $sunset, $summit_dateobs); 43 43 GetOptions( 44 44 'caches' => \$cache, … … 51 51 'sunrise=s' => \$sunrise, 52 52 'sunset=s' => \$sunset, 53 'summit_dateobs=s' => \$summit_dateobs, 53 54 'dbname|d=s' => \$dbname, # Database name 54 55 'verbose' => \$verbose, # Print to stdout … … 181 182 if (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); } 182 183 my $dateobs = &value_for_flag($cmdflags, 0.0, "-dateobs"); 184 unless($summit_dateobs) { 185 $summit_dateobs = $dateobs; 186 } 187 183 188 my $exp_type = &value_for_flag($cmdflags, "NULL", "-exp_type"); 184 189 … … 196 201 $command .= " -data_state full"; 197 202 } 198 elsif (is_daytime($ dateobs,$sunrise,$sunset)) {203 elsif (is_daytime($summit_dateobs,$sunrise,$sunset)) { 199 204 printf STDERR "This is a daytime exposure.\n"; 200 205 $command .= " -data_state full"; … … 267 272 268 273 if ((abs($burntoolStateCurrent) != $burntoolStateTarget)&& 269 (!is_daytime($ dateobs,$sunrise,$sunset))&&274 (!is_daytime($summit_dateobs,$sunrise,$sunset))&& 270 275 (!is_ccim($tmp_exp_name,$exp_type))) { 271 276 my $mdcParser = PS::IPP::Metadata::Config->new;
Note:
See TracChangeset
for help on using the changeset viewer.
