Changeset 37830
- Timestamp:
- Jan 12, 2015, 12:37:37 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-pv3-20140717-merge/ippScripts
- Files:
-
- 12 edited
-
Build.PL (modified) (1 prop)
-
MANIFEST (modified) (1 prop)
-
scripts (modified) (1 prop)
-
scripts/addstar_run.pl (modified) (4 diffs)
-
scripts/ipp_cleanup.pl (modified) (1 diff)
-
scripts/lap_science.pl (modified) (1 prop)
-
scripts/permcheck.pl (modified) (1 prop)
-
scripts/publish_file.pl (modified) (6 diffs)
-
scripts/queuestaticsky.pl (modified) (1 prop)
-
scripts/rawcheck.pl (modified) (1 diff)
-
scripts/sc_remote_exec.pl (modified) (1 prop)
-
scripts/stack_bkg_mk_mdc.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/Build.PL
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/MANIFEST
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts merged: 37319,37354,37411,37423,37431,37551,37558,37594,37709,37714,37723,37738-37739,37772,37787,37806,37812
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/addstar_run.pl
r34750 r37830 94 94 # Recipes to use based on reduction class 95 95 $reduction = 'DEFAULT' unless defined $reduction; 96 if ($stage =~/skycal/) { 97 $reduction = 'DEFAULT'; 98 } 96 #if ($stage =~/diff/) { 97 # $reduction = 'ADDSTAR'; 98 #} 99 #if ($stage =~/fullforce/) { 100 # $reduction = 'ADDSTAR'; 101 #} 102 103 if ($stage =~/fullforce/) { 104 $reduction='DEFAULT'; 105 #hardwired because why not 106 } 107 99 108 my $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR'); 100 109 # XXX This is now not used: do we still need it? … … 132 141 print "using $fpaObjects for $stage\n"; 133 142 } 143 if ($stage =~/diff/) { 144 print "using $fpaObjects for $stage\n"; 145 } 146 if ($stage =~/fullforce/) { 147 print "using $fpaObjects for $stage\n"; 148 } 149 134 150 135 151 … … 177 193 } 178 194 179 if (($stage =~/stack/ || $stage =~ /skycal/ )) {195 if (($stage =~/stack/ || $stage =~ /skycal/ || $stage =~/diff/ || $stage=~/fullforce/)) { 180 196 $fpaObjects =~ s/smf$/cmf/; 181 197 $fpaObjectsAlt =~ s/smf$/cmf/; … … 305 321 $command .= " -quick-airmass"; 306 322 } #careful here - this matches staticsky and staticsky_multi 323 if ($stage =~ /diff/) { 324 $command .= " -accept-astrom"; 325 } 326 if ($stage =~ /fullforce/) { 327 $command .= " -accept-astrom -xrad"; 328 } 307 329 308 330 my $mjd_addstar_start = DateTime->now->mjd; # MJD of starting script -
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/ipp_cleanup.pl
r35906 r37830 588 588 addFilename(\@files, "PSWARP.OUTPUT.SOURCES", $path_base, $skycell_id); 589 589 addFilename(\@files, "SKYCELL.TEMPLATE", $path_base, $skycell_id ); 590 addFilename(\@files, "PSPHOT.RESID",$path_base,"fpa"); 590 591 if ($mode eq "goto_purged") { 591 592 # additional files to remove for 'purge' mode -
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/lap_science.pl
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/permcheck.pl
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/publish_file.pl
r36839 r37830 252 252 warp_id => $comp->{warp1}, 253 253 diff_id => $comp->{diff_id}, 254 camera => $comp->{camera}, 254 255 output_format => $comp->{output_format}, 255 256 direction => 1, … … 291 292 warp_id => $comp->{warp2}, 292 293 diff_id => $comp->{diff_id}, 294 camera => $comp->{camera}, 295 # missing output_format? 293 296 direction => 0, 294 297 comment => $reg_comp->{comment}, … … 359 362 my $name = shift; # Name of component 360 363 361 $data->{zp} = $comp->{zp} unless defined $data->{zp}; 362 $data->{zp_err} = $comp->{zp_err} unless defined $data->{zp_err}; 363 $data->{astrom} = $comp->{astrom} unless defined $data->{astrom}; 364 $data->{exp_name} = $comp->{exp_name} unless defined $data->{exp_name}; 365 $data->{exp_id} = $comp->{exp_id} unless defined $data->{exp_id}; 366 $data->{chip_id} = $comp->{chip_id} unless defined $data->{chip_id}; 367 $data->{cam_id} = $comp->{cam_id} unless defined $data->{cam_id}; 368 $data->{fake_id} = $comp->{fake_id} unless defined $data->{fake_id}; 369 $data->{warp_id} = $comp->{warp_id} unless defined $data->{warp_id}; 370 $data->{diff_id} = $comp->{diff_id} unless defined $data->{diff_id}; 364 $data->{zp} = $comp->{zp} unless defined $data->{zp}; 365 $data->{zp_err} = $comp->{zp_err} unless defined $data->{zp_err}; 366 $data->{astrom} = $comp->{astrom} unless defined $data->{astrom}; 367 $data->{exp_name} = $comp->{exp_name} unless defined $data->{exp_name}; 368 $data->{exp_id} = $comp->{exp_id} unless defined $data->{exp_id}; 369 $data->{chip_id} = $comp->{chip_id} unless defined $data->{chip_id}; 370 $data->{cam_id} = $comp->{cam_id} unless defined $data->{cam_id}; 371 $data->{fake_id} = $comp->{fake_id} unless defined $data->{fake_id}; 372 $data->{warp_id} = $comp->{warp_id} unless defined $data->{warp_id}; 373 $data->{diff_id} = $comp->{diff_id} unless defined $data->{diff_id}; 374 $data->{camera} = $comp->{camera} unless defined $data->{camera}; 375 # missing output_format? 371 376 $data->{direction} = $comp->{direction} unless defined $data->{direction}; 372 $data->{comment} = $comp->{comment}unless defined $data->{comment};373 $data->{obsmode} = $comp->{obsmode}unless defined $data->{obsmode};374 $data->{difftype} = $comp->{difftype}unless defined $data->{difftype};375 $data->{sky} = $comp->{sky}unless defined $data->{sky};376 $data->{shutoutc} = $comp->{shutoutc}unless defined $data->{shutoutc};377 $data->{comment} = $comp->{comment} unless defined $data->{comment}; 378 $data->{obsmode} = $comp->{obsmode} unless defined $data->{obsmode}; 379 $data->{difftype} = $comp->{difftype} unless defined $data->{difftype}; 380 $data->{sky} = $comp->{sky} unless defined $data->{sky}; 381 $data->{shutoutc} = $comp->{shutoutc} unless defined $data->{shutoutc}; 377 382 378 383 &my_die("zp value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{zp} and $comp->{zp} != $data->{zp}; … … 386 391 &my_die("warp_id value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{warp_id} and $comp->{warp_id} != $data->{warp_id}; 387 392 &my_die("diff_id value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{diff_id} and $comp->{diff_id} != $data->{diff_id}; 393 &my_die("camera value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{camera} and $comp->{camera} ne $data->{camera}; 388 394 &my_die("direction value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{direction} and $comp->{direction} != $data->{direction}; 389 395 &my_die("comment value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{comment} and $comp->{comment} ne $data->{comment}; … … 414 420 $command .= " -warp_id " . $data->{warp_id} if defined $data->{warp_id}; 415 421 $command .= " -diff_id " . $data->{diff_id} if defined $data->{diff_id}; 422 $command .= " -camera " . $data->{camera} if defined $data->{camera}; 416 423 $command .= " -inverse" if defined $data->{direction} and $data->{direction} == 0; 417 424 $command .= " -zp " . $data->{zp} if defined $data->{zp}; … … 420 427 $command .= " -version " . $data->{output_format} if defined $data->{output_format}; 421 428 $command .= " -comment \"" . $data->{comment} . "\"" if defined $data->{comment}; 422 $command .= " -obsmode " . $data->{obsmode}if defined $data->{obsmode};429 $command .= " -obsmode \"" . $data->{obsmode} . "\"" if defined $data->{obsmode}; 423 430 $command .= " -difftype " . $data->{difftype} if defined $data->{difftype}; 424 431 $command .= " -sky " . $data->{sky} if defined $data->{sky}; -
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/queuestaticsky.pl
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/rawcheck.pl
r36685 r37830 62 62 my %backup_hosts = ('ippb00' => 1, 'ippb01' => 1, 63 63 'ippb02' => 1, 'ippb03' => 1, 64 'ippb04' => 1, 'ippb05' => 1 64 'ippb04' => 1, 'ippb05' => 1, 65 'ippb06' => 1 65 66 ); 66 my %backup_destinations = ('ippb04' => 1, 67 'ippb05' => 1); 67 my %backup_destinations = (# 'ippb04' => 1, # full 68 # 'ippb05' => 1, # full 69 'ippb06' => 1 70 ); 68 71 my $backup_Nvols = 3; 69 72 -
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/sc_remote_exec.pl
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/stack_bkg_mk_mdc.pl
r36810 r37830 13 13 14 14 my ($dbname,$stack_id,$label,$camera,$filter); 15 16 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 17 my $siteConfig = $ipprc->{_siteConfig}; 18 15 19 #$dbname = 'gpc1'; 16 20 #$camera = 'GPC1'; … … 29 33 30 34 use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock'; 31 my $dbserver = 'ippdb01'; 32 my $dbuser = 'ippuser'; 33 my $dbpass = 'ippuser'; 35 my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER'); 36 my $dbuser = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBUSER"); 37 my $dbpass = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBPASSWORD"); 38 die "database configuration not set up" unless defined($dbserver); 39 die "database configuration not set up" unless defined($dbuser); 40 die "database configuration not set up" unless defined($dbpass); 34 41 my $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" . 35 42 "mysql_socket=" . DB_SOCKET(), … … 38 45 ) or die "Unable to connect to database $DBI::errstr\n"; 39 46 40 my$ipprc = PS::IPP::Config->new( $camera );47 $ipprc = PS::IPP::Config->new( $camera ); 41 48 my $mdcParser = PS::IPP::Metadata::Config->new; 42 49
Note:
See TracChangeset
for help on using the changeset viewer.
