From 369f5fb513afa00e822b3cf731d22007673b01a7 Mon Sep 17 00:00:00 2001 From: Guillaume Maze Date: Tue, 26 Sep 2023 11:35:16 +0200 Subject: [PATCH] Update data_sources.rst --- .../fetching-argo-data/data_sources.rst | 54 +++++++++++-------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/docs/user-guide/fetching-argo-data/data_sources.rst b/docs/user-guide/fetching-argo-data/data_sources.rst index fdb86c5a..28752819 100644 --- a/docs/user-guide/fetching-argo-data/data_sources.rst +++ b/docs/user-guide/fetching-argo-data/data_sources.rst @@ -181,37 +181,45 @@ Fetched data and variables | This will depend on the last update of each data sources and of your local data. -Let's retrieve one float data from a local sample of the GDAC ftp (a sample GDAC ftp is downloaded automatically with the method :meth:`argopy.tutorial.open_dataset`): +.. tabs:: -.. ipython:: python - :okwarning: + .. tab:: **GDAC** ftp - # Download ftp sample and get the ftp local path: - ftproot = argopy.tutorial.open_dataset('gdac')[0] - - # then fetch data: - with argopy.set_options(src='gdac', ftp=ftproot): - ds = ArgoDataFetcher().float(1900857).load().data - print(ds) + Let's retrieve one float data from a local sample of the GDAC ftp (a sample GDAC ftp is downloaded automatically with the method :meth:`argopy.tutorial.open_dataset`): -Let’s now retrieve the latest data for this float from the ``erddap`` and ``argovis`` sources: + .. ipython:: python + :okwarning: -.. ipython:: python - :okwarning: + # Download ftp sample and get the ftp local path: + ftproot = argopy.tutorial.open_dataset('gdac')[0] - with argopy.set_options(src='erddap'): - ds = ArgoDataFetcher().float(1900857).load().data - print(ds) + # then fetch data: + with argopy.set_options(src='gdac', ftp=ftproot): + ds = ArgoDataFetcher().float(1900857).load().data + print(ds) -.. ipython:: python - :okwarning: + .. tab:: **erddap** + + Let’s now retrieve the latest data for this float from the ``erddap``: + + .. ipython:: python + :okwarning: + + with argopy.set_options(src='erddap'): + ds = ArgoDataFetcher().float(1900857).load().data + print(ds) + + .. tab:: **argovis** + + And with ``argovis``: + + .. ipython:: python + :okwarning: - with argopy.set_options(src='argovis'): - ds = ArgoDataFetcher().float(1900857).load().data - print(ds) + with argopy.set_options(src='argovis'): + ds = ArgoDataFetcher().float(1900857).load().data + print(ds) -We can see some minor differences between ``gdac``/``erddap`` vs the -``argovis`` response. .. _api-status: