palmmeteo_stdplugins.wrf_utils(3)

NAME
palmmeteo_stdplugins.wrf_utils

SYNOPSIS

  Classes
class BilinearRegridder
class CAMxCoordTransform
class WRFCoordTransform
class WrfPhysics

  Functions
calc_ph_hybrid (f, it, mu)
calc_ph_sigma (f, it, mu)
wrf_t (f, it)
calc_gp (f, it, ph)
palm_wrf_gw (f, lon, lat, levels, tidx=0)
minterp (interp_heights, data_heights, u, v)
get_wrf_dims (f, lat, lon, xlat, xlong)
calcgw_wrf (f, lat, lon, levels, tidx=0)
calcgw_gfs (v, lat, lon)
combinegw_gfs (grbs, levels, lat, lon)

  Variables
int gw_gfs_margin_deg = 5.
Settings for geostrophic wind.
int gw_wrf_margin_km = 10.
smoothing area in km gw_alpha = .143 ##< GW vertical interpolation by power law
int gw_alpha = 1.
ignore wind power law, interpolate linearly
parser = argparse.ArgumentParser(description=__doc__)
help
args = parser.parse_args()
f = netCDF4.Dataset(args.wrfout)
t = WRFCoordTransform(f)
mu = f.variables['MUB'][0,:,:] + f.variables['MU'][0,:,:]
gp = f.variables['PH'][0,:,:,:] + f.variables['PHB'][0,:,:,:]
phf
phh
gp_calc = calc_gp(f, 0, phf)
delta = gp_calc - gp

Detailed Description

WRF (+CAMx) utility module for PALM dynamic driver generator

Function Documentation

  palmmeteo_stdplugins.wrf_utils.calc_gp ( f, it, ph)

  palmmeteo_stdplugins.wrf_utils.calc_ph_hybrid ( f, it, mu)

  palmmeteo_stdplugins.wrf_utils.calc_ph_sigma ( f, it, mu)

  palmmeteo_stdplugins.wrf_utils.calcgw_gfs ( v, lat, lon)

  palmmeteo_stdplugins.wrf_utils.calcgw_wrf ( f, lat, lon, levels, tidx = 0)

  palmmeteo_stdplugins.wrf_utils.combinegw_gfs ( grbs, levels, lat, lon)

  palmmeteo_stdplugins.wrf_utils.get_wrf_dims ( f, lat, lon, xlat, xlong)

A crude method, yet satisfactory for approximate WRF surroundings

  palmmeteo_stdplugins.wrf_utils.minterp ( interp_heights, data_heights, u, v)

Interpolate wind using power law for agl levels

  palmmeteo_stdplugins.wrf_utils.palm_wrf_gw ( f, lon, lat, levels, tidx = 0)

Calculate geostrophic wind from WRF using metpy

  palmmeteo_stdplugins.wrf_utils.wrf_t ( f, it)

Variable Documentation

  palmmeteo_stdplugins.wrf_utils.args = parser.parse_args()

  palmmeteo_stdplugins.wrf_utils.delta = gp_calc - gp

  palmmeteo_stdplugins.wrf_utils.f = netCDF4.Dataset(args.wrfout)

  palmmeteo_stdplugins.wrf_utils.gp = f.variables['PH'][0,:,:,:] + f.variables['PHB'][0,:,:,:]

  palmmeteo_stdplugins.wrf_utils.gp_calc = calc_gp(f, 0, phf)

  int palmmeteo_stdplugins.wrf_utils.gw_alpha = 1.

ignore wind power law, interpolate linearly

  int palmmeteo_stdplugins.wrf_utils.gw_gfs_margin_deg = 5.

Settings for geostrophic wind. smoothing area in degrees lat/lon

  int palmmeteo_stdplugins.wrf_utils.gw_wrf_margin_km = 10.

smoothing area in km gw_alpha = .143 ##< GW vertical interpolation by power law

  palmmeteo_stdplugins.wrf_utils.help

  palmmeteo_stdplugins.wrf_utils.mu = f.variables['MUB'][0,:,:] + f.variables['MU'][0,:,:]

  palmmeteo_stdplugins.wrf_utils.parser = argparse.ArgumentParser(description=__doc__)

  palmmeteo_stdplugins.wrf_utils.phf

  palmmeteo_stdplugins.wrf_utils.phh

  palmmeteo_stdplugins.wrf_utils.t = WRFCoordTransform(f)

Author

Generated automatically by Doxygen for PALM-meteo from the source code.