IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

various postage stamp server fixes

File:
1 edited

Legend:

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

    r28229 r29330  
    191191            my $filter = $job_params->{filter};
    192192            $filter = "0" if !$filter;
    193             $exp_info = "0|0|0|$filter|0|0";
     193            my $mjd_obs = $job_params->{mjd_obs};
     194            $mjd_obs = "0" if !$mjd_obs;
     195            $exp_info = "$mjd_obs|0|0|$filter|0|0";
    194196        }
    195197
     
    477479    my $ticks = timegm($sec, $min, $hr, $day, $mon-1, $year-1900);
    478480
     481    # dateobs is UTC convert to TAI
     482    # XXX: Do this properly
     483    if ($year >= 2009) {
     484        $ticks += 34;
     485    } else {
     486        $ticks += 33;
     487    }
     488
    479489    return 40587.0 + ($ticks/86400.);
    480490}
Note: See TracChangeset for help on using the changeset viewer.