IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2014, 11:51:17 AM (12 years ago)
Author:
bills
Message:

For bycoord and byskycell requests for warps using releasetool add a wide coordinate
cut (5 degree distance from center to boresite) on the command line. This greatly
reduces the query time by reducing the number of warpRuns and thus warpSkyfile's rows joined.

File:
1 edited

Legend:

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

    r36168 r36645  
    468468            $skycell_id = $component;
    469469            $choose_components = 1;
     470            if ($req_type eq 'byskycell' and $skycenter) {
     471                # Add a wide coordinate cut to the releasetool command.
     472                # This greatly speeds up the query by reducing the number of exposures considered
     473                # to those near the region of interest.
     474                # The actual radius value that we use is not critical because the skycell cut does the relevant
     475                # selection.
     476                $command .= " -ra $row->{CENTER_X} -decl $row->{CENTER_Y} -radius 5.0";
     477            }
    470478        } else {
    471479            $command = "$warptool -pstamp_order -dbname $imagedb";
     
    10941102            setErrorCodes($rowList, $PSTAMP_NO_IMAGE_MATCH);
    10951103        } else {
    1096             # XXX: We are not applying the fwhm cuts
     1104            # XXX: We are not applying the fwhm cuts unless we use releasetool
    10971105            foreach my $skycell (@$skycells) {
    10981106                my $these_results = lookup($ipprc, $rowList, $imagedb, "byskycell", $stage, undef,
Note: See TracChangeset for help on using the changeset viewer.