IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2015, 6:27:41 AM (11 years ago)
Author:
eugene
Message:

merge changes from trunk (updates for pstamp, remote tools, ippToPsps schema 20)

Location:
branches/eam_branches/ipp-20150405
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150405

  • branches/eam_branches/ipp-20150405/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r38077 r38152  
    411411    my $release_args;
    412412    if (($req_type eq 'byexp' and $stage ne 'raw') or ($req_type eq 'byskycell' and $stage ne 'diff')) {
    413         # XXX: Think hard before committing the change to use releasetool for byexp requests regardless.
    414         # XXX: using releasetool by default for byexp requests will break for nightly data when
    415         # the release table survey task breaks.
    416         # (MOPS one off requests for last night's data)
    417         # we could fall back and do the old style lookup in that case.
    418         # Need to fix the duplicate camRun problem.
    419         my $force_releasetool_for_byexp = 0;
    420         if ($release_name or $survey or ($force_releasetool_for_byexp and ($req_type eq 'byexp'))) {
     413        # we use releasetool for lookups if we get here and have a survey or release specfied and
     414        # the survey is not 'bypass'
     415        # That is a hook to allow sophisticated users to bypass the release mechanisms. Useful for
     416        # MOPS which is interested primarily in nightly data and wants to get their data immediately
     417        # without regard to timeleness of the relexp tables
     418        if ($release_name or ($survey and $survey ne 'bypass')) { 
    421419            $use_releasetool = 1;
    422420            if ($release_name) {
     
    579577        # $cmf_name    = "PSPHOT.OUTPUT";    # this puts .fpa. in the name
    580578        $psf_name    = "PPSTACK.TARGET.PSF";
     579        # XXX TODO should we filter stacks so that only one per skycell/filter combintation is returned for
     580        # most requests. Currently unless a release is provided all that match are returned.
     581        # Actually maybe that is the right answer. User's simply need to specify a release value
     582        # if that is all that they want.
    581583    } else {
     584        # this should have been caught before we get here.
    582585        die "Unknown IMG_TYPE supplied: $stage";
    583586    }
     
    615618        $command .= " -dateobs_end $dateobs_end" if $dateobs_end;
    616619    } elsif ($req_type ne "byid") {
     620        # stacks
    617621        $command .= " -mjd_obs_begin $mjd_min" if $mjd_min;
    618622        $command .= " -mjd_obs_end $mjd_max" if $mjd_max;
Note: See TracChangeset for help on using the changeset viewer.