IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30747


Ignore:
Timestamp:
Feb 23, 2011, 8:31:32 PM (15 years ago)
Author:
bills
Message:

for muggle enabled bycoord pstamp requests clamp mjd_min to 2009-04-01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110218/pstamp/scripts/pstampparse.pl

    r30565 r30747  
    424424                # and this user's data store destination is allowed uncensored stamps, so accept the request
    425425                $need_magic = 0;
     426
     427                # Since user can get unmagicked data "by coordinate" requests can go back in time
     428                # to dredge unusable data from the "dark days"...
     429                if ($req_type eq 'bycoord' and $mjd_min eq 0) {
     430                    # ... so unless the user sets mjd_min clamp it to 2009-04-01
     431                    # XXX: This value should live in the pstampProject table not be hardcoded here
     432                    $mjd_min = 54922;
     433                }
    426434            } else {
    427435                print STDERR "Error row $rownum: User not authorized to to request uncensored stamps.\n";
     
    465473    print "Time to locate_images for row $rownum $dtime_locate\n";
    466474
    467     # handle this XXX: what did I mean by this comment
     475    # handle this
     476    # XXX: what did I mean by that comment?
    468477    $row->{need_magic} = $need_magic;
    469478
    470479    $num_jobs += queueJobs($mode, \@rowList, $imageList);
    471480
    472     # if a row slipped through with no jobs add one
     481    # if a row slipped through with no jobs add a faulted one
    473482    foreach my $row (@rowList) {
    474483        if ($row->{job_num} == 0) {
Note: See TracChangeset for help on using the changeset viewer.