V3FIT
Functions/Subroutines
ipch_dot Module Reference

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...
 

Detailed Description

Module for opening and reading a 'ipch.' file. The file format for these files are documented in Inteferometry/Polarimetry Diagnostic Dot File.

Function/Subroutine Documentation

◆ ipch_dot_parse_chord()

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,

  • chord_name
  • Starting point as three reals.
  • Ending point as three reals.

If the signal is a polarimetry chord, then also read a single real for the wavelength.

Parameters
[in]ipch_dot_file_refName of the ipch. file.
[in]coordinate_typeSpecifies the cartesian or cylindrical coordinate type.
[in]chord_typeSpecifies if the cord is a 'i'nterferometer or 'p'olarimetry.
[in]inDegreesSpecifies if signal measures degrees or radians.
[in,out]signalsArray of pointers to the a signal
[in,out]signals_createdNumber valid signals in the array, or index or the last signal created.
[in]observedArray of observed values.
[in]sigmaArray of observed sigma values
[in]weightArray of signal weight values
[in,out]first_indexIndex of the first instance of an intpol signal.

Definition at line 292 of file ipch_dot.f.

◆ ipch_dot_read()

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.

Parameters
[in]ipch_fileName of the ipch. file.
[in,out]signalsArray of pointers to the a signal
[in,out]signals_createdNumber valid signals in the array, or index of the last signal created.
[in]observedArray of observed values.
[in]sigmaArray of observed sigma values
[in]weightArray of signal weight values
[in,out]first_indexIndex of the first instance of an intpol signal.
[out]use_polarimetryTrue is a polarimetry signal was constructed.

Definition at line 132 of file ipch_dot.f.