pydda.io.read_grid#

pydda.io.read_grid(file_name, level_name='parent', **kwargs)[source]#

Opens a Cf-compliant netCDF grid object produced by a utility like PyART or RadxGrid. This will add all variables PyDDA needs from these grids to create a PyDDA Grid (based on the xarray xr.Dataset()). This will open the grid as a parent node of a DataTree structure.

Parameters:
  • file_name (str or list) – The name of the file to open. If a list of files is provided, the grids are opened as a parent node with all grid datasets concatenated together.

  • level_name (str) – The name of the nest level to put in the datatree. The specified grids will

Returns:

root (DataTree) – The dataset with the list of grids as the parent node.