IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36646


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

for bycoord and byskycell requests for warps using releasetool, restrict exposures considered to
those within 5 degree radius of the center coordinate. This reduces the number of rows
considered and speeds up the query considerably

Location:
tags/ipp-20130712/PS-IPP-PStamp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/PS-IPP-PStamp

  • tags/ipp-20130712/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r36140 r36646  
    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.