wradlib.vpr.make_3d_grid#
- wradlib.vpr.make_3d_grid(sitecoords, proj, maxrange, maxalt, horiz_res, vert_res, minalt=0.0)[source]#
Generate Cartesian coordinates for a regular 3-D grid based on radar specs.
- Parameters:
sitecoords (
tuple
) – Radar location coordinates in lon, latproj (
osgeo.osr.SpatialReference
) – GDAL OSR Spatial Reference Object describing projectionmaxrange (
float
) – maximum radar range (same unit as SRS defined byproj
, typically meters)maxalt (
float
) – maximum altitude to which the 3-d grid should extent (meters)horiz_res (
float
) – horizontal resolution of the 3-d grid (same unit as SRS defined byproj
, typically meters)vert_res (
float
) – vertical resolution of the 3-d grid (meters)
- Keyword Arguments:
minalt (
float
) – minimum altitude to which the 3-d grid should extent (meters)- Returns:
output (
numpy.ndarray
,tuple
) – float array of shape (num grid points, 3), a tuple of 3 representing the grid shape