IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 2:33:12 PM (17 years ago)
Author:
eugene
Message:

adding warp_skyfile_id argument; get source_id from ipprc->source_id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/warp_skycell.pl

    r20644 r20930  
    2727my $ipprc = PS::IPP::Config->new(); # IPP configuration
    2828
    29 my ($warp_id, $skycell_id, $tess_dir, $camera, $dbname, $outroot, $threads, $run_state, $verbose, $no_update, $no_op, $redirect, $save_temps);
     29my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $camera, $dbname, $outroot, $threads, $run_state, $verbose, $no_update, $no_op, $redirect, $save_temps);
    3030GetOptions(
    31     'warp_id|i=s'       => \$warp_id, # Warp identifier
    32     'skycell_id|s=s'    => \$skycell_id, # Skycell identifier
    33     'tess_dir|s=s'       => \$tess_dir, # Tesselation identifier
    34     'camera|c=s'        => \$camera, # Camera name
    35     'dbname|d=s'        => \$dbname, # Database name
    36     'outroot=s'         => \$outroot, # Output root name
    37     'threads=s'         => \$threads,   # Number of threads to use for pswarp
    38     'run-state=s'       => \$run_state,  # 'new' or 'update'
    39     'verbose'           => \$verbose,   # Print to stdout
    40     'no-update'         => \$no_update, # Don't update the database?
    41     'no-op'             => \$no_op, # Don't do any operations?
    42     'redirect-output'   => \$redirect,
    43     'save-temps'        => \$save_temps, # Save temporary files?
     31    'warp_id|i=s'         => \$warp_id, # Warp identifier
     32    'skycell_id|s=s'      => \$skycell_id, # Skycell identifier
     33    'warp_skyfile_id|s=s' => \$warp_skyfile_id, # Unique file identifier
     34    'tess_dir|s=s'        => \$tess_dir, # Tesselation identifier
     35    'camera|c=s'          => \$camera, # Camera name
     36    'dbname|d=s'          => \$dbname, # Database name
     37    'outroot=s'           => \$outroot, # Output root name
     38    'threads=s'           => \$threads,   # Number of threads to use for pswarp
     39    'run-state=s'         => \$run_state,  # 'new' or 'update'
     40    'verbose'             => \$verbose,   # Print to stdout
     41    'no-update'           => \$no_update, # Don't update the database?
     42    'no-op'               => \$no_op, # Don't do any operations?
     43    'redirect-output'     => \$redirect,
     44    'save-temps'          => \$save_temps, # Save temporary files?
    4445) or pod2usage( 2 );
    4546
     
    5051) unless defined $warp_id
    5152    and defined $skycell_id
     53    ### and defined $warp_skyfile_id
    5254    and defined $tess_dir
    5355    and defined $camera
     
    6163
    6264$ipprc->redirect_output($logDest) if $redirect;
     65
     66my $image_id = $warp_skyfile_id;
     67my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP);
    6368
    6469# Look for programs we need
     
    188193    $command .= " -threads $threads" if defined $threads;
    189194    $command .= " -dbname $dbname" if defined $dbname;
     195    # $command .= " -image_id $image_id" if defined $image_id;
     196    # $command .= " -source_id $source_id" if defined $source_id;
    190197    if ($run_state eq 'new') {
    191198        $command .= " -dumpconfig $configuration";
Note: See TracChangeset for help on using the changeset viewer.