IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/ippScripts/scripts/register_exp.pl

    r20429 r23197  
    2727my $ipprc = PS::IPP::Config->new();
    2828
     29# Look for commands we need
     30my $missing_tools;
     31my $regtool = can_run('regtool') or (warn "can't find regtool" and $missing_tools = 1);
     32my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
     33if ($missing_tools) {
     34    warn ("Can't find required tools");
     35    exit($PS_EXIT_CONFIG_ERROR);
     36}
     37
    2938my ($cache, $exp_id, $exp_tag, $label, $dvodb, $end_stage, $tess_id, $dbname, $verbose, $no_update, $no_op, $save_temps, $logfile);
    3039GetOptions(
     
    3342    'exp_tag|t=s'   => \$exp_tag,
    3443    'dbname|d=s'    => \$dbname, # Database name
    35     'label=s'       => \$label,   
    36     'dvodb=s'       => \$dvodb,   
    37     'end_stage=s'   => \$end_stage, 
    38     'tess_id=s'     => \$tess_id,   
     44    'label=s'       => \$label,
     45    'dvodb=s'       => \$dvodb,
     46    'end_stage=s'   => \$end_stage,
     47    'tess_id=s'     => \$tess_id,
    3948    'verbose'       => \$verbose,   # Print to stdout
    4049    'no-update'     => \$no_update,
     
    4453) or pod2usage( 2 );
    4554
     55# Unhandled exceptions should be passed on to my_die so they get pushed into the database
     56$SIG{__DIE__} = sub { die @_ if $^S;
     57                      my_die( $_[0], $exp_id, $PS_EXIT_UNKNOWN_ERROR ); };
     58
    4659$ipprc->redirect_output($logfile) if $logfile;
    4760
     
    5568my @SCIENCE = ( "object", "science", "light" ); # Observation types to NOT mark as detrend
    5669my $DETREND_FLAG = "-end_stage reg"; # Flag to use to mark detrend exposure
    57 
    58 # Look for commands we need
    59 my $missing_tools;
    60 my $regtool = can_run('regtool') or (warn "can't find regtool" and $missing_tools = 1);
    61 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
    62 
    63 if ($missing_tools) {
    64     warn ("Can't find required tools");
    65     exit($PS_EXIT_CONFIG_ERROR);
    66 }
    6770
    6871# setup cache interface
     
    123126$command .= " -exp_tag $exp_tag";
    124127$command .= " -hostname  $host"      if defined $host;
    125 $command .= " -dbname   $dbname"    if defined $dbname;
    126 $command .= " -label    $label"     if defined $label;
    127 $command .= " -dvodb    $dvodb"     if defined $dvodb;
     128$command .= " -dbname   $dbname"    if defined $dbname;
     129$command .= " -label    $label"     if defined $label;
     130$command .= " -dvodb    $dvodb"     if defined $dvodb;
    128131$command .= " -end_stage $end_stage" if defined $end_stage;
    129132$command .= " -tess_id   $tess_id"   if defined $tess_id;
Note: See TracChangeset for help on using the changeset viewer.