argopy.DataFetcher.load#

DataFetcher.load(force: bool = False, **kwargs)#

Fetch data (and compute a profile index) if not already in memory

Apply the default to_xarray() and to_index() methods and store results in memory. You can access loaded measurements structure with the data and index properties.

Parameters:

force (bool) – Force fetching data even if not already in memory, default is False.

Returns:

Data fetcher with data and index properties in memory

Return type:

argopy.fetchers.ArgoDataFetcher

Examples

>>> ds = ArgoDataFetcher().profile(6902746, 34).load().data
>>> df = ArgoDataFetcher().float(6902746).load().index