Changeset 31603
- Timestamp:
- Jun 6, 2011, 12:52:49 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/register_imfile.pl (modified) (5 diffs)
-
ippTasks/register.pro (modified) (2 diffs)
-
ippTools/share/regtool_pendingimfile.sql (modified) (1 diff)
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; -
trunk/ippTasks/register.pro
r30992 r31603 294 294 book getword regPendingImfile $pageName workdir -var WORKDIR_TEMPLATE 295 295 book getword regPendingImfile $pageName dbname -var DBNAME 296 book getword regPendingImfile $pageName summit_dateobs -var SUMMIT_DATEOBS 296 297 297 298 # EXP_TAG is used to generate the unique, but human-readable, filenames … … 320 321 # XXX register_imfile.pl differs from the standard script : it does not have an 'outroot' argument, and it does not take '--redirect' 321 322 $run = register_imfile.pl --exp_id $EXP_ID --tmp_class_id $TMP_CLASS_ID --tmp_exp_name $TMP_EXP_NAME --uri $URI --logfile $logfile --bytes $BYTES --md5sum $MD5SUM 322 $run = $run --sunset $sunset --sunrise $sunrise 323 $run = $run --sunset $sunset --sunrise $sunrise --summit_dateobs $SUMMIT_DATEOBS 323 324 add_standard_args run 324 325 -
trunk/ippTools/share/regtool_pendingimfile.sql
r25418 r31603 8 8 newImfile.uri, 9 9 newImfile.bytes, 10 newImfile.md5sum 10 newImfile.md5sum, 11 summitExp.dateobs AS summit_dateobs 11 12 FROM newImfile 12 13 JOIN newExp 13 14 USING(exp_id) 15 JOIN summitExp USING(summit_id) 14 16 LEFT JOIN rawImfile 15 17 ON newExp.exp_id = rawImfile.exp_id
Note:
See TracChangeset
for help on using the changeset viewer.
