This function is used internally by read.argo() to convert Argo-convention data names to oce-convention names. Users should not call this directly, since its return value may be changed at any moment (e.g. to include units as well as names).

argoNames2oceNames(names, ignore.case = TRUE)

Arguments

names

vector of character strings containing names in the Argo convention.

ignore.case

a logical value passed to gsub(), indicating whether to ignore the case of input strings. The default is set to TRUE because some data files use lower-case names, despite the fact that the Argo documentation specifies upper-case.

Value

A character vector of the same length as names, but with replacements having been made for all known quantities.

Details

The inference of names was done by inspection of some data files, based on reference 1. It should be noted, however, that the data files examined contain some names that are not documented in reference 1, and others that are listed only in its changelog, with no actual definitions being given. For example, the files had six distinct variable names that seem to relate to phase in the oxygen sensor, but these are not translated by the present function because these variable names are not defined in reference 1, or not defined uniquely in reference 2.

The names are converted with gsub(), using the ignore.case argument of the present function. The procedure is to first handle the items listed in the following table, with string searches anchored to the start of the string. After that, the qualifiers _ADJUSTED, _ERROR and _QC, are translated to Adjusted, Error, and QC, respectively.

Argo nameoce name
BBPbbp
BETA_BACKSCATTERINGbetaBackscattering
BPHASE_OXYbphaseOxygen
CDOMCDOM
CNDCconductivity
CHLAchlorophyllA
CPbeamAttenuation
CYCLE_NUMBERcycleNumber
DATA_CENTREdataCentre
DATA_MODEdataMode
DATA_STATE_INDICATORdataStateIndicator
DC_REFERENCEDCReference
DIRECTIONdirection
DOWN_IRRADIANCEdownwellingIrradiance
DOWNWELLING_PARdownwellingPAR
FIRMWARE_VERSIONfirmwareVersion
FIT_ERROR_NITRATEfitErrorNitrate
FLUORESCENCE_CDOMfluorescenceCDOM
FLUORESCENCE_CHLAfluorescenceChlorophyllA
INST_REFERENCEinstReference
JULDjuld (and used to compute time)
JULD_QC_LOCATIONjuldQCLocation
LATITUDElatitude
LONGITUDElongitude
MOLAR_DOXYoxygenUncompensated
PH_IN_SITU_FREEpHFree
PH_IN_SITU_TOTALpH
PI_NAMEPIName
PLATFORM_NUMBERid
POSITION_ACCURACYpositionAccuracy
POSITIONING_SYSTEMpositioningSystem
PROFILEprofile
PROJECT_NAMEprojectName
RAW_DOWNWELLING_IRRADIANCErawDownwellingIrradiance
RAW_DOWNWELLING_PARrawDownwellingPAR
RAW_UPWELLING_RADIANCErawUpwellingRadiance
STATION_PARAMETERSstationParameters
TEMPtemperature
TEMP_CPU_CHLAtemperatureCPUChlorophyllA
TEMP_DOXYtemperatureOxygen
TEMP_NITRATEtemperatureNitrate
TEMP_PHtemperaturePH
TEMP_SPECTROPHOTOMETER_NITRATEtemperatureSpectrophotometerNitrate
TILTtilt
TURBIDITYturbidity
UP_RADIANCEupwellingRadiance
UV_INTENSITYUVIntensity
UV_INTENSITY_DARK_NITRATEUVIntensityDarkNitrate
UV_INTENSITY_NITRATEUVIntensityNitrate
VRS_PHVRSpH
WMO_INST_TYPEWMOInstType

References

  1. Argo User's Manual Version 3.3, Nov 89th, 2019, available at https://archimer.ifremer.fr/doc/00187/29825/

  2. Argo list of parameters in an excel spreadsheet, available at http://www.argodatamgt.org/content/download/27444/187206/file/argo-parameters-list-core-and-b.xlsx

See also