pyart.xradar.Xgrid#

class pyart.xradar.Xgrid(grid_ds)[source]#

Wraps a Cf-compliant xarray Dataset into a Py-ART Grid-like object.

Parameters:

grid_ds (xarray.Dataset) – The xarray Dataset to convert to a Py-ART grid. Times must not be decoded (decode_times=False) when the Dataset is opened.

Wraps a Cf-compliant xarray Dataset into a PyART Grid Object. Note that the times must not be decoded by xr.open_dataset when loading the file.

Parameters:

grid_ds (xarray Dataset) – The xarray Dataset to convert to a Py-ART grid.

add_field(field_name, dic[, replace_existing])

Add a field to the object.

get_point_longitude_latitude([level, edges])

Return arrays of longitude and latitude for a given grid height level.

get_projparams()

init_point_altitude()

Initialize the point_altitude attribute.

init_point_longitude_latitude()

Initialize or reset the point_{longitude, latitudes} attributes.

init_point_x_y_z()

Initialize or reset the point_{x, y, z} attributes.

to_xarray()

Convert the Grid object to an xarray format.

write(filename[, format, ...])

Write the Xgrid object to a NetCDF file.

metadata

nx

ny

nz

projection_proj

Return a pyproj.Proj instance as specified by the projection attribute.