specgrid_t

type  specgrid_t

The specgrid_t type represents a grid of spectroscopic data.

This grid may be used to interpolate the intensity (or related quantities) across a wavelength abscissa and for a set of atmosphere parameter values.

subroutine  get_rank(rank)

Get the rank (dimension) of the grid.

Parameters

rank [integer ,out] :: Returned rank.

subroutine  get_axis(i, axis)

Get an axis of the grid.

Parameters
  • i [integer ,in] :: Index of axis (between 1 and rank)

  • axis [axis_t ,out] :: Returned axis.

subroutine  get_lam_min(lam_min)

Get the minimum wavelength of the grid.

Parameters

lam_min [real(RD),out] :: Returned minimum wavelength.

subroutine  get_lam_max(lam_max)

Get the maximum wavelength of the grid.

Parameters

lam_max [real(RD),out] :: Returned maximum wavelength.

subroutine  get_cache_lam_min(cache_lam_min)

Get the minimum wavelength of the grid cache.

Parameters

lam_min [real(RD),out] :: Returned minimum wavelength.

subroutine  get_cache_lam_max(cache_lam_max)

Get the maximum wavelength of the grid cache.

Parameters

cache_lam_max [real(RD),out] :: Returned maximum wavelength.

subroutine  get_cache_count(cache_count)

Get the number of nodes currently held in the grid cache.

Parameters

cache_count [integer ,out] :: Returned number of nodes.

subroutine  get_cache_limit(cache_limit)

Get the grid cache occupancy limit.

Parameters

cache_limit [integer ,out] :: Returned occupancy limit.

subroutine  set_cache_lam_min(cache_lam_min, stat)

Set the minimum wavelength of the grid cache.

Parameters

lam_min [real(RD),in] :: Minimum wavelength.

Options

stat [integer ,out] :: Status code.

subroutine  set_cache_lam_max(cache_lam_max, stat)

Set the maximum wavelength of the grid cache.

Parameters

cache_lam_max [real(RD),in] :: Maximum wavelength.

Options

stat [integer ,out] :: Status code.

subroutine  set_cache_limit(cache_limit, stat)

Set the grid cache occupancy limit.

Parameters

cache_limit [integer ,in] :: Occupancy limit.

Options

stat [integer ,out] :: Status code.

subroutine  interp_intensity(x_vec, mu, lam, I, stat, deriv_vec)

Interpolate the spectroscopic intensity.

Parameters
  • x_vec (*) [real(RD),in] :: Atmosphere parameter values.

  • mu [real(RD),in] :: Cosine of angle of emergence relative to surface normal.

  • lam (*) [real(RD),in] :: Wavelength abscissa (Å).

  • I (*) [real(RD),out] :: Spectroscopic intensity (erg/cm^2/s/Å/sr) in bins delineated by lam; length LEN(lam)-1.

Options
  • stat [integer ,out] :: Status code.

  • deriv_vec (*) [logical ,in] :: Derivative flags.

subroutine  interp_E_moment(x_vec, k, lam, E, stat, deriv_vec)

Interpolate the spectroscopic intensity E-moment.

Parameters
  • x_vec (*) [real(RD),in] :: Atmosphere parameter values.

  • k [integer ,in] :: Degree of moment.

  • lam (*) [real(RD),in] :: Wavelength abscissa (Å).

  • E (*) [real(RD),out] :: Spectroscopic intensity E-moment (erg/cm^2/s/Å) in bins delineated by lam; length LEN(lam)-1.

Options
  • stat [integer ,out] :: Status code.

  • deriv_vec (*) [logical ,in] :: Derivative flags.

subroutine  interp_D_moment(x_vec, l, lam, D, stat, deriv_vec)

Interpolate the spectroscopic intensity D-moment.

Parameters
  • x_vec (*) [real(RD),in] :: Atmosphere parameter values.

  • l [integer ,in] :: Harmonic degree of moment.

  • lam (*) [real(RD),in] :: Wavelength abscissa (Å).

  • D (*) [real(RD),out] :: Spectroscopic intensity D-moment (erg/cm^2/s/Å) in bins delineated by lam; length LEN(lam)-1.

Options
  • stat [integer ,out] :: Status code.

  • deriv_vec (*) [logical ,in] :: Derivative flags.

subroutine  interp_flux(x_vec, lam, I, stat, deriv_vec)

Interpolate the spectroscopic flux.

Parameters
  • x_vec (*) [real(RD),in] :: Atmosphere parameter values.

  • lam (*) [real(RD),in] :: Wavelength abscissa (Å).

  • F (*) [real(RD),out] :: Spectroscopic flux (erg/cm^2/s/Å) in bins delineated by lam; length LEN(lam)-1.

Options
  • stat [integer ,out] :: Status code.

  • deriv_vec (*) [logical ,in] :: Derivative flags.