argopy.set_options¶
- class set_options(**kwargs)[source]¶
Set options for argopy.
List of options:
- dataset: Define the Dataset to work with.
Default: phy. Possible values: phy, bgc or ref.
- src: Source of fetched data.
Default: erddap. Possible values: erddap, localftp, argovis
- local_ftp: Absolute path to a local GDAC ftp copy.
Default: .
- cachedir: Absolute path to a local cache directory.
Default: ~/.cache/argopy
- mode: User mode.
Default: standard. Possible values: standard or expert.
- api_timeout: Define the time out of internet requests to web API, in seconds.
Default: 60
You can use set_options either as a context manager: >>> import argopy >>> with argopy.set_options(src=’localftp’): >>> ds = argopy.DataFetcher().float(3901530).to_xarray()
Or to set global options: >>> argopy.set_options(src=’localftp’)
Methods
__init__
(**kwargs)