Skip to contents

Compute height above the surface. This is the negative of depth, and so is defined simply in terms of swDepth().

Usage

swZ(
  pressure,
  latitude = 45,
  eos = getOption("oceEOS", default = "gsw"),
  debug = getOption("oceDebug")
)

Arguments

pressure

either pressure (dbar), in which case latitude must also be given, or a ctd object, in which case latitude will be inferred from the object.

latitude

numeric value for latitude in degrees North.

eos

character value indicating the formulation to be used, either "unesco" or "gsw".

debug

an integer specifying whether debugging information is to be printed during the processing. This is a general parameter that is used by many oce functions. Generally, setting debug=0 turns off the printing, while higher values suggest that more information be printed. If one function calls another, it usually reduces the value of debug first, so that a user can often obtain deeper debugging by specifying higher debug values.