Changeset 29332
- Timestamp:
- Oct 5, 2010, 3:37:03 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r29183 r29332 100 100 my $x = $row->{CENTER_X}; 101 101 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); 103 103 return $results; 104 104 } … … 164 164 165 165 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); 167 167 168 168 return $results; … … 187 187 my $data_group = shift; 188 188 my $option_mask = shift; 189 my $mjd_min = shift; 190 my $mjd_max = shift; 189 191 my $verbose = shift; 190 192 … … 348 350 $command .= " -dateobs_begin $dateobs_begin" if $dateobs_begin; 349 351 $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; 350 355 } 351 356 … … 635 640 my $data_group = shift; 636 641 my $option_mask = shift; 642 my $mjd_min = shift; 643 my $mjd_max = shift; 637 644 my $verbose = shift; 638 645 … … 650 657 my $these_results = lookup($ipprc, $rowList, $imagedb, "byid", $img_type, $chip->{id}, 651 658 $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); 653 660 654 661 next if !$these_results; … … 670 677 my $these_results = lookup($ipprc, $rowList, $imagedb, "byskycell", $img_type, undef, 671 678 $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); 673 680 674 681 next if !$these_results; … … 1006 1013 1007 1014 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 } 1008 1023 1009 1024 my ($sec, $min, $hr, $day, $mon, $year) = gmtime($ticks);
Note:
See TracChangeset
for help on using the changeset viewer.
