propagation_matrix_agendaOperator
- class pyarts3.arts.propagation_matrix_agendaOperator(*args, **kwargs)
This is the operator for free customization of the agenda:
propagation_matrix_agenda
.The python meta-code to make use of this operator class instead of the standard agenda in a workspace reads like this:
import pyarts3 as pyarts ws = pyarts.Workspace() def my_propagation_matrix_agenda_operator(frequency_grid, frequency_grid_wind_shift_jacobian, jacobian_targets, select_species, ray_path_point, atmospheric_point): ... # custom code that creates or modifies propagation_matrix, propagation_matrix_source_vector_nonlte, propagation_matrix_jacobian, propagation_matrix_source_vector_nonlte_jacobian ... return propagation_matrix, propagation_matrix_source_vector_nonlte, propagation_matrix_jacobian, propagation_matrix_source_vector_nonlte_jacobian ws.propagation_matrix_agendaSetOperator(f=my_propagation_matrix_agenda_operator)
You are free to put whatever custom code you want in the operator. The types returned must be convertible to the types of the workspace variables being returned. The input to the operator from the workspace will be the types of the workspace variables that are passed to the agenda. Failure to follow these rules will result in a runtime error.
Note
There might be constraints on the input and output passed to the operator. Check the documentation of the agenda for more details.
Warning
Accessing global variables in the operator is not thread safe. It is very likely ARTS will access your operator in parallel. You need to make sure that the operator is thread safe.
Overview
Method
Read variable from file
Method
Saves variable to file
Static Method
Create variable from file
Operator
Execute the method directly in python
Operator
Return self==value.
Operator
__format__(self, arg: str, /) -> str
Operator
Return self>=value.
Operator
Helper for pickle.
Operator
Return self>value.
Operator
Return hash(self).
Operator
__init__(self, arg: pyarts3.arts.propagation_matrix_agendaOperator) -> None
Operator
Return self<=value.
Operator
Return self<value.
Operator
Return self!=value.
Operator
__repr__(self) -> str
Operator
__str__(self) -> str
Constructors
- __init__(self, arg: collections.abc.Callable[[pyarts3.arts.AscendingGrid, pyarts3.arts.Vector3, pyarts3.arts.JacobianTargets, pyarts3.arts.SpeciesEnum, pyarts3.arts.PropagationPathPoint, pyarts3.arts.AtmPoint], tuple[pyarts3.arts.PropmatVector, pyarts3.arts.StokvecVector, pyarts3.arts.PropmatMatrix, pyarts3.arts.StokvecMatrix]], /) None
- __init__(self) None
- __init__(self, arg: pyarts3.arts.propagation_matrix_agendaOperator) None
Methods
- readxml(self, file: str) str
Read variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
- savexml(self, file: str, type: str = 'ascii', clobber: bool = True) str
Saves variable to file
- Parameters:
- On Error:
Throws RuntimeError for any failure to save
Static Methods
- fromxml(file: str) pyarts3.arts.propagation_matrix_agendaOperator
Create variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
Operators
- __call__(self, frequency_grid: pyarts3.arts.AscendingGrid, frequency_grid_wind_shift_jacobian: pyarts3.arts.Vector3, jacobian_targets: pyarts3.arts.JacobianTargets, select_species: pyarts3.arts.SpeciesEnum, ray_path_point: pyarts3.arts.PropagationPathPoint, atmospheric_point: pyarts3.arts.AtmPoint) tuple[pyarts3.arts.PropmatVector, pyarts3.arts.StokvecVector, pyarts3.arts.PropmatMatrix, pyarts3.arts.StokvecMatrix]
Execute the method directly in python
- Parameters:
frequency_grid (
AscendingGrid
) – A single frequency grid. See alsofrequency_grid
.frequency_grid_wind_shift_jacobian (
Vector3
) – The frequency grid wind shift Jacobian. See alsofrequency_grid_wind_shift_jacobian
.jacobian_targets (
JacobianTargets
) – A list of targets for the Jacobian Matrix calculations. See alsojacobian_targets
.select_species (
SpeciesEnum
) – Species selection. See alsoselect_species
.ray_path_point (
PropagationPathPoint
) – A single path point. See alsoray_path_point
.atmospheric_point (
AtmPoint
) – An atmospheric point in ARTS. See alsoatmospheric_point
.
- Returns:
propagation_matrix (
PropmatVector
) – This contains the fully polarized propagation matrix for the current path point. See alsopropagation_matrix
.propagation_matrix_source_vector_nonlte (
StokvecVector
) – The part of the source vector that is due to non-LTE. See alsopropagation_matrix_source_vector_nonlte
.propagation_matrix_jacobian (
PropmatMatrix
) – Partial derivative of thepropagation_matrix
with regards tojacobian_targets
. See alsopropagation_matrix_jacobian
.propagation_matrix_source_vector_nonlte_jacobian (
StokvecMatrix
) – Partial derivative of thepropagation_matrix_source_vector_nonlte
with regards tojacobian_targets
. See alsopropagation_matrix_source_vector_nonlte_jacobian
.
- __eq__(value, /)
Return self==value.
- __ge__(value, /)
Return self>=value.
- __getstate__()
Helper for pickle.
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __init__(self, arg: collections.abc.Callable[[pyarts3.arts.AscendingGrid, pyarts3.arts.Vector3, pyarts3.arts.JacobianTargets, pyarts3.arts.SpeciesEnum, pyarts3.arts.PropagationPathPoint, pyarts3.arts.AtmPoint], tuple[pyarts3.arts.PropmatVector, pyarts3.arts.StokvecVector, pyarts3.arts.PropmatMatrix, pyarts3.arts.StokvecMatrix]], /) None
- __init__(self) None
- __init__(self, arg: pyarts3.arts.propagation_matrix_agendaOperator) None
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.