swarmpal.io._datafetchers#
Tools to connect to the outside world and get/create xarray Datasets
Classes#
Control which dataset is accessed, and how the fetcher behaves |
|
Control which dataset is accessed, and how the fetcher behaves |
|
Control which dataset is accessed, and how the fetcher behaves |
|
Control which dataset is accessed, and how the fetcher behaves |
|
Control which dataset is accessed, and how the fetcher behaves |
|
Control which dataset is accessed, and how the fetcher behaves |
|
Control which dataset is accessed, and how the fetcher behaves |
|
Interface with an external data source |
|
Connects to and retrieves data from VirES through viresclient |
|
Connects to and retrieves data from a HAPI server through hapiclient |
|
Interface with an external data source |
|
Interface with an external data source |
|
Interface with an external data source |
Functions#
|
Module Contents#
- class swarmpal.io._datafetchers.Parameters[source]#
Control which dataset is accessed, and how the fetcher behaves
- pad_times: tuple[datetime.timedelta] = ()#
- class swarmpal.io._datafetchers.ViresParameters[source]#
Bases:
ParametersControl which dataset is accessed, and how the fetcher behaves
- collection: str = ''#
- measurements: list[str] = []#
- start_time: str | datetime.datetime = ''#
- end_time: str | datetime.datetime = ''#
- server_url: str = 'https://vires.services/ows'#
- models: list[str] = []#
- auxiliaries: list[str] = []#
- sampling_step: str | None = None#
- filters: list[str] = []#
- options: dict#
- class swarmpal.io._datafetchers.HapiParameters[source]#
Bases:
ParametersControl which dataset is accessed, and how the fetcher behaves
- server: str = ''#
- dataset: str = ''#
- parameters: str = ''#
- start: str = ''#
- stop: str = ''#
- options: dict#
- class swarmpal.io._datafetchers.FileParameters[source]#
Bases:
ParametersControl which dataset is accessed, and how the fetcher behaves
- filename: os.PathLike | None = None#
- class swarmpal.io._datafetchers.CDFFileParameters[source]#
Bases:
FileParametersControl which dataset is accessed, and how the fetcher behaves
- class swarmpal.io._datafetchers.NetCDFFileParameters[source]#
Bases:
FileParametersControl which dataset is accessed, and how the fetcher behaves
- group: str | None = None#
- class swarmpal.io._datafetchers.ManualParameters[source]#
Bases:
ParametersControl which dataset is accessed, and how the fetcher behaves
- class swarmpal.io._datafetchers.DataFetcherBase[source]#
Bases:
abc.ABCInterface with an external data source
- property source: str#
- Abstractmethod:
String to identify the data source type (e.g. ‘vires’, ‘hapi’)
- property parameters: Parameters#
- Abstractmethod:
Set of parameters to control how/what data is accessed
- class swarmpal.io._datafetchers.ViresDataFetcher(**parameters)[source]#
Bases:
DataFetcherBaseConnects to and retrieves data from VirES through viresclient
- property source: str#
String to identify the data source type (e.g. ‘vires’, ‘hapi’)
- property parameters: ViresParameters#
Set of parameters to control how/what data is accessed
- vires_request#
- class swarmpal.io._datafetchers.HapiDataFetcher(**parameters)[source]#
Bases:
DataFetcherBaseConnects to and retrieves data from a HAPI server through hapiclient
- property source: str#
String to identify the data source type (e.g. ‘vires’, ‘hapi’)
- property parameters: HapiParameters#
Set of parameters to control how/what data is accessed
- class swarmpal.io._datafetchers.NetCDFfileDataFetcher(filename: os.PathLike, group: str | None = None)[source]#
Bases:
DataFetcherBaseInterface with an external data source
- property source: str#
String to identify the data source type (e.g. ‘vires’, ‘hapi’)
- property parameters: NetCDFFileParameters#
Set of parameters to control how/what data is accessed
- class swarmpal.io._datafetchers.CDFfileDataFetcher(**parameters)[source]#
Bases:
DataFetcherBaseInterface with an external data source
- property source: str#
String to identify the data source type (e.g. ‘vires’, ‘hapi’)
- property parameters: CDFFileParameters#
Set of parameters to control how/what data is accessed
- class swarmpal.io._datafetchers.ManualDataFetcher(xarray_dataset: xarray.Dataset)[source]#
Bases:
DataFetcherBaseInterface with an external data source
- property source: str#
String to identify the data source type (e.g. ‘vires’, ‘hapi’)
- property parameters: FileParameters#
Set of parameters to control how/what data is accessed
- _xarray#
- swarmpal.io._datafetchers.get_fetcher(source) DataFetcherBase[source]#