Skip to content

Commit

Permalink
Merge pull request pytroll#2819 from mraspaud/fix-olci-lazyness
Browse files Browse the repository at this point in the history
Ensure lazyness of the olci nc reader
  • Loading branch information
mraspaud authored Jun 24, 2024
2 parents cade277 + deeafbe commit df4a1ba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions satpy/readers/olci_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,16 @@ def __init__(self, filename, filename_info, filetype_info,
engine=None, **kwargs):
"""Init the file handler."""
super().__init__(filename, filename_info, filetype_info, engine)
self.l_step = self.nc.attrs["al_subsampling_factor"]
self.c_step = self.nc.attrs["ac_subsampling_factor"]

@property
def l_step(self):
"""Get the line step."""
return self.nc.attrs["al_subsampling_factor"]

@property
def c_step(self):
"""Get the column step."""
return self.nc.attrs["ac_subsampling_factor"]

def _do_interpolate(self, data):

Expand Down

0 comments on commit df4a1ba

Please sign in to comment.