API reference#
This page provides an auto-generated summary of argopy’s API. For more details and examples, refer to the relevant chapters in the main part of the documentation.
Argo Data Fetchers#
alias of |
Data selection methods#
Space/time domain data fetcher |
|
Float data fetcher |
|
Profile data fetcher |
Data access methods#
|
Fetch data (and compute a profile index) if not already in memory |
|
Fetch and return data as |
|
Fetch and return data as |
|
Return a profile index of Argo data, fetch data if necessary |
|
Fetch and return data as |
Data visualisation methods#
|
Create custom plots from this fetcher data or index. |
|
Open access point dashboard. |
|
Create custom plots from this fetcher index. |
Properties#
Data structure |
|
Index structure, as returned by the to_index method |
|
Space/time domain of the dataset |
|
List of resources to load for a request |
Dataset.argo (xarray accessor to work with Argo dataset)#
Class registered under scope |
This accessor extends xarray.Dataset. Proper use of this accessor should be like:
>>> import xarray as xr # first import xarray
>>> import argopy # import argopy (the dataset 'argo' accessor is then registered)
>>> from argopy import DataFetcher
>>> ds = DataFetcher().float([6902766, 6902772, 6902914, 6902746]).load().data
>>> ds.argo
>>> ds.argo.filter_qc()
Data Transformation#
|
Transform a collection of points into a collection of profiles |
Transform a collection of profiles to a collection of points |
|
|
Interpolate measurements to standard pressure levels |
|
Group measurements by pressure bins |
|
Compute <PARAM>_DATA_MODE variables |
|
Filter measurements according to parameters data mode |
|
Merge <PARAM> and <PARAM>_ADJUSTED variables according to DATA_MODE or <PARAM>_DATA_MODE |
Convert PARAMETER_DATA_MODE(N_PROF, N_PARAM) into several <PARAM>_DATA_MODE(N_PROF) variables |
Data Filters#
|
Filter measurements according to QC values |
|
Filter variables according to OWC salinity calibration software requirements |
Filter dataset for research user mode |
|
|
Filter measurements according to parameters data mode |
Extensions#
You can create your own extension to an Argo dataset for specific features. It should be registered by inheriting from argopy.extensions.ArgoAccessorExtension and decorated with argopy.extensions.register_argo_accessor.
argopy comes with the following extensions:
General purposes#
|
Add TEOS10 variables to the dataset |
|
Utilities for Argo parameters data mode |
|
Preprocess data for OWC software calibration |
BGC specifics#
|
Nutrients and Carbonate System Variables predictor with CANYON-MED |
|
Make predictions using the CANYON-MED neural network |
List of parameters required to make predictions with CANYON-MED |
|
List of all possible output variables for CANYON-MED |
|
|
Nutrients and Carbonate System Variables predictor with CANYON-B |
|
Make predictions using the CANYON-B method. |
List of parameters required to make predictions with CANYON-B |
|
List of all possible output variables for CANYON-B |
|
|
Nutrients and Carbonate System Variables predictor made consistent with chemistry constraints with CONTENT |
|
Make predictions using the CONTENT method. |
List of parameters required to make predictions with CONTENT |
|
List of all possible output variables for CONTENT |
|
|
Optical modeling of the upper ocean |
|
Depth of the euphotic zone from PAR |
|
First optical depth from depth of the euphotic zone |
|
Depth where PAR reaches some threshold value (closest point) |
|
Search and qualify Deep Chlorophyll Maxima |
Misc#
Basic profile index |
|
Space/time domain of the dataset |
|
Return a tuple with all (PLATFORM_NUMBER, CYCLE_NUMBER) in the dataset |
|
|
UID encoder/decoder |
|
Make sure variables are of the appropriate types according to Argo |
Number of measurement points |
|
|
Write Argo dataset content to a zarr group |
|
Apply a vectorized function for unlabeled arrays for each Argo profiles |
ArgoFloat (data and meta-data fetcher for one float)#
|
Argo GDAC float store |
Extension: Plot
Extension providing plot methods |
|
Quick map of the float trajectory |
|
Plot a map of one dataset parameter, possibly sliced at a given pressure value. |
|
Scatter plot for a 2-dimensional dataset parameter |
Extension: Configuration and launch configuration parameters
Extension providing access to configuration parameters |
Total number of parameters |
|
List of configuration parameter names |
|
Total number of missions |
|
List of mission numbers |
|
A dictionary mapping cycle on mission numbers |
|
|
Retrieve a configuration parameter for cycle number(s) |
|
Export configuration parameters to a class:pandas.DataFrame |
Extension providing access to LAUNCH configuration parameters |
Total number of parameters |
|
List of configuration parameter names |
|
Export launch configuration parameters to a class:pandas.DataFrame |
ArgoIndex (explore Argo files index)#
|
Argo GDAC index store |
List of extensions:
Extension providing search methods to query index entries |
|
Extension providing plot methods |
Search on a single property of a file record:
|
Search index for floats defined by WMO |
|
Search index for cycle numbers |
|
Search index for a meridional band |
|
Search index for a zonal band |
|
Search index for a date range |
|
Search index for one or a list of parameters |
Search index for profiles with a parameter in a specific data mode |
|
|
Search index for profiler types |
|
Search index for profiler types with a given string in their long name |
|
Search index for institution codes |
|
Search index for institutions with a given string in their long name |
|
Search index for DAC |
Search on at least two properties of a file record:
|
Search index for floats defined by their WMO and specific cycle numbers |
|
Search index for a rectangular longitude/latitude domain |
|
Search index for a box: a rectangular latitude/longitude domain and time range |
|
Compose query with multiple search methods |
Plotting methods:
|
Quick map of profile index trajectories |
|
Bar plot of one index property |
Argo vocabulary: referencing system#
|
A class to work with an Argo Reference Value, i.e. a NVS vocabulary "concept". |
|
A class to work with an Argo reference table, i.e. a NVS "vocabulary". |
|
A class to work with Argo Reference Value Relationships, i.e. a NVS "mapping". |
GDAC file stores#
|
Argo file system for any GDAC path |
Data visualisation#
Visualisation functions available at the argopy module level:
|
Insert an Argo dashboard page in a notebook cell, or return the corresponding url |
|
Class to manage discrete coloring for Argo related variables |
All other visualisation functions are in the argopy.plot submodule:
|
Insert the CLS Satellite Altimeter Report figure in notebook cell |
|
Try-to-be generic function to create a scatter plot on a map from argopy |
|
Create a bar plot for an Argo index dataframe |
|
Argo parameter scatter plot |
|
Add latitude/longitude grid line and labels to a cartopy geoaxes |
Utilities#
Function under the argopy.utils submodule.
Lists#
List all available data sources |
|
List all available index sources |
|
|
List of dataset variables possibly return in |
List of all 🟡 core + 🔵 deep variables that can be found in a multi-profile netcdf file |
|
List of all 🟡 core + 🔵 deep parameters that can be found in mono and multi-profile netcdf files |
|
List of all 🟢 BGC mission variables that can be found in a BGC Synthetic netcdf files |
|
List of all 🟢 BGC mission parameters that can be found in a BGC Synthetic netcdf files |
|
List of all 🟢 BGC mission variables related to radiometry that can be found in a BGC Synthetic netcdf files |
|
List of all 🟢 BGC mission parameters related to radiometry that can be found in a BGC Synthetic netcdf files |
|
List of official Argo GDAC servers |
Checkers#
|
Validate a WMO option and returned it as a list of integers |
|
Validate a CYC option and returned it as a list of integers |
|
Check if a path has the expected GDAC structure |
|
Check if an URL is alive |
|
Check if a keyword is in the content of a URL |
|
Check if an API is alive or not |
|
Check if a source API is alive or not |
Misc#
|
Argo float WMO number object |
|
A list manager that can validate item type |
|
To chunk fetcher requests |
|
Drop variables that are not in all datasets (the lowest common denominator) |
|
Add empty variables to dataset so that all the collection have the same |
GreenCoding API helper class for argopy carbon footprint |
|
|
Github repository helper class |
Utility module for optical modeling diagnostics. |
Argopy helpers#
|
Set options for argopy |
|
Delete argopy cache folder content |
|
Open a dataset from the argopy online data repository (requires internet). |
|
Print the versions of argopy and its dependencies |
Backend for Argo netCDF files based on the xarray netCDF4 engine |
Internals#
File systems#
|
Argo file system for any GDAC path |
|
Argo File System Prototype |
|
Argo local file system |
|
Argo http file system |
|
Argo http file system that automatically try to login to an Erddap server |
|
Argo in-memory file system (global) |
|
Argo ftp file system |
|
Argo s3 file system |
|
Argo netcdf file kerchunk helper |
Fetcher sources#
ERDDAP#
Manage access to Argo data through Ifremer ERDDAP |
|
|
Manage access to Argo data through Ifremer ERDDAP for: a list of WMOs |
|
Manage access to Argo data through Ifremer ERDDAP for: an ocean rectangle |
GDAC#
Manage access to Argo data from a GDAC server |
|
|
Manage access to GDAC Argo data for: a list of WMOs. |
|
Manage access to GDAC Argo data for: a rectangular space/time domain. |
Argovis#
|
|
|