V3FIT
Functions/Subroutines
sxrch_dot Module Reference

Module for opening and reading a 'sxrch.' file. The file format for these files are documented in Soft X-Ray Diagnostic Dot File. More...

Functions/Subroutines

subroutine sxrch_dot_read (sxrch_file, signals, signals_created, observed, sigma, weight, first_index)
 Read a soft x-ray diagnostic dot file. More...
 
subroutine sxrch_dot_parse_chord (sxrch_dot_file_ref, coordinate_type, signals, signals_created, observed, sigma, weight, current_profile, first_index, use_geo, is_ti)
 Parse soft x-ray diagnostic chord. More...
 

Detailed Description

Module for opening and reading a 'sxrch.' file. The file format for these files are documented in Soft X-Ray Diagnostic Dot File.

Function/Subroutine Documentation

◆ sxrch_dot_parse_chord()

subroutine sxrch_dot::sxrch_dot_parse_chord ( type (signal_dot_file), intent(inout)  sxrch_dot_file_ref,
character (len=*), intent(in)  coordinate_type,
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(in)  current_profile,
integer, intent(inout)  first_index,
logical, intent(in)  use_geo,
logical, intent(in)  is_ti 
)

Parse soft x-ray diagnostic chord.

Parses a single chord. Chords are laid out as,

  • chord_name
  • Starting point as three reals.
  • Ending point as three reals.
Parameters
[in]sxrch_dot_file_refReference to the sxrch. file.
[in]coordinate_typeSpecifies the cartesian or cylindrical coordinate type.
[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]current_profileIndex of sxrem profile used.
[in,out]first_indexIndex of the first instance of an intpol signal.
[in]use_geoChord contains geomtric factor.
[in]is_tiChord used electron temperature.

Definition at line 295 of file sxrch_dot.f.

◆ sxrch_dot_read()

subroutine sxrch_dot::sxrch_dot_read ( character (len=path_length), intent(in)  sxrch_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 
)

Read a soft x-ray diagnostic dot file.

Parses the structure of a dignostic dot file and constructs a sxrem object. Each chord is parsed by sxrch_dot_parse_chord.

Parameters
[in]sxrch_fileName of the sxrch. 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.
Todo:
FIXME: Remove the _new when removing the old code.

Definition at line 139 of file sxrch_dot.f.