IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33455 for trunk/pstamp/scripts


Ignore:
Timestamp:
Mar 9, 2012, 9:22:52 AM (14 years ago)
Author:
bills
Message:

For bycoord requests don't select data prior to 2009-04-01 unless
mjd_min is explicitly given by the user

File:
1 edited

Legend:

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

    r32940 r33455  
    418418    my $camera     = $proj_hash->{camera};
    419419    $need_magic    = $proj_hash->{need_magic};
     420    # Since user can get unmagicked data "by coordinate" requests can go back in time
     421    # to dredge unusable data from the "dark days"...
     422    if ($req_type eq 'bycoord' and $mjd_min eq 0) {
     423            # ... so unless the user sets mjd_min clamp it to 2009-04-01
     424            # XXX: This value should live in the pstampProject table not be hardcoded here
     425            $mjd_min = 54922;
     426    }
    420427
    421428    $need_magic = 0 if $stage eq 'stack';
     
    431438                # and this user's data store destination is allowed uncensored stamps, so accept the request
    432439                $need_magic = 0;
    433 
    434                 # Since user can get unmagicked data "by coordinate" requests can go back in time
    435                 # to dredge unusable data from the "dark days"...
    436                 if ($req_type eq 'bycoord' and $mjd_min eq 0) {
    437                     # ... so unless the user sets mjd_min clamp it to 2009-04-01
    438                     # XXX: This value should live in the pstampProject table not be hardcoded here
    439                     $mjd_min = 54922;
    440                 }
    441440            } else {
    442441                print STDERR "Error row $rownum: User not authorized to to request uncensored stamps.\n";
Note: See TracChangeset for help on using the changeset viewer.