IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2010, 11:22:56 AM (16 years ago)
Author:
watersc1
Message:

association and jpegs look fine. random simtest errors are a bit worrying, though.

Location:
branches/czw_branch/20100519
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100519

  • branches/czw_branch/20100519/ippScripts/scripts/addstar_run.pl

    r28304 r28334  
    3636    exit($PS_EXIT_CONFIG_ERROR);
    3737}
    38 
     38my $minidvodb_path;
    3939my ( $exp_tag, $add_id, $camera, $outroot, $camroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,
    4040     $no_op, $redirect, $save_temps);
     
    132132                    &my_die("Unable to parse metadata list", $add_id, $PS_EXIT_PROG_ERROR);
    133133                my $comp = $$components[0];
     134                $minidvodb_path = $comp->{minidvodb_path};
    134135                $minidvodb_name = $comp->{minidvodb_name};
    135136       
     137                if (!defined($minidvodb_path)) {
     138                    &my_die("Unable to parse minidvodb_path", $add_id, $PS_EXIT_PROG_ERROR);
     139                }
    136140                if (!defined($minidvodb_name)) {
    137141                    &my_die("Unable to parse minidvodb_name", $add_id, $PS_EXIT_PROG_ERROR);
    138                 }
    139                
     142                }
    140143            }
    141144            # tack on the minidvodb part to the db.
    142             $dvodbReal = $dvodbReal . '/' . $minidvodb_name . '/';
     145#           $dvodbReal = $dvodbReal . '/' . $minidvodb_name . '/';
     146#we don't need this now that I fixed the paths     
    143147           
    144148        }
     
    160164        my $command  = "$addstar -update"; # XXX optionally set -update?
    161165        $command .= " -D CAMERA $camdir";
    162         $command .= " -D CATDIR $dvodbReal";
     166        $command .= " -D CATDIR $minidvodb_path";
    163167        $command .= " $realFile";
    164168        $command .= " -use-name $fpaObjects"; # DVO wants the neb-name as a file reference
     
    182186$fpaCommand .= " -path_base $outroot";
    183187$fpaCommand .= " -dtime_addstar $dtime_addstar";
    184 $fpaCommand .= " -dvodb_path $dvodbReal" if defined $dvodbReal;
     188$fpaCommand .= " -dvodb_path $minidvodb_path" if defined $minidvodb_path;
    185189$fpaCommand .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name;
    186190$fpaCommand .= " -dbname $dbname" if defined $dbname;
     
    213217        $command .= " -addprocessedexp";
    214218        $command .= " -fault $exit_code";
    215         $command .= " -dvodb_path $dvodbReal" if defined $dvodbReal;
     219        $command .= " -dvodb_path $minidvodb_path" if defined $minidvodb_path;
    216220        $command .= " -path_base $outroot" if defined $outroot;
    217221        $command .= (" -dtime_addstar " . ((DateTime->now->mjd - $mjd_start) * 86400));
  • branches/czw_branch/20100519/ippScripts/scripts/minidvodb_createdb.pl

    r28304 r28334  
    3939}
    4040
    41 my (  $outroot, $dbname, $dvodb,$minidvodb_interval, $minidvodb_group, $camera,  $verbose, $no_update,
     41my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_group, $camera,  $verbose, $no_update,
    4242     $no_op, $redirect, $save_temps);
    4343GetOptions(   
     
    4747    'outroot|w=s'       => \$outroot, # output file base name
    4848    'dvodb|w=s'         => \$dvodb,  # output DVO database
     49    'minidvodb|w=s'     => \$minidvodb, # output miniDVODB
    4950    'interval|w=s'      => \$minidvodb_interval, #interval between creation of minidvodbs (default = 1day)
    5051    'verbose'           => \$verbose,   # Print to stdout
     
    9798    exit(4);
    9899}
     100my $minidvodbReal;
     101if (defined $minidvodb) {
     102    $minidvodbReal = $ipprc->dvo_catdir( $minidvodb ); # catdir for DVO
     103    $minidvodbReal = $ipprc->convert_filename_absolute( $minidvodbReal );
     104} else {
     105    warn("minidvodb undefined:\n");
     106    exit(4);
     107}
     108
    99109
    100110if (!defined $minidvodb_interval) {
     
    215225    my $fpaCommand = "$addtool -addminidvodbrun";
    216226    $fpaCommand .= " -set_minidvodb_group $minidvodb_group";
     227    $fpaCommand .= " -set_minidvodb_path  $minidvodbReal" if defined $minidvodbReal;
    217228    $fpaCommand .= " -set_mergedvodb_path $dvodbReal";
    218229    $fpaCommand .= " -dbname $dbname" if defined $dbname;
  • branches/czw_branch/20100519/ippScripts/scripts/skycell_jpeg.pl

    r28304 r28334  
    273273        my $path_base  = $imfile->{path_base};
    274274        my $quality    = $imfile->{quality};
    275         my $state      = $imfile->{data_state};
     275        my $state      = $imfile->{state};
    276276        my $fault      = $imfile->{fault};
    277277        my $projection_cell = $skycell_id;
    278         if ($quality == 8007 or $state ne 'full' or $fault != 0) {
     278        if ($quality == 8007 or $state ne 'full') {
    279279            next;
    280280        }
     
    333333    if (scalar (keys %tangents) == 0) {
    334334        my $projection_cell = 'NULL';
    335         $command = "$stacktool -addsummary -stack_id $stage_id -projection_cell $projection_cell -path_base $outroot";
    336         if (defined($dbname)) {
    337             $command .= " -dbname $dbname";
    338         }
    339        
    340         ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
    341         unless ($success) {
    342             $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    343             &my_die("unable to update diff summary: $error_code", $stage_id, $error_code);
     335        $command = "$stacktool -addsummary -sass_id $stage_id -projection_cell $projection_cell -path_base $outroot";
     336        if (defined($dbname)) {
     337            $command .= " -dbname $dbname";
     338        }
     339#       print "$command\n";
     340        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
     341        unless ($success) {
     342            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     343            &my_die("unable to update stack summary: $error_code", $stage_id, $error_code);
    344344        }
    345345    }   
Note: See TracChangeset for help on using the changeset viewer.