IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2009, 3:17:29 PM (17 years ago)
Author:
bills
Message:

various changes to the postage stamp server.

File:
1 edited

Legend:

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

    r26242 r26289  
    193193    my $mjd_min = $row->{MJD_MIN};
    194194    my $mjd_max = $row->{MJD_MAX};
    195     my $label   = $row->{LABEL};
     195    my $data_group = $row->{DATA_GROUP};
     196    if (!defined $data_group) {
     197        # backwards compatability hook
     198        $data_group = $row->{LABEL};
     199    }
     200       
    196201    my $x       = $row->{CENTER_X};
    197202    my $y       = $row->{CENTER_Y};
     
    272277    # request specification. An array reference is returned.
    273278    $imageList = locate_images($ipprc, $image_db, $req_type, $stage, $id, $tess_id, $search_component,
    274                 $inverse, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $label, $verbose);
     279                $inverse, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $data_group, $verbose);
    275280
    276281    if (!$imageList or !@$imageList) {
     
    424429                    # set up to queue an update run
    425430                    queue_update_run(\$newState, \$fault, \$dep_id, $image->{image_db},
    426                         $run_state, $stage, $image->{stage_id}, $need_magic, $image->{label});
     431                        $run_state, $stage, $image->{stage_id}, $need_magic);
    427432                }
    428433            }
     
    548553                # we collected a set of sky coordinates above.
    549554                # filter the images so that only those that contain the centers of the ROIs are processed
    550                 my $command = "$dvoImagesAtCoords $pointsListName";
     555                my $command = "$dvoImagesAtCoords -coords $pointsListName";
    551556                if ($have_skycells) {
    552557                    my $tess_id = $thisRun->[0]->{tess_id};
     
    671676                    # set up to queue an update run
    672677                    queue_update_run(\$newState, \$fault, \$dep_id, $image->{image_db},
    673                         $run_state, $stage, $image->{stage_id}, $need_magic, $image->{label});
     678                        $run_state, $stage, $image->{stage_id}, $need_magic);
    674679                }
    675680            }
     
    801806    return 0 if ($r1->{TESS_ID}  ne $r2->{TESS_ID});
    802807    return 0 if ($r1->{REQFILT}  ne $r2->{REQFILT});
    803     return 0 if ($r1->{LABEL}    ne $r2->{LABEL});
     808    return 0 if ($r1->{DATA_GROUP}    ne $r2->{DATA_GROUP});
    804809    return 0 if ($r1->{MJD_MIN}  ne $r2->{MJD_MAX});
    805810    return 0 if ($r1->{MJD_MAX}  ne $r2->{MJD_MAX});
     
    850855sub queue_update_run
    851856{
    852     my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $need_magic, $label) = @_;
     857    my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $need_magic) = @_;
    853858
    854859    if (($state ne 'cleaned') and ($state ne 'update') and ($state ne 'goto_cleaned')) {
     
    858863    my $dep_id;
    859864    my $command = "$pstamptool -getdependent -stage $stage -stage_id $stage_id -imagedb $imagedb";
    860     $command .= " -rlabel $label" if $label;
    861865    $command .= " -no_magic" if !$need_magic;
    862866    if (!$no_update) {
Note: See TracChangeset for help on using the changeset viewer.