read.argo to convert Argo-convention
data names to oce-convention names. The inference of names was done
by case-by-case inspection of some files. Eventually, it would make
sense to handle all the documented names listed in tables 2.2.2
and 2.2.3 of [1].
decodeDataNamesArgo(names)names, but with
replacements having been made for all known quantities.
gsub, ignoring the case of the input strings. The procedure
is to first handle the items listed in the following table. After that,
the qualifiers
_ADJUSTED, _ERROR and _QC,
are translated to Adjusted, Error, and QC, respectively.
BBP700 becomes bbp700
BETA_BACKSCATTERING700 becomes betaBackscattering700
BPHASE_OXY becomes bphaseOxygen
CHLA becomes chlorophyllA
CYCLE_NUMBER becomes cycleNumber
DATA_CENTRE becomes dataCentre (note the spelling)
DATA_MODE becomes dataMode
DATA_STATE_INDICATOR becomes dataStateIndicator
DC_REFERENCE becomes DCReference
DIRECTION becomes direction (either A for ascending or D for descending)
FIRMWARE_VERSION becomes firmwareVersion
INST_REFERENCE becomes instReference
JULD becomes juld (and used to compute time)
JULD_QC_LOCATION becomes juldQCLocation
LATITUDE becomes latitude
LONGITUDE becomes longitude
PI_NAME becomes PIName
PLATFORM_NUMBER becomes id
POSITION_ACCURACY becomes positionAccuracy
POSITIONING_SYSTEM becomes positioningSystem
PROFILE becomes profile
PROJECT_NAME becomes projectName
STATION_PARAMETERS becomes stationParameters
UV_INTENSITY becomes UVIntensity
UV_INTENSITY_DARK_NITRATE becomes UVIntensityDarkNitrate
UV_INTENSITY_NITRATE becomes UVIntensityNitrate
WMO_INST_TYPE becomes WMOInstType