swot_simulator.plugins.data_handler.DatasetLoader#
- class swot_simulator.plugins.data_handler.DatasetLoader[source]#
Bases:
object
Interface that specializes in loading data for the plugin. This is helpful to separate the data loading and interpolator definition. The data loader has only one task:
Given a time range for interpolation.
Loads the model data set needed to perform the interpolation.
Transforms it to have canonical variable names.
- __init__()#
Methods
DatasetLoader.load_dataset
(first_date, last_date)Loads the data under the form of a xr.Dataset.
Calculation of the delta T between two consecutive grids.
DatasetLoader._shift_date
(date, shift, ...)Shift the input date using the time_delta of original data.