![]() |
Stellarator-Tools
|
Base class representing a polarimetry signal. More...
Public Member Functions | |
procedure | get_modeled_signal_last (this, a_model, sigma, last_value) |
Calculates the polarimetry signal. | |
procedure | get_gp_i (this, a_model, i, flags) |
Gets the guassian process kernel for an polarimetry signal and a position. | |
procedure | get_gp_s (this, a_model, signal, flags) |
Gets the guassian process kernel for an polarimetry signal and a signal. | |
procedure | get_gp_x (this, a_model, x_cart, flags) |
Gets the guassian process kernel for a polarimetry signal and a cartesian position. | |
FINAL | intpol_pol_destruct (this) |
Deconstruct a intpol_class object. | |
class(intpol_pol_class) function, pointer | intpol_pol_construct (wavelength, in_degrees, chord_paths) |
Construct a intpol_class object representing a polarimetry diagnostic. | |
![]() | |
procedure | get_modeled_signal_last (this, a_model, sigma, last_value) |
Calculates the interferometry signal. | |
procedure | get_type (this) |
Gets a discription of the intpol type. | |
procedure | get_gp_i (this, a_model, i, flags) |
Gets the guassian process kernel for an inteferometry signal and a position. | |
procedure | get_gp_s (this, a_model, signal, flags) |
Gets the guassian process kernel for an inteferometry signal and a signal. | |
procedure | get_gp_x (this, a_model, x_cart, flags) |
Gets the guassian process kernel for a inteferometry signal and a cartesian position. | |
FINAL | intpol_destruct (this) |
Deconstruct a intpol_class object. | |
class(intpol_class) function, pointer | intpol_construct (chord_paths) |
Interface to get the guassian process kernel values. | |
![]() | |
procedure | get_modeled_signal_cache (this, a_model, sigma, use_cache, last_value) |
Calculates the modeled signal. | |
procedure | get_modeled_signal_last (this, a_model, sigma, last_value) |
Calculates the modeled signal. | |
GENERIC | get_modeled_signal get_modeled_signal_cache, get_modeled_signal_last |
procedure | get_observed_signal (this, a_model) |
Calculates the observed signal. | |
procedure | get_g2 (this, a_model, use_cache, last_value) |
Calculates the g^2 contribution of a signal. | |
procedure | get_e (this, a_model, use_cache, last_value) |
Calculates the e contribution of a signal. | |
procedure | get_sigma2 (this) |
Calculates the total sigma^2 of a signal. | |
procedure | get_type (this) |
Gets a discription of the signal type. | |
procedure | get_header (this, header) |
Gets a discription of the model and model sigma array indices. | |
procedure | get_gp_i (this, a_model, i, flags) |
Gets the guassian process kernel for a signal and a position. | |
procedure | get_gp_s (this, a_model, signal, flags) |
Gets the guassian process kernel for a signal and a signal. | |
procedure | get_gp_x (this, a_model, x_cart, flags) |
Gets the guassian process kernel for a signal and cartesian position. | |
GENERIC | get_gp get_gp_i, get_gp_s, get_gp_x |
procedure | scale_and_offset (this, a_model, value) |
Apply scale and offset to the value. | |
procedure | sync_child (this, index, recon_comm) |
Syncronize a child signal state to the parent. | |
procedure | write_header (this, iou) |
Write out the signal header information to an output file. | |
procedure | write (this, iou, index, a_model) |
Write out the signal information to an output file. | |
procedure | write_auxiliary (this, iou, index, a_model) |
Write out any auxiliary signal information to an output file. | |
procedure | write_step_data (this, a_model, result_ncid, current_step, index, signal_model_value_id, signal_sigma_value_id) |
Write out the signal data for a step to the result netcdf file. | |
FINAL | signal_destruct (this) |
Deconstruct a signal_class object. | |
Public Attributes | |
real(rprec) | wavelength |
Wavelength if the beam. | |
logical | in_degrees |
Controls if the results is computed in degrees or radians. | |
![]() | |
type(vertex), pointer | chord_path => null() |
The complete path of the chord. | |
![]() | |
character(len=data_short_name_length) | s_name |
Short name of the signal. | |
character(len=data_name_length) | l_name |
Long name of the signal. | |
character(len=data_short_name_length) | units |
Physical units the signal measures. | |
real(rprec) | observed |
Eperimentally measured signal value. | |
real(rprec) | observed_sigma |
Eperimentally measured signal uncertainty. | |
real(rprec) | weight |
Weighting parameter of the signal. | |
real(rprec), dimension(4) | modeled |
Cached value of the modeled signal. | |
real(rprec), dimension(4) | modeled_sigma |
Cached value of the modeled sigma. | |
integer | scale_index |
Scale factor index. | |
integer | offset_index |
Offset factor index. | |
Base class representing a polarimetry signal.
Interface for polarimetry constructor.
procedure intpol::intpol_pol_class::get_gp_i | ( | class (intpol_pol_class), intent(in) | this, |
class (model_class), pointer | a_model, | ||
integer, intent(in) | i, | ||
integer, intent(in) | flags | ||
) |
Gets the guassian process kernel for an polarimetry signal and a position.
Calculates the guassian process kernel between the signal and the position. Density kernels are provided by model::model_get_gp_ne.
[in] | this | A intpol_pol_class instance. |
[in] | a_model | A model instance. |
[in] | i | Index of the position for the kernel. |
[in] | flags | State flags to send to the kernel. |
procedure intpol::intpol_pol_class::get_gp_s | ( | class (intpol_pol_class), intent(in) | this, |
class (model_class), pointer | a_model, | ||
class (signal_class), pointer | signal, | ||
integer, intent(in) | flags | ||
) |
Gets the guassian process kernel for an polarimetry signal and a signal.
Calculates the guassian process kernel between the signal and a signal. Calls back to the signal module to call the other signal. This is the first signal.
[in] | this | A intpol_class instance. |
[in] | a_model | A model instance. |
[in] | signal | A signal_class instance. |
[in] | flags | State flags to send to the kernel. |
procedure intpol::intpol_pol_class::get_gp_x | ( | class (intpol_pol_class), intent(in) | this, |
class (model_class), pointer | a_model, | ||
real (rprec), dimension(3), intent(in) | x_cart, | ||
integer, intent(in) | flags | ||
) |
Gets the guassian process kernel for a polarimetry signal and a cartesian position.
Calculates the guassian process kernel between the signal and the position. This is the second signal.
[in] | this | A intpol_pol_class instance. |
[in] | a_model | A model instance. |
[in] | x_cart | The cartesian position of to get the kernel at. |
[in] | flags | State flags to send to the kernel. |
procedure intpol::intpol_pol_class::get_modeled_signal_last | ( | class (intpol_pol_class), intent(inout) | this, |
class (model_class), pointer | a_model, | ||
real (rprec), dimension(4), intent(out) | sigma, | ||
real (rprec), dimension(4), intent(in) | last_value | ||
) |
Calculates the polarimetry signal.
Calculates the modeled signal by integrating along the chord path. The integration function is provided by @ ref pol_function.
[in,out] | this | A intpol_pol_class instance. |
[in] | a_model | A model instance. |
[out] | sigma | The modeled sigma. |
[in] | last_value | Last good value in case the signal did not change. |
class (intpol_pol_class) function, pointer intpol::intpol_pol_class::intpol_pol_construct | ( | real (rprec), intent(in) | wavelength, |
logical, intent(in) | in_degrees, | ||
real (rprec), dimension(:,:) | chord_paths | ||
) |
Construct a intpol_class object representing a polarimetry diagnostic.
Allocates memory and initializes a intpol_class object.
[in] | wavelength | Wavelength of the polarimetry beam. |
[in] | in_degrees | Specifies if the sigals is degrees or radians. True specifies degree while false specifies radians. |
[in] | chord_paths | The nodes of a multi point segment integration path. |
|
final |
Deconstruct a intpol_class object.
Deallocates memory and uninitializes a intpol_class object.
[in,out] | this | A intpol_class instance. |