Skip to content

Commit

Permalink
Fix bug introduced a few commits back
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina.Hakansson committed Mar 8, 2024
1 parent 7e336ee commit beaf06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/readers/viirs_vgac_l1c_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def extract_time_data(self, data, nc):
"""Decode time data."""
reference_time = np.datetime64(datetime.strptime(nc["proj_time0"].attrs["units"],
"days since %d/%m/%YT%H:%M:%S"))
delta_part_of_day, delta_full_days = np.modf(nc["proj_time0"].values[0])
delta_part_of_day, delta_full_days = np.modf(nc["proj_time0"].values)
delta_full_days = np.timedelta64(delta_full_days.astype(np.int64), "D").astype("timedelta64[us]")
delta_part_of_day = delta_part_of_day * np.timedelta64(1, "D").astype("timedelta64[us]")
delta_hours = data.values * np.timedelta64(1, "h").astype("timedelta64[us]")
Expand Down

0 comments on commit beaf06f

Please sign in to comment.