- Timestamp:
- Sep 19, 2014, 4:05:27 PM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/scripts/pstamp_checkdependent.pl (modified) (5 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/pstamp/scripts/pstamp_checkdependent.pl
- Property svn:mergeinfo set to
r36680 r37403 20 20 use PS::IPP::PStamp::RequestFile qw( :standard ); 21 21 use Carp; 22 23 my $disable_3PI_updates = 0; 24 my $ra_max_3PI_hours = 22.5; # disable updates for skycells with ra greater than this (hours) 25 my $ra_max_3PI = $ra_max_3PI_hours * 15 * 3.14149 / 180.; # rawExp.ra is in radians 22 26 23 27 # XXX: put this in a module somewhere … … 257 261 push @chips, $chip->{class_id}; 258 262 263 if ($disable_3PI_updates && ($chip->{data_group} =~ /ThreePi/)) { 264 # we are getting close to the end of PV2. Do not update PV1 chips if RA is above the limit. 265 my $ra = $chip->{ra}; 266 if (!defined($ra) or ($ra > $ra_max_3PI)) { 267 print "3PI updates are currently disabled for RA $ra > $ra_max_3PI (radians)\n"; 268 return $PSTAMP_NOT_AVAILABLE; 269 } else { 270 print "allowing 3PI updates RA $ra\n"; 271 } 272 } 273 259 274 my $state = $chip->{state}; 260 275 my $data_state = $chip->{data_state}; … … 303 318 $command .= " -set_label $rlabel" if $rlabel; 304 319 305 # if this is one of the chipRuns from the PV1 LAP regenerate without using the ppImage configdump file 306 if ($chip->{data_group} =~ /^LAP.ThreePi.20130706/) { 307 $command .= ' -set_update_mode 1'; 320 my $update_mode; 321 if ($chip->{data_group} =~ /^LAP.ThreePi.20120706/) { 322 # if this is one of the chipRuns from the PV1 LAP regenerate without using the ppImage configdump file. 323 # XXX: PV2 processing is complete. Don't do this anymore 324 # $update_mode = 1; 325 } elsif ($chip->{data_group} =~ /^M31.rp.2013/) { 326 # Version of M31 processed with recipes and auxiliary masks incompatible with the 327 # current code. Run from scratch which will use compatible versions of the same masks.. 328 $update_mode = 1; 308 329 } 330 $command .= " -set_update_mode $update_mode" if $update_mode; 309 331 310 332 if (!$no_update) { … … 371 393 my $data_state = $metadata->{data_state}; 372 394 395 # we are getting close to the end of PV2. optionally do not update 3Pi data. 396 if ($disable_3PI_updates && ($metadata->{data_group} =~ /ThreePi/)) { 397 my $ra = $metadata->{ra}; 398 if (!defined $ra or ($ra > $ra_max_3PI)) { 399 print "3PI updates are currently disabled for RA $ra > $ra_max_3PI (radians)\n"; 400 return $PSTAMP_NOT_AVAILABLE; 401 } else { 402 print "allowing 3PI updates RA $ra\n"; 403 } 404 } 405 373 406 # The update system currently requires that data that has been magicked be destreaked 374 407 # at chip stage so it needs magic even if the customer doesn't. … … 451 484 } 452 485 $chip_id = $chip->{chip_id}; 486 # XXX: -scmap doesn't have ra and dec. Copy it from the warp 487 $chip->{ra} = $metadata->{ra}; 488 $chip->{decl} = $metadata->{decl}; 453 489 454 490 # if chip has been magicked before require it to be magicked again
Note:
See TracChangeset
for help on using the changeset viewer.
