GriddedField1Named
- class pyarts3.arts.GriddedField1Named(*args, **kwargs)
A 3 dimensional gridded set of
NumericdataThe grid is a combination of 1
Vectorand 1ArrayOfStringBoth the data and the grid may be named. The grids are not sorted.
Sizes
A variable
xof this group may name 2 dimensions, read asx.data.nrows()andx.data.ncols().Tip
A variable
xof this group has grids whose sizes are the shape of its data.Overview
Method
Method
Method
Method
Method
Method
Method
Method
Method
Method
Method
Method
Method
Check the field
Method
Method
Method
Read variable from file.
Method
Method
Method
Method
Saves variable to file.
Method
Method
Method
Method
Convert object to
dict.Method
Create
xarray.DataArrayfrom the object.Method
Method
Method
Method
Static Method
Create object from
dict.Static Method
Create object from
xarray.DataArray.Static Method
Create variable from file.
See
numpy.ndarray.T.The data itself
Name of the data
See
numpy.ndarray.dtype.The grid names
The grid of the data
See
numpy.ndarray.imag.See
numpy.ndarray.nbytes.See
numpy.ndarray.ndim.See
numpy.ndarray.real.See
numpy.ndarray.shape.See
numpy.ndarray.size.A
ndarrayof the object.Static Data
pyarts3.arts.GriddedField1Named.dim2 (
int)Operator
Operator
Operator
Operator
Allows
array()to be called with the object.Operator
Operator
Operator
Overloaded function.
Operator
Operator
__format__(self, arg: str, /) -> strOperator
Operator
Operator
Operator
Return hash(self).
Operator
Operator
Operator
Operator
See
numpy.matmulOperator
Operator
Operator
__init__(self, arg: pyarts3.arts.GriddedField1Named) -> NoneOperator
Operator
Operator
Operator
See
iter()Operator
Operator
Operator
Operator
Operator
Operator
Operator
Operator
Overloaded function.
Operator
Operator
Operator
See
numpy.addOperator
Operator
See
numpy.divmodOperator
__repr__(self) -> strOperator
Operator
See
numpy.matmulOperator
See
numpy.remainderOperator
See
numpy.multiplyOperator
See
numpy.bitwise_orOperator
See
numpy.powerOperator
See
numpy.subtractOperator
Operator
Operator
__str__(self) -> strOperator
Constructors
- __init__(self) None
- __init__(self, name: str = '', data: pyarts3.arts.Matrix, grid_names: collections.abc.Sequence[str] = ['', ''], grids: tuple[pyarts3.arts.Vector, pyarts3.arts.ArrayOfString]) None
- __init__(self, arg: dict, /) None
- __init__(self) None
- __init__(self, arg: GriddedField1Named) None
Methods
- cumprod(self, axis: object | None = None, dtype: object | None = None, out: object | None = None) object
- cumsum(self, axis: object | None = None, dtype: object | None = None, out: object | None = None) object
- mean(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object
- prod(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object
- readxml(self, file: str) str
Read variable from file.
- Parameters:
file (str) – A file that can be read.
- Raises:
RuntimeError – For any failure to read.
- Returns:
file – The file path found (may differ from input due to environment variables).
- Return type:
- savexml(self, file: str, type: str = 'ascii', clobber: bool = True) str
Saves variable to file.
- Parameters:
file (str) – The path to which the file is written. Note that several of the options might modify the name or write more files.
type (str, optional) – Type of file to save. See
FileTypefor options. Defaults is “ascii”.clobber (bool, optional) – Overwrite existing files or add new file with modified name? Defaults is True.
- Raises:
RuntimeError – For any failure to write.
- Returns:
file – The file saved. May differ from input.
- Return type:
- std(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, ddof: object = 0, keepdims: object = False) object
- sum(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, keepdims: object = False) object
- to_xarray(self) object
Create
xarray.DataArrayfrom the object.
- trace(self, offset: object = 0, axis1: object = 0, axis2: object = 1, dtype: object | None = None, out: object | None = None) object
- var(self, axis: object | None = None, dtype: object | None = None, out: object | None = None, ddof: object = 0, keepdims: object = False) object
Static Methods
- from_dict(arg: dict, /) GriddedField1Named
Create object from
dict.
- from_xarray(arg: object, /) object
Create object from
xarray.DataArray.
- fromxml(file: str) GriddedField1Named
Create variable from file.
- Parameters:
file (str) – A file that can be read
- Raises:
RuntimeError – For any failure to read.
Attributes
- T: object
See
numpy.ndarray.T.
- dtype: object
See
numpy.ndarray.dtype.
- imag: object
See
numpy.ndarray.imag.
- nbytes: object
See
numpy.ndarray.nbytes.
- ndim: object
See
numpy.ndarray.ndim.
- real: object
See
numpy.ndarray.real.
- shape: object
See
numpy.ndarray.shape.
- size: object
See
numpy.ndarray.size.
Operators
- __array__(self, dtype: object | None = None, copy: object | None = None) object
Allows
array()to be called with the object.
- __eq__(self, value: GriddedField1Named) bool
- __eq__(self, value: object) object
Overloaded function.
__eq__(self, value: pyarts3.arts.GriddedField1Named) -> bool
Allows self == value
__eq__(self, value: object) -> object
- __hash__()
Return hash(self).
- __imatmul__(self, value: object) object
See
numpy.matmul
- __init__(self) None
- __init__(self, name: str = '', data: pyarts3.arts.Matrix, grid_names: collections.abc.Sequence[str] = ['', ''], grids: tuple[pyarts3.arts.Vector, pyarts3.arts.ArrayOfString]) None
- __init__(self, arg: dict, /) None
- __init__(self) None
- __init__(self, arg: GriddedField1Named) None
- __ne__(self, value: GriddedField1Named) bool
- __ne__(self, value: object) object
Overloaded function.
__ne__(self, value: pyarts3.arts.GriddedField1Named) -> bool
Allows self != value
__ne__(self, value: object) -> object
- __rdivmod__(self, value: object) object
See
numpy.divmod
- __rmatmul__(self, value: object) object
See
numpy.matmul
- __rmod__(self, value: object) object
See
numpy.remainder
- __rmul__(self, value: object) object
See
numpy.multiply
- __ror__(self, value: object) object
See
numpy.bitwise_or
- __rsub__(self, value: object) object
See
numpy.subtract