polartoolkit.make_data_dict

Contents

polartoolkit.make_data_dict#

make_data_dict(names, grids, colors, axes=None)[source]#

Create nested dictionary of data and attributes

Parameters:
  • names (list[str]) โ€“ data names

  • grids (list[str or xarray.DataArray]) โ€“ files or xarray.DataArrayโ€™s

  • colors (list[str]) โ€“ colors to plot data

  • axes (list[int]) โ€“ y axes to use for each data. By default all data are on axis 0. Only 0 and 1 are used, if you supply values > 1, they will use the same axis as 1.

Returns:

Nested dictionaries of grids and attributes

Return type:

dict[dict]