pyarts.griddedfield.GriddedField5

class pyarts.griddedfield.GriddedField5(*args, **kwargs)[source]

Implements a GriddedField5.

__init__(*args, **kwargs)[source]

Create a GriddedField object.

Parameters
  • dimension (int) – Dimension of the GriddedField.

  • grids (list, tuple, np.ndarray) – grids.

  • data (np.ndarray) – data values.

  • gridnames (List[str]) – clear names for all grids.

  • dataname (str) – name of the data array.

  • name (str) – name of the GriddedField.

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.