IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13711


Ignore:
Timestamp:
Jun 7, 2007, 3:59:50 PM (19 years ago)
Author:
Paul Price
Message:

Using camera-level astrometry file to perform warping, rather than WCS.

File:
1 edited

Legend:

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

    r13698 r13711  
    9797my ($list1File, $list1Name) = tempfile( "$tess_id.$skycell_id.wrp$warp_id.image.list.XXXX", UNLINK => 1);
    9898my ($list2File, $list2Name) = tempfile( "$tess_id.$skycell_id.wrp$warp_id.mask.list.XXXX", UNLINK => 1);
     99my ($list3File, $list3Name) = tempfile( "$tess_id.$skycell_id.wrp$warp_id.astrom.list.XXXX", UNLINK => 1);
    99100foreach my $imfile (@$imfiles) {
    100101    my $image = $imfile->{uri}; # Image name
    101     my $mask = $ipprc->filename("PPIMAGE.OUTPUT.MASK", $imfile->{path_base}, $imfile->{class_id}); # Mask name
     102    my $mask = $ipprc->filename("PPIMAGE.OUTPUT.MASK", $imfile->{chip_path_base}, $imfile->{class_id}); # Mask name
     103    my $astrom = $ipprc->filename("PSASTRO.OUTPUT.MEF", $imfile->{cam_path_base}); # Astrometry file name
     104
    102105    &my_die("Couldn't find input file: $image", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($image);
    103106    &my_die("Couldn't find input file: $mask", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($mask);
     107    &my_die("Couldn't find input file: $astrom", $warp_id, $skycell_id, $tess_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($astrom);
    104108
    105109    print $list1File ( $image . "\n");
    106110    print $list2File ( $mask  . "\n");
     111    print $list3File ( $astrom  . "\n");
    107112}
    108113close $list1File;
    109114close $list2File;
     115close $list3File;
    110116
    111117# Run pswarp
    112118my $stats = PS::IPP::Metadata::Stats->new(); # Stats parser
    113119unless ($no_op) {
    114     my $command = "$pswarp -list $list1Name -masklist $list2Name $outputRoot $skyFile -stat $outputStats"; # Command to run pswarp
     120    my $command = "$pswarp -list $list1Name -masklist $list2Name -astromlist $list3Name $outputRoot $skyFile -stat $outputStats"; # Command to run pswarp
    115121    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    116122        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.