from_xarray
- pyarts.arts_ext.GriddedFieldExtras.from_xarray(cls, da)[source]
Create gridded field from a
xarray.DataArray
object.The data and its dimensions are returned as a gridded field object. The
DataArray
name is used as name for the gridded field. If the attribute data_name is present, it is used as dataname on the gridded field.- Parameters:
da (xarray.DataArray) –
xarray.DataArray
containing the dimensions and data.- Returns:
gf – Gridded field object.
- Return type:
GriddedField1 or GriddedField2 or GriddedField3 or GriddedField4 or GriddedField5 or GriddedField6