IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2009, 10:55:36 AM (17 years ago)
Author:
Paul Price
Message:

Adding reduction classes to warp stage.

File:
1 edited

Legend:

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

    r24205 r24487  
    3636}
    3737
    38 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps);
     38my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps);
    3939GetOptions(
    4040    'warp_id|i=s'         => \$warp_id, # Warp identifier
     
    4444    'camera|c=s'          => \$camera, # Camera name
    4545    'dbname|d=s'          => \$dbname, # Database name
     46    'reduction=s'         => \$reduction, # Reduction class
    4647    'outroot=s'           => \$outroot, # Output root name
    4748    'threads=s'           => \$threads,   # Number of threads to use for pswarp
     
    7374
    7475$ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect;
     76
     77# Recipes to use based on reduction class
     78$reduction = 'DEFAULT' unless defined $reduction;
     79my $recipe_pswarp = $ipprc->reduction($reduction, 'WARP_PSWARP'); # Recipe to use for ppImage
     80unless ($recipe_pswarp) {
     81    &my_die("Couldn't find selected reduction for WARP_PSWARP: $reduction\n", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_CONFIG_ERROR);
     82}
    7583
    7684my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP);
     
    102110my $astromSource;               # The astrometry source
    103111{
    104     my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -";
     112    my $command = "$ppConfigDump -camera $camera -recipe PSWARP $recipe_pswarp -dump-recipe PSWARP -";
    105113    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    106114        run(command => $command, verbose => $verbose);
     
    192200    $command .= " -F SOURCE.PLOT.PSFMODEL SOURCE.PLOT.SKY.PSFMODEL";
    193201    $command .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID";
     202    $command .= " -recipe PSWARP $recipe_pswarp";
    194203    $command .= " -psf";        # Turn on PSF determination
    195204    $command .= " -tracedest $traceDest -log $logDest";
Note: See TracChangeset for help on using the changeset viewer.