pysiral.envisat.l1_adapter

Attributes

__author__

Classes

EnvisatSGDRNC

Converts a Envisat SGDR object into a L1bData object

Module Contents

pysiral.envisat.l1_adapter.__author__ = 'Stefan Hendricks'
class pysiral.envisat.l1_adapter.EnvisatSGDRNC(cfg: Dict | pysiral.core.legacy_classes.AttrDict, raise_on_error: bool = False)

Bases: pysiral.l1preproc.Level1PInputHandlerBase

Converts a Envisat SGDR object into a L1bData object

timer = None
sgdr = None
filepath = None
l1 = None
get_l1(filepath: str | pathlib.Path, polar_ocean_check: Any = None, raise_on_error: bool = False) pysiral.l1data.Level1bData

Read the Envisat SGDR file and transfers its content to a Level1Data instance

Parameters:
  • raise_on_error

  • polar_ocean_check

  • filepath – The full file path to the netCDF file

Returns:

The parsed (or empty) Level-1 data container

_set_input_file_metadata() None

Extract essential metadata information from SGDR file

_set_l1_data_groups() None

Transfer data from the necessary data groups :return:

_transfer_timeorbit() None

Extracts the time/orbit data group from the SGDR data :return:

_transfer_waveform_collection()

Transfers the waveform data (power & range for each range bin) :return:

_transfer_range_corrections()

Transfer range correction data from the SGDR netCDF to the l1bdata object. The parameters are defined in config/mission_def.yaml for ers1/ers2 -> settings.sgdr_range_correction_targets

For a description of the parameter see section 3.10 in the REAPER handbook

_transfer_classifiers()

Transfer classifier parameter from the SGDR netCDF to the l1bdata object. Most parameter are defined in config/mission_def.yaml for ers1/ers2 -> ersX.settings.sgdr_range_correction_targets

_transfer_surface_type_data()
static find_and_interpolate_nans(variable, fill_on_error_value=np.nan)

Replace NaN’s in variable with linear interpolated values :param variable: :return: interpolated variable

static interp_1Hz_to_20Hz(variable_1Hz, time_1Hz, time_20Hz, fill_on_error_value=np.nan, **kwargs)

Computes a simple linear interpolation to transform a 1Hz into a 20Hz variable :param variable_1Hz: an 1Hz variable array :param time_1Hz: 1Hz reference time :param time_20Hz: 20 Hz reference time :return: the interpolated 20Hz variable

property empty

Default return object, if nodata should be returned :return: Representation of an empty object (None)