Skip to content

Commit

Permalink
Fix space pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
sfinkens committed May 17, 2024
1 parent 82eb8cd commit 7045a87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions satpy/readers/mviri_l1b_fiduceo_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def get_time(self):
except KeyError:
time = self["time"]

time_offset = time.attrs["add_offset"]
condition = time == time.attrs["_FillValue"]
time_offset = time.encoding["add_offset"]
condition = time == time.encoding["_FillValue"]

time = xr.where(condition, np.nan, time + time_offset)
time = time.astype("datetime64[s]").astype("datetime64[ns]")
Expand Down Expand Up @@ -577,7 +577,6 @@ def __init__(self, filename, filename_info, filetype_info, # noqa: D417
nc_raw = xr.open_dataset(
filename,
decode_times=False,
decode_cf=False,
)

self.nc = DatasetWrapper(nc_raw)
Expand Down

0 comments on commit 7045a87

Please sign in to comment.