IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27396


Ignore:
Timestamp:
Mar 22, 2010, 3:52:37 PM (16 years ago)
Author:
bills
Message:

check that cam_reduction is defined and not NULL

Location:
trunk/ippScripts/scripts
Files:
3 edited

Legend:

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

    r27301 r27396  
    8686my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    8787$ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile;
     88
     89$cam_reduction = 'DEFAULT' if !$cam_reduction or ($cam_reduction eq 'NULL');
     90
    8891my $recipe_psastro = $ipprc->reduction($cam_reduction, 'PSASTRO'); # Recipe to use
    8992&my_die("Unrecognised PSASTRO recipe", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_psastro;
  • trunk/ippScripts/scripts/magic_destreak_cleanup.pl

    r27301 r27396  
    103103my $cam_path_base = $run->{cam_path_base};
    104104my $cam_reduction = $run->{cam_reduction};
     105$cam_reduction = 'DEFAULT' if !$cam_reduction or ($cam_reduction eq 'NULL');
    105106my $inverse = $run->{inverse};
    106107
  • trunk/ippScripts/scripts/magic_destreak_revert.pl

    r27301 r27396  
    8080
    8181$ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile;
     82
     83$cam_reduction = 'DEFAULT' if !defined $cam_reduction or ($cam_reduction eq "NULL");
    8284my $recipe_psastro = $ipprc->reduction($cam_reduction, 'PSASTRO'); # Recipe to use
    8385&my_die("Unrecognised PSASTRO recipe", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR) unless defined $recipe_psastro;
Note: See TracChangeset for help on using the changeset viewer.