IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2013, 4:19:06 PM (13 years ago)
Author:
bills
Message:

add --dump-params which writes out the image paramters when used with
the debugging mode list_uri

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstampparse.pl

    r36061 r36143  
    3131my $no_update;
    3232my $dest_requires_magic;
     33my $dump_params = 0;
    3334
    3435# set this to true to disable update processing
     
    4849    'save-temps'=>  \$save_temps,
    4950    'no-update' =>  \$no_update,
     51    'dump-params' => \$dump_params,
    5052);
    5153
     
    777779            print "$image->{image}\n";
    778780            ++$firstRow->{job_num};
     781            if ($dump_params) {
     782                my $rownum = $firstRow->{ROWNUM};
     783                my $jobnum = $firstRow->{job_num};
     784                my $filter = substr $image->{filter}, 0, 1;
     785                my $output_base = "${rownum}_${jobnum}_${filter}";
     786                write_params($output_base, $image);
     787            }
    779788        }
    780789    } elsif ($job_type eq "get_image") {
Note: See TracChangeset for help on using the changeset viewer.