wradlib.vpr.make_3d_grid

wradlib.vpr.make_3d_grid(sitecoords, proj, maxrange, maxalt, horiz_res, vert_res, minalt=0.0)

Generate Cartesian coordinates for a regular 3-D grid based on radar specs.

Parameters:
  • sitecoords (tuple) – Radar location coordinates in lon, lat
  • proj (object) – GDAL OSR Spatial Reference Object describing projection
  • maxrange (float) – maximum radar range (same unit as SRS defined by proj, 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 by proj, 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