powered by
Pressure from z
gsw_p_from_z(z, latitude, geo_strf_dyn_height = 0, sea_surface_geopotential = 0)
height, zero at surface (but note last 2 args) and positive upwards [ m ]
latitude in decimal degrees north [ -90 ... +90 ]
dynamic height anomaly [ m^2/s^2 ]
geopotential at zero sea pressure [ m^2/s^2 ]
sea pressure [ dbar ]
http://www.teos-10.org/pubs/gsw/html/gsw_p_from_z.html
This is (almost) the reverse of gsw_z_from_p, apart from the last two arguments.
gsw_z_from_p
# NOT RUN { gsw_p_from_z(-10, 4) # 10.05572704136 # }
Run the code above in your browser using DataLab