IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 1, 2009, 10:07:51 AM (17 years ago)
Author:
bills
Message:

implement REQ_TYPE byskycell and various other features

File:
1 edited

Legend:

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

    r25540 r25712  
    8181    my $fileset = $req_name;
    8282
    83 
    84     # Here we invoke the assumption that the output for the request is placed in the
    85     # fileset directory directly
    86 #    my $out_dir = "$outputDataStoreRoot/$product/$fileset";
    87 
    88     # now we are assuming that the output directory is the dirname of the request file
    89     # XXX: put this in the database
    90 
    9183    print STDERR "product: $product  REQ_NAME: $req_name $out_dir\n" if $verbose;
    9284
     
    216208
    217209                    # ra_deg and dec_deg are the coordinates of center of the stamp
    218                     # XXX: parse the stamp header to find it
    219                     print $tdf "0.0|0.0|";
     210                    # XXX do this more cleanly
     211                    my (undef, $ra_deg, $dec_deg) = split " ", `echo $out_dir/$img_name | fields RA_DEG DEC_DEG`;
     212                    $ra_deg = 0.0 if (!$ra_deg);
     213                    $dec_deg = 0.0 if (!$dec_deg);
     214                    print $tdf "$ra_deg|$dec_deg|";
    220215
    221216                    print $tdf "$exp_info|";
Note: See TracChangeset for help on using the changeset viewer.