IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29334


Ignore:
Timestamp:
Oct 5, 2010, 3:45:22 PM (16 years ago)
Author:
bills
Message:

bug fixes from trunk

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

Legend:

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

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

    r29204 r29334  
    100100        my $x = $row->{CENTER_X};
    101101        my $y = $row->{CENTER_Y};
    102         my $results = lookup_bycoord($ipprc, $rowList, $imagedb, $img_type, $tess_id, $component, $need_magic, $x, $y, $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose);
     102        my $results = lookup_bycoord($ipprc, $rowList, $imagedb, $img_type, $tess_id, $component, $need_magic, $x, $y, $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, $verbose);
    103103        return $results;
    104104    }
     
    164164
    165165    my $results = lookup($ipprc, $rowList, $imagedb, $req_type, $img_type, $id, $tess_id, $component,
    166         $need_magic, $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose);
     166        $need_magic, $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, $verbose);
    167167
    168168    return $results;
     
    187187    my $data_group = shift;
    188188    my $option_mask = shift;
     189    my $mjd_min = shift;
     190    my $mjd_max = shift;
    189191    my $verbose  = shift;
    190192
     
    348350        $command .= " -dateobs_begin $dateobs_begin" if $dateobs_begin;
    349351        $command .= " -dateobs_end $dateobs_end" if $dateobs_end;
     352    } else {
     353        $command .= " -mjd_obs_begin $mjd_min" if $mjd_min;
     354        $command .= " -mjd_obs_end $mjd_max" if $mjd_max;
    350355    }
    351356
     
    635640    my $data_group = shift;
    636641    my $option_mask = shift;
     642    my $mjd_min = shift;
     643    my $mjd_max = shift;
    637644    my $verbose    = shift;
    638645
     
    650657                my $these_results = lookup($ipprc, $rowList, $imagedb, "byid", $img_type, $chip->{id},
    651658                    $tess_id, $chip->{component}, $need_magic,
    652                     $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose);
     659                    $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, $verbose);
    653660
    654661                next if !$these_results;
     
    670677                my $these_results = lookup($ipprc, $rowList, $imagedb, "byskycell", $img_type, undef,
    671678                    $skycell->{tess_id}, $skycell->{component}, $need_magic,
    672                     $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $verbose);
     679                    $dateobs_begin, $dateobs_end, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, $verbose);
    673680
    674681                next if !$these_results;
     
    10061013
    10071014    my $ticks = ($mjd - 40587.0) * 86400;
     1015
     1016    # CONVERT from TAI to UTC
     1017    # XXX: do this correctly
     1018    if ($mjd >= 54832) {
     1019        $ticks += -34;
     1020    } else {
     1021        $ticks += -33;
     1022    }
    10081023
    10091024    my ($sec, $min, $hr, $day, $mon, $year) = gmtime($ticks);
Note: See TracChangeset for help on using the changeset viewer.