Methods

NumRu::GAnalysis::QG_sphere_common

Collection of common methods for QG_sphere and QG_sphere_div

Public Instance Methods

f(gphys) click to toggle source

Coriolis parameter f

# File ../../lib/numru/ganalysis/qg.rb, line 225
def f(gphys)
  lam, phi, = Planet::get_lambda_phi(gphys)
  f = phi.sin * (2*Planet::omega)
  f.name = "f"
  f.long_name = "Coriolis parameter"
  f
end
f_mask0(gphys) click to toggle source

mask where f=0

# File ../../lib/numru/ganalysis/qg.rb, line 234
def f_mask0(gphys)
  f = f(gphys)
  v = f.val
  vm = NArrayMiss.to_nam(v, v.ne(0))
  f.replace_val(vm)
  f
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.