Learn R Programming

oce (version 1.8-3)

locationForGsw: Alter Longitude and Latitude for gsw Computations

Description

This function repeats location information as required by some seawater functions, e.g. swAbsoluteSalinity(), that use the gsw package to compute seawater properties in the Gibbs Seawater formulation. It seems unlikely that users will need to call this function directly in routine work.

Usage

locationForGsw(x)

Value

locationForGsw returns a list containing longitude and latitude, with dimensionality matching pressure in the data slot of x. If x lacks location information (in either its metadata or data

slot) or lacks pressure in its data slot, then the returned list will hold NULL values for both longitude and latitude.

Arguments

x

an oce object.

Author

Dan Kelley

Details

Several gsw functions require location information to be matched up with hydrographic information. The scheme depends on the dimensionality of the hydrographic variables and the location variables. For example, the ctd stores salinity etc in vectors, an stores just one longitude-latitude pair for each vector. By contrast, the argo stores salinity etc as matrices, and stores e.g. longitude as a vector of length matching the first dimension of salinity.

See Also

Other functions that calculate seawater properties: T68fromT90(), T90fromT48(), T90fromT68(), computableWaterProperties(), swAbsoluteSalinity(), swAlpha(), swAlphaOverBeta(), swBeta(), swCSTp(), swConservativeTemperature(), swDepth(), swDynamicHeight(), swLapseRate(), swN2(), swPressure(), swRho(), swRrho(), swSCTp(), swSR(), swSTrho(), swSigma(), swSigma0(), swSigma1(), swSigma2(), swSigma3(), swSigma4(), swSigmaT(), swSigmaTheta(), swSoundAbsorption(), swSoundSpeed(), swSpecificHeat(), swSpice(), swSpiciness0(), swSpiciness1(), swSpiciness2(), swSstar(), swTFreeze(), swTSrho(), swThermalConductivity(), swTheta(), swViscosity(), swZ()