Skip to content

Commit

Permalink
Make HRPT navigation timezone ignorant
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Dec 14, 2023
1 parent b497415 commit 7b56afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions satpy/readers/hrpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def time_seconds(tc_array, year):
word = tc_array[:, 3]
msecs += word & 1023
return (np.datetime64(
str(year) + "-01-01T00:00:00Z", "s") +
str(year) + "-01-01T00:00:00", "s") +
msecs[:].astype("timedelta64[ms]") +
(day - 1)[:].astype("timedelta64[D]"))

Expand Down Expand Up @@ -224,7 +224,7 @@ def calibrate_solar_channel(self, data, key):
"""Calibrate a solar channel."""
from pygac.calibration import calibrate_solar
julian_days = ((np.datetime64(self.start_time)
- np.datetime64(str(self.year) + "-01-01T00:00:00Z"))
- np.datetime64(str(self.year) + "-01-01T00:00:00"))
/ np.timedelta64(1, "D"))
data = calibrate_solar(data, _get_channel_index(key), self.year, julian_days,
self.calibrator)
Expand Down

0 comments on commit 7b56afa

Please sign in to comment.