IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2010, 11:14:40 AM (16 years ago)
Author:
bills
Message:

Add $PSTAMP_USE_IMFILE_ID to the values processed for OPTION_MASK
This changes the ID used for byid requests from chip_id to chip_imfile_id
warp_id to warp_skyfile_id diff_id to diff_skyfile_id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r27439 r27589  
    170170    my $inverse = $option_mask & $PSTAMP_SELECT_INVERSE;
    171171    my $unconvolved = $option_mask & $PSTAMP_SELECT_UNCONV;
     172    my $use_imfile_id = ($req_type eq "byid") && ($option_mask & $PSTAMP_USE_IMFILE_ID);
    172173
    173174    my $missing_tools;
     
    209210        # are stamps of detrend exposures interesting?
    210211        $command .= " -exp_type object";
    211         $id_opt = "-exp_id";
     212        $id_opt = $use_imfile_id ? "-raw_imfile_id" : "-exp_id";
    212213        $component_args = " -class_id $class_id" if $component;
    213214        $want_astrom = 1;
     
    217218        $command = "$chiptool -processedimfile -dbname $image_db";
    218219        $component_args = " -class_id $class_id" if $class_id;
    219         $id_opt = "-chip_id";
     220        $id_opt = $use_imfile_id ? "-chip_imfile_id" : "-chip_id";
    220221        $image_name   = "PPIMAGE.CHIP";
    221222        $mask_name    = "PPIMAGE.CHIP.MASK";
     
    231232        $command = "$warptool -warped -dbname $image_db";
    232233        $component_args = " -skycell_id $skycell_id" if $skycell_id;
    233         $id_opt = "-warp_id";
     234        $id_opt = $use_imfile_id ? "-warp_skyfile_id" : "-warp_id";
    234235        $image_name   = "PSWARP.OUTPUT";
    235236        $mask_name    = "PSWARP.OUTPUT.MASK";
     
    242243        $command = "$difftool -diffskyfile -dbname $image_db";
    243244        $component_args = " -skycell_id $skycell_id" if $skycell_id;
    244         $id_opt = "-diff_id";
     245        $id_opt = $use_imfile_id ? "-diff_skyfile_id" : "-diff_id";
    245246        $image_name  = "PPSUB.OUTPUT";
    246247        $mask_name   = "PPSUB.OUTPUT.MASK";
Note: See TracChangeset for help on using the changeset viewer.