Changeset 30276
- Timestamp:
- Jan 14, 2011, 1:44:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippScripts/scripts/register_imfile.pl
r30243 r30276 191 191 $command .= " -dbname $dbname" if defined $dbname; 192 192 if (abs($burntoolStateCurrent) == $burntoolStateTarget) { 193 printf STDERR "This has already been burned.\n"; 193 194 $command .= " -data_state full"; 194 195 } 195 196 elsif (is_daytime($dateobs,$sunset,$sunrise)) { 197 printf STDERR "This is a daytime exposure.\n"; 196 198 $command .= " -data_state full"; 197 199 } 198 200 else { 201 printf STDERR "Need to check burntool.\n"; 199 202 $command .= " -data_state check_burntool"; 200 203 } … … 257 260 # We now have an imfile in the database, check if we can burntool it. If not, continue on. 258 261 259 if (abs($burntoolStateCurrent) != $burntoolStateTarget) { 262 if ((abs($burntoolStateCurrent) != $burntoolStateTarget)&& 263 (!is_daytime($dateobs,$sunrise,$sunset))) { 260 264 my $mdcParser = PS::IPP::Metadata::Config->new; 261 265 … … 268 272 my $bt_check_command = "$regtool -checkburntoolimfile "; 269 273 $bt_check_command .= " -class_id $class_id "; 270 $bt_check_command .= " -date $check_date "; 274 $bt_check_command .= " -dateobs_begin ${check_date}T${sunset} "; 275 $bt_check_command .= " -dateobs_end ${check_date}T${sunrise} "; 271 276 $bt_check_command .= " -valid_burntool $burntoolStateTarget "; 272 277 $bt_check_command .= " -exp_name $exp_name "; … … 391 396 my ($ss_hour,$ss_minute,$ss_second) = split /\:/, $sunset; # /; 392 397 my ($sr_hour,$sr_minute,$sr_second) = split /\:/, $sunrise; # /; 393 398 if ($second =~ /Z/) { 399 $second =~ s/Z//; 400 } 394 401 if (($hour >= $ss_hour)&&($minute >= $ss_minute)&&($second >= $ss_second)) { 395 402 if (($hour <= $sr_hour)&&($minute <= $sr_minute)&&($second <= $sr_second)) {
Note:
See TracChangeset
for help on using the changeset viewer.
