Changeset 42755
- Timestamp:
- Dec 6, 2024, 1:30:43 PM (20 months ago)
- Location:
- branches/eam_branches/ipp-20230313/ippScripts/scripts
- Files:
-
- 4 edited
-
addstar_run.pl (modified) (6 diffs)
-
dist_bundle.pl (modified) (2 diffs)
-
minidvodb_premerge.pl (modified) (2 diffs)
-
nightly_science.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/ippScripts/scripts/addstar_run.pl
r42619 r42755 41 41 42 42 my ( $add_id, $camera, $stage, $stage_id, $outroot, $stageroot, $dbname, $reduction, 43 $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $ minidvodb_host, $image_only, $verbose,44 $no_update, $no_op, $redirect, $save_temps, $ dvodbhost);43 $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, 44 $no_update, $no_op, $redirect, $save_temps, $addrun_host); 45 45 GetOptions( 46 46 'add_id=s' => \$add_id, # Camtool identifier … … 62 62 'redirect-output' => \$redirect, 63 63 'save-temps' => \$save_temps, # Save temporary files? 64 ' dvodbhost|w=s' => \$dvodbhost, # miniDVO database group64 'addrun_host|w=s' => \$addrun_host, # miniDVO database host 65 65 ) or pod2usage( 2 ); 66 66 67 67 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 68 68 pod2usage( 69 -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname -- dvodbhost",69 -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname --addrun_host", 70 70 -exitval => 3, 71 71 ) unless … … 76 76 defined $dvodb and 77 77 defined $dbname and 78 defined $ dvodbhost and78 defined $addrun_host and 79 79 defined $camera; 80 80 … … 173 173 $minidvodb_path = $comp->{minidvodb_path}; 174 174 $minidvodb_name = $comp->{minidvodb_name}; 175 $ minidvodb_host = $comp->{minidvodb_host};175 $addrun_host = $comp->{addrun_host}; 176 176 177 177 if (!defined($minidvodb_path)) { &my_die("Unable to parse minidvodb_path", $add_id, $PS_EXIT_PROG_ERROR); } … … 260 260 $fpaCommand .= " -dvodb_path $minidvodb_path" if defined $minidvodb_path; 261 261 $fpaCommand .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; 262 $fpaCommand .= " - minidvodb_host $dvodbhost" if defined $dvodbhost;262 $fpaCommand .= " -addrun_host $addrun_host" if defined $addrun_host; 263 263 $fpaCommand .= " -dbname $dbname" if defined $dbname; 264 264 … … 295 295 $command .= (" -dtime_addstar " . ((DateTime->now->mjd - $mjd_start) * 86400)); 296 296 $command .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; # dont think we want it recorded (not sure) 297 $command .= " - minidvodb_host $dvodbhost" if defined $dvodbhost; # dont think we want it recorded (not sure)297 $command .= " -addrun_host $addrun_host" if defined $addrun_host; 298 298 $command .= " -stage_extra1 $stage_extra1" if defined $stage_extra1; 299 299 $command .= " -dbname $dbname" if defined $dbname; -
branches/eam_branches/ipp-20230313/ippScripts/scripts/dist_bundle.pl
r42644 r42755 25 25 26 26 my $ipprc = PS::IPP::Config->new(); # IPP configuration 27 28 # we can record the location an appropriate magic.mdc file for the file command 29 my $file_magic = "$ENV{PSCONFDIR}/$ENV{PSCONFIG}/etc/compress.mgc"; 30 ### TEST print "magic: $file_magic\n"; 31 ### TEST system ("file -m $file_magic o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc"); 27 32 28 33 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 682 687 my $mdc_compressed; 683 688 { 684 my $command = "$file_cmd $resolved"; 689 my $command = "$file_cmd -m $file_magic $resolved"; 690 # my $command = "$file_cmd $resolved"; 685 691 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 686 692 run(command => $command, verbose => $verbose); -
branches/eam_branches/ipp-20230313/ippScripts/scripts/minidvodb_premerge.pl
r39491 r42755 47 47 } 48 48 49 my ( $minidvodb, $minidvodb_id, $minidvodb_group, $ camera, $dbname,$verbose, $logfile, $no_op, $redirect, $save_temps);49 my ( $minidvodb, $minidvodb_id, $minidvodb_group, $minidvodb_host, $camera, $dbname,$verbose, $logfile, $no_op, $redirect, $save_temps); 50 50 GetOptions( 51 'minidvodb|w=s' => \$minidvodb, #minidvodb database 52 'minidvodb_id|w=s' => \$minidvodb_id, #minidvodb_id 53 'minidvodb_group|w=s' => \$minidvodb_group, #minidvodb_id 54 'camera|c=s' => \$camera, # Camera 55 'dbname|d=s' => \$dbname, # Database name 56 'verbose' => \$verbose, # Print to stdout 57 'no-op' => \$no_op, # Don't do any operations? 58 'logfile=s' => \$logfile, 59 'save-temps' => \$save_temps, # Save temporary files? 51 'minidvodb|w=s' => \$minidvodb, #minidvodb database 52 'minidvodb_id|w=s' => \$minidvodb_id, #minidvodb_id 53 'minidvodb_group|w=s' => \$minidvodb_group, #minidvodb_group 54 'minidvodb_host|w=s' => \$minidvodb_host, #minidvodb_host 55 'camera|c=s' => \$camera, # Camera 56 'dbname|d=s' => \$dbname, # Database name 57 'verbose' => \$verbose, # Print to stdout 58 'no-op' => \$no_op, # Don't do any operations? 59 'logfile=s' => \$logfile, 60 'save-temps' => \$save_temps, # Save temporary files? 60 61 ) or pod2usage( 2 ); 61 62 62 63 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 63 64 pod2usage( 64 -msg => "Required options: --minidvodb --minidvodb_id -- minidvodb_group --camera",65 -msg => "Required options: --minidvodb --minidvodb_id --minidvodb_group --minidvodb_host --camera ", 65 66 -exitval => 3, 66 67 ) unless … … 68 69 defined $minidvodb_id and 69 70 defined $minidvodb_group and 71 defined $minidvodb_host and 70 72 defined $camera; 71 73 -
branches/eam_branches/ipp-20230313/ippScripts/scripts/nightly_science.pl
r42621 r42755 1844 1844 ($comment_hash_good{$this_comment} == $this_exp_id)) { 1845 1845 push @keep_warps, $this_warp; 1846 my$this_date = ${ $this_warp }[2];1847 my$chunk_name = ${ $this_warp }[6];1846 $this_date = ${ $this_warp }[2]; 1847 $chunk_name = ${ $this_warp }[6]; 1848 1848 1849 1849 #do not continue if you encounter exposures that finished cam stage but have not yet continued to warp (i.e. stuck in between stages) … … 2146 2146 my ($label,$workdir,$obs_mode,$object,$comment,$tess_id,$dist_group,$data_group,$reduction) = get_tool_parameters($date,$target); 2147 2147 my ($year,$month,$day,$hour,$min,$sec); 2148 my $this_date = undef; 2149 my $chunk_name = undef; 2148 2150 2149 2151 my $db = init_gpc_db(); … … 2248 2250 ($comment_hash_good{$this_comment} == $this_exp_id)) { 2249 2251 push @keep_warps, $this_warp; 2250 my$this_date = ${ $this_warp }[2];2251 my$chunk_name = ${ $this_warp }[6];2252 $this_date = ${ $this_warp }[2]; 2253 $chunk_name = ${ $this_warp }[6]; 2252 2254 2253 2255 #do not continue if you encounter exposures that finished cam stage but have not yet continued to warp (i.e. stuck in between stages)
Note:
See TracChangeset
for help on using the changeset viewer.
