NCL Home >
Documentation >
Functions >
Meteorology
coriolis_param
Calculate the Coriolis parameter.
Available in version 6.4.0 and later.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; This library is automatically loaded ; from NCL V6.2.0 onward. ; No need for user to explicitly load. function coriolis_param ( lat : numeric ) return_val [dimsizes(lat)] : float or double
Arguments
latA variable of any dimensionality containing the latitude (degrees)
Return value
A scalar or array of the same size(s) as lat. The output will be double if lat is of type double.
Description
Calculate the Coriolis parameter: 2*OMEGA*sin(lat) where OMEGA=7.292e-5
See Also
Examples
Example 1
lat = 35 ; scalar f35 = coriolis_param(lat) ; scalar print(f35) ; f35(1) nlat = 10 LAT = latGlobeFo(nlat, "LAT", "latitude", "degrees_north") ; LAT(LAT) fLAT = coriolis_param(LAT) ; 1D array of length 10 print(fLAT)The output is:
Variable: f35 Type: float Total Size: 4 bytes 1 values Number of Dimensions: 1 Dimensions and sizes: [1] Coordinates: Number Of Attributes: 2 long_name : Coriolis parameter units : 1/s (0) 8.365038e-05 ---------------------------------- Variable: fLAT Type: float Total Size: 40 bytes 10 values Number of Dimensions: 1 Dimensions and sizes: [LAT | 10] Coordinates: LAT: [-81..81] Number Of Attributes: 2 long_name : Coriolis parameter units : 1/s (0) -0.0001440445 (1) -0.0001299444 (2) -0.0001031244 (3) -6.620997e-05 (4) -2.28144e-05 (5) 2.28144e-05 (6) 6.620997e-05 (7) 0.0001031244 (8) 0.0001299444 (9) 0.0001440445