Skip to content

Commit

Permalink
Remove unneeded code from olci reader
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Jan 9, 2023
1 parent 2d0746a commit 0e55137
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions satpy/readers/olci_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@


import logging
from contextlib import suppress
from functools import reduce

import dask.array as da
Expand Down Expand Up @@ -109,7 +108,6 @@ def __init__(self, filename, filename_info, filetype_info,
# TODO: get metadata from the manifest file (xfdumanifest.xml)
self.platform_name = PLATFORM_NAMES[filename_info['mission_id']]
self.sensor = 'olci'
self.open_file = None

@cached_property
def nc(self):
Expand Down Expand Up @@ -140,11 +138,6 @@ def get_dataset(self, key, info):

return variable

def __del__(self):
"""Close the NetCDF file that may still be open."""
with suppress(IOError, OSError, AttributeError, TypeError):
self.nc.close()


class NCOLCICal(NCOLCIBase):
"""Dummy class for calibration."""
Expand Down

0 comments on commit 0e55137

Please sign in to comment.