V3FIT
|
Module for opening and reading a 'ipch.' file. The file format for these files are documented in Inteferometry/Polarimetry Diagnostic Dot File. More...
Functions/Subroutines | |
subroutine | ipch_dot_read (ipch_file, signals, signals_created, observed, sigma, weight, first_index, use_polarimetry) |
Read an interferometry/polarimetry diagnostic dot file. More... | |
subroutine | ipch_dot_parse_chord (ipch_dot_file_ref, coordinate_type, chord_type, inDegrees, signals, signals_created, observed, sigma, weight, first_index) |
Parse interferometry/polarimetry diagnostic chord. More... | |
Module for opening and reading a 'ipch.' file. The file format for these files are documented in Inteferometry/Polarimetry Diagnostic Dot File.
subroutine ipch_dot::ipch_dot_parse_chord | ( | type (signal_dot_file), intent(inout) | ipch_dot_file_ref, |
character (len=*), intent(in) | coordinate_type, | ||
character (len=1), intent(in) | chord_type, | ||
logical, intent(in) | inDegrees, | ||
type (signal_pointer), dimension(:), intent(inout) | signals, | ||
integer, intent(inout) | signals_created, | ||
real (rprec), dimension(:), intent(in) | observed, | ||
real (rprec), dimension(:), intent(in) | sigma, | ||
real (rprec), dimension(:), intent(in) | weight, | ||
integer, intent(inout) | first_index | ||
) |
Parse interferometry/polarimetry diagnostic chord.
Parses a signle chord. Chords are laid out as,
If the signal is a polarimetry chord, then also read a single real for the wavelength.
[in] | ipch_dot_file_ref | Name of the ipch. file. |
[in] | coordinate_type | Specifies the cartesian or cylindrical coordinate type. |
[in] | chord_type | Specifies if the cord is a 'i'nterferometer or 'p'olarimetry. |
[in] | inDegrees | Specifies if signal measures degrees or radians. |
[in,out] | signals | Array of pointers to the a signal |
[in,out] | signals_created | Number valid signals in the array, or index or the last signal created. |
[in] | observed | Array of observed values. |
[in] | sigma | Array of observed sigma values |
[in] | weight | Array of signal weight values |
[in,out] | first_index | Index of the first instance of an intpol signal. |
Definition at line 292 of file ipch_dot.f.
subroutine ipch_dot::ipch_dot_read | ( | character (len=path_length), intent(in) | ipch_file, |
type (signal_pointer), dimension(:), intent(inout) | signals, | ||
integer, intent(inout) | signals_created, | ||
real (rprec), dimension(:), intent(in) | observed, | ||
real (rprec), dimension(:), intent(in) | sigma, | ||
real (rprec), dimension(:), intent(in) | weight, | ||
integer, intent(inout) | first_index, | ||
logical, intent(out) | use_polarimetry | ||
) |
Read an interferometry/polarimetry diagnostic dot file.
Parses the structure of a dignostic dot file and constructs a intpol object. Each chord is parsed by ipch_dot_parse_chord.
[in] | ipch_file | Name of the ipch. file. |
[in,out] | signals | Array of pointers to the a signal |
[in,out] | signals_created | Number valid signals in the array, or index of the last signal created. |
[in] | observed | Array of observed values. |
[in] | sigma | Array of observed sigma values |
[in] | weight | Array of signal weight values |
[in,out] | first_index | Index of the first instance of an intpol signal. |
[out] | use_polarimetry | True is a polarimetry signal was constructed. |
Definition at line 132 of file ipch_dot.f.