IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42755


Ignore:
Timestamp:
Dec 6, 2024, 1:30:43 PM (20 months ago)
Author:
eugene
Message:

merge from trunk: nightly science updates; magic file

Location:
branches/eam_branches/ipp-20230313/ippScripts/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ippScripts/scripts/addstar_run.pl

    r42619 r42755  
    4141
    4242my ( $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);
    4545GetOptions(
    4646    'add_id=s'          => \$add_id, # Camtool identifier
     
    6262    'redirect-output'   => \$redirect,
    6363    'save-temps'        => \$save_temps, # Save temporary files?
    64     'dvodbhost|w=s' => \$dvodbhost, # miniDVO database group
     64    'addrun_host|w=s' => \$addrun_host, # miniDVO database host
    6565    ) or pod2usage( 2 );
    6666
    6767pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    6868pod2usage(
    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",
    7070          -exitval => 3,
    7171          ) unless
     
    7676    defined $dvodb and
    7777    defined $dbname and
    78     defined $dvodbhost and
     78    defined $addrun_host and
    7979    defined $camera;
    8080
     
    173173    $minidvodb_path = $comp->{minidvodb_path};
    174174    $minidvodb_name = $comp->{minidvodb_name};
    175     $minidvodb_host = $comp->{minidvodb_host};
     175    $addrun_host = $comp->{addrun_host};
    176176
    177177    if (!defined($minidvodb_path)) { &my_die("Unable to parse minidvodb_path", $add_id, $PS_EXIT_PROG_ERROR); }
     
    260260    $fpaCommand .= " -dvodb_path $minidvodb_path" if defined $minidvodb_path;
    261261    $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;
    263263    $fpaCommand .= " -dbname $dbname" if defined $dbname;
    264264
     
    295295        $command .= (" -dtime_addstar " . ((DateTime->now->mjd - $mjd_start) * 86400));
    296296        $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;
    298298        $command .= " -stage_extra1 $stage_extra1" if defined $stage_extra1;
    299299        $command .= " -dbname $dbname" if defined $dbname;
  • branches/eam_branches/ipp-20230313/ippScripts/scripts/dist_bundle.pl

    r42644 r42755  
    2525
    2626my $ipprc = PS::IPP::Config->new(); # IPP configuration
     27
     28# we can record the location an appropriate magic.mdc file for the file command
     29my $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");
    2732
    2833use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     
    682687    my $mdc_compressed;
    683688    {
    684         my $command = "$file_cmd $resolved";
     689        my $command = "$file_cmd -m $file_magic $resolved";
     690#        my $command = "$file_cmd $resolved";
    685691        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    686692            run(command => $command, verbose => $verbose);
  • branches/eam_branches/ipp-20230313/ippScripts/scripts/minidvodb_premerge.pl

    r39491 r42755  
    4747}
    4848
    49 my ( $minidvodb, $minidvodb_id, $minidvodb_group, $camera, $dbname,$verbose, $logfile, $no_op, $redirect, $save_temps);
     49my ( $minidvodb, $minidvodb_id, $minidvodb_group, $minidvodb_host, $camera, $dbname,$verbose, $logfile, $no_op, $redirect, $save_temps);
    5050GetOptions(
    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?
    6061    ) or pod2usage( 2 );
    6162
    6263pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    6364pod2usage(
    64           -msg => "Required options: --minidvodb --minidvodb_id -- minidvodb_group --camera",
     65          -msg => "Required options: --minidvodb --minidvodb_id --minidvodb_group --minidvodb_host --camera ",
    6566          -exitval => 3,
    6667          ) unless
     
    6869    defined $minidvodb_id and
    6970    defined $minidvodb_group and
     71    defined $minidvodb_host and
    7072    defined $camera;
    7173
  • branches/eam_branches/ipp-20230313/ippScripts/scripts/nightly_science.pl

    r42621 r42755  
    18441844                    ($comment_hash_good{$this_comment} == $this_exp_id)) {
    18451845                    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];
    18481848
    18491849                    #do not continue if you encounter exposures that finished cam stage but have not yet continued to warp (i.e. stuck in between stages)
     
    21462146    my ($label,$workdir,$obs_mode,$object,$comment,$tess_id,$dist_group,$data_group,$reduction) = get_tool_parameters($date,$target);
    21472147    my ($year,$month,$day,$hour,$min,$sec);
     2148    my $this_date = undef;
     2149    my $chunk_name = undef;
    21482150
    21492151    my $db = init_gpc_db();
     
    22482250                    ($comment_hash_good{$this_comment} == $this_exp_id)) {
    22492251                    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];
    22522254
    22532255                    #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.