pyart.core.Grid.add_field

Grid.add_field(field_name, field_dict, replace_existing=False)[source]

Add a field to the object.

Parameters
  • field_name (str) – Name of the field to the fields dictionary.

  • field_dict (dict) – Dictionary containing field data and metadata.

  • replace_existing (bool, optional) – True to replace the existing field with key field_name if it exists, overwriting the existing data. If False, a ValueError is raised if field_name already exists.