wrf.GeoBounds

class wrf.GeoBounds(bottom_left=None, top_right=None, lats=None, lons=None)

A class that stores the geographic boundaries.

Currently, only corner points are used, specified as the bottom left and top right corners. Users can specify the corner points directly, or specify two-dimensional latitude and longitude arrays and the corner points will be extracted from them.

bottom_left

The bottom left coordinate.

Type:

wrf.CoordPair

top_right

The top right coordinate.

Type:

wrf.CoordPair

__init__(bottom_left=None, top_right=None, lats=None, lons=None)

Initialize a wrf.GeoBounds object.

Parameters:
  • bottom_left (wrf.CoordPair, optional) – The lower left corner. Must also specify top_right if used. Default is None.

  • top_right (wrf.CoordPair, optional) – The upper right corner. Must also specify bottom_left if used. Default is None.

  • lats (numpy.ndarray, optional) – An array of at least two dimensions containing all of the latitude values. Must also specify lons if used. Default is None.

  • lons (numpy.ndarray, optional) – An array of at least two dimensions containing all of the longitude values. Must also specify lats if used. Default is None.

Methods

__init__([bottom_left, top_right, lats, lons])

Initialize a wrf.GeoBounds object.