skretrieval.retrieval.measvec.MeasurementVector#

class skretrieval.retrieval.measvec.MeasurementVector(fn: Callable, apply_to_filter='*', sample_fn=None)[source]#

Bases: object

A class that represents a measurement vector. This is a callable object that can be used to transform L1 data to a measurement vector.

Parameters:
  • fn (Callable) – Function which takes in L1 data and returns a Measurement object

  • apply_to_filter (str, optional) – Only L1 data matching the apply_to_filter will be affected by this measurement vector, by default “*”

__init__(fn: Callable, apply_to_filter='*', sample_fn=None)[source]#

A class that represents a measurement vector. This is a callable object that can be used to transform L1 data to a measurement vector.

Parameters:
  • fn (Callable) – Function which takes in L1 data and returns a Measurement object

  • apply_to_filter (str, optional) – Only L1 data matching the apply_to_filter will be affected by this measurement vector, by default “*”

Methods

__init__(fn[, apply_to_filter, sample_fn])

A class that represents a measurement vector.

apply(l1_data[, ctxt])

Applies the function to the l1 data, returning back a Measurement object

required_sample_wavelengths(obs_samples)

Determines which sample wavelengths are required for this measurement vector

Attributes

enabled

filter

fn

apply(l1_data: dict[RadianceGridded], ctxt: dict | None = None) Measurement[source]#

Applies the function to the l1 data, returning back a Measurement object

Parameters:

l1_data (dict[RadianceGridded])

Return type:

Measurement

required_sample_wavelengths(obs_samples: dict[array]) dict[array][source]#

Determines which sample wavelengths are required for this measurement vector

Default is to just return back all of the observation wavelengths

Parameters:

obs_samples (dict[np.array])

Return type:

dict[np.array]