satpy.readers.olci_nc module

Sentinel-3 OLCI reader.

This reader supports an optional argument to choose the ‘engine’ for reading OLCI netCDF4 files. By default, this reader uses the default xarray choice of engine, as defined in the xarray.open_dataset() documentation`.

As an alternative, the user may wish to use the ‘h5netcdf’ engine, but that is not default as it typically prints many non-fatal but confusing error messages to the terminal. To choose between engines the user can do as follows for the default:

scn = Scene(filenames=my_files, reader='olci_l1b')

or as follows for the h5netcdf engine:

scn = Scene(filenames=my_files,
            reader='olci_l1b', reader_kwargs={'engine': 'h5netcdf'})

References

class satpy.readers.olci_nc.BitFlags(value, flag_list=None)[source]

Bases: object

Manipulate flags stored bitwise.

Init the flags.

class satpy.readers.olci_nc.NCOLCI1B(filename, filename_info, filetype_info, cal, engine=None)[source]

Bases: NCOLCIChannelBase

File handler for OLCI l1b.

Init the file handler.

static _get_items(idx, solar_flux)[source]

Get items.

_get_solar_flux(band)[source]

Get the solar flux for the band.

get_dataset(key, info)[source]

Load a dataset.

class satpy.readers.olci_nc.NCOLCI2(filename, filename_info, filetype_info, engine=None, unlog=False, mask_items=None)[source]

Bases: NCOLCIChannelBase

File handler for OLCI l2.

Init the file handler.

delog(data_array)[source]

Remove log10 from the units and values.

get_dataset(key, info)[source]

Load a dataset.

getbitmask(wqsf, items=None)[source]

Get the bitmask.

class satpy.readers.olci_nc.NCOLCIAngles(filename, filename_info, filetype_info, engine=None, **kwargs)[source]

Bases: NCOLCILowResData

File handler for the OLCI angles.

Init the file handler.

_interpolate_angles(azi, zen)[source]
datasets = {'satellite_azimuth_angle': 'OAA', 'satellite_zenith_angle': 'OZA', 'solar_azimuth_angle': 'SAA', 'solar_zenith_angle': 'SZA'}
get_dataset(key, info)[source]

Load a dataset.

property satellite_angles

Return the satellite angles.

property sun_angles

Return the sun angles.

class satpy.readers.olci_nc.NCOLCIBase(filename, filename_info, filetype_info, engine=None, **kwargs)[source]

Bases: BaseFileHandler

The OLCI reader base.

Init the olci reader base.

cols_name = 'columns'
property end_time

End time property.

get_dataset(key, info)[source]

Load a dataset.

property nc

Get the nc xr dataset.

rows_name = 'rows'
property start_time

Start time property.

class satpy.readers.olci_nc.NCOLCICal(filename, filename_info, filetype_info, engine=None, **kwargs)[source]

Bases: NCOLCIBase

Dummy class for calibration.

Init the olci reader base.

class satpy.readers.olci_nc.NCOLCIChannelBase(filename, filename_info, filetype_info, engine=None)[source]

Bases: NCOLCIBase

Base class for channel reading.

Init the file handler.

class satpy.readers.olci_nc.NCOLCIGeo(filename, filename_info, filetype_info, engine=None, **kwargs)[source]

Bases: NCOLCIBase

Dummy class for navigation.

Init the olci reader base.

class satpy.readers.olci_nc.NCOLCILowResData(filename, filename_info, filetype_info, engine=None, **kwargs)[source]

Bases: NCOLCIBase

Handler for low resolution data.

Init the file handler.

_do_interpolate(data)[source]
property _need_interpolation
cols_name = 'tie_columns'
rows_name = 'tie_rows'
class satpy.readers.olci_nc.NCOLCIMeteo(filename, filename_info, filetype_info, engine=None)[source]

Bases: NCOLCILowResData

File handler for the OLCI meteo data.

Init the file handler.

datasets = ['humidity', 'sea_level_pressure', 'total_columnar_water_vapour', 'total_ozone']
get_dataset(key, info)[source]

Load a dataset.