wrf.latlon_coords¶
- wrf.latlon_coords(var, as_np=False)¶
Return the latitude and longitude coordinates from a
xarray.DataArrayobject.- Parameters:
var (
xarray.DataArray) – A variable.as_np (
bool) – Set to True to return the coordinates asnumpy.ndarrayobjects instead ofxarray.DataArrayobjects.
- Returns:
The latitude and longitude coordinate variables.
- Return type: