argopy.extensions.ParamsDataMode.merge#
- ParamsDataMode.merge(params: str | List[str] = 'all', errors: str = 'raise') Dataset[source]#
Merge <PARAM> and <PARAM>_ADJUSTED variables according to DATA_MODE or <PARAM>_DATA_MODE
Merging is done as follows:
For measurements with data mode
R: keep <PARAM> (eg: ‘DOXY’)For measurements with data mode
DorA: keep <PARAM>_ADJUSTED (eg: ‘DOXY_ADJUSTED’)
Since adjusted variables are not required anymore after the transformation, all <PARAM>_ADJUSTED variables are dropped from the dataset in order to avoid confusion with regard to variable content. Variable DATA_MODE or <PARAM>_DATA_MODE are preserved for the record.
- Parameters:
params (str, List[str], optional, default='all') – Parameter or list of parameters to merge. Use the default keyword
allto merge all possible parameters in thexarray.Dataset.errors (str, optional, default='raise') – If
raise, raises aargopy.errors.InvalidDatasetStructureerror if any of the expected variables is not found. Ifignore, fails silently and return unmodified dataset.
- Return type:
Notes
This method is compatible with core, deep and BGC datasets
See also