pyarts.griddedfield.GriddedField4¶
-
class
pyarts.griddedfield.
GriddedField4
(*args, **kwargs)[source]¶ Implements a GriddedField4.
Methods
__init__
(*args, **kwargs)Create a GriddedField object.
check_atm_fields_compact
([check_gridnames])Checks the consistency of grids and data.
check_dimension
()Checks the consistency of grids and data.
copy
()Return a deepcopy of the GriddedField.
extract_slice
([s, axis])Return a new GriddedField containing a slice of the current one.
from_nc
(inputfile, variable[, fill_value])Create GriddedField from variable in netCDF files.
from_xarray
(da)from_xml
(xmlelement)Load a GriddedField from an ARTS XML file.
get
(key[, default, keep_dims])Return data from field with given fieldname.
refine_grid
(new_grid[, axis, fun])Interpolate GriddedField axis to a new grid.
scale
(key, factor[, dtype])Scale data stored in field with given fieldname.
set
(key, data)Assign data to field with given fieldname.
to_atmlab_dict
()Returns a copy of the GriddedField as a dictionary.
to_dict
()Convert GriddedField to dictionary.
to_xarray
()write_xml
(xmlwriter[, attr])Save a GriddedField to an ARTS XML file.
Attributes
data
The data matrix stored in the GriddedField.
dataname
Name of the data array.
dimension
Dimension of the GriddedField.
gridnames
A list or tuple that includes a name for every grid.
grids
List of grids defining the GriddedField.
name
Name of the GriddedField.
shape
Shape of the data array.