Profile#

class pydrad.parse.Profile(hydrad_root, time: Unit('s'), **kwargs)[source]#

Bases: object

Container for HYDRAD results at a given timestep. Typically accessed through pydrad.parse.Strand

Parameters:
  • hydrad_root (str) – Path to HYDRAD directory

  • time (~astropy.units.Quantity) – Timestep corresponding to the profile of interest

Attributes Summary

coordinate

Coordinate as a function of \(s\)

electron_conduction

Electron conduction as a function of \(s\)

electron_density

Electron density as a function of \(s\)

electron_pressure

Electron pressure as a function of \(s\)

electron_temperature

Electron temperature as a function of \(s\)

grid_centers

Spatial location of the grid centers

grid_edges

Spatial location of the edges of each grid cell, including the rightmost edge

grid_edges_left

Spatial location of the left edge of each grid cell

grid_edges_right

Spatial location of the right edge of each grid cell

grid_widths

Spatial width of each grid cell

ion_conduction

Ion conduction as a function of \(s\)

ion_density

Ion density as a function of \(s\)

ion_pressure

Ion pressure as a function of \(s\)

ion_temperature

Ion temperature as a function of \(s\)

level_population_hydrogen_1

Level population hydrogen 1 as a function of \(s\)

level_population_hydrogen_2

Level population hydrogen 2 as a function of \(s\)

level_population_hydrogen_3

Level population hydrogen 3 as a function of \(s\)

level_population_hydrogen_4

Level population hydrogen 4 as a function of \(s\)

level_population_hydrogen_5

Level population hydrogen 5 as a function of \(s\)

level_population_hydrogen_6

Level population hydrogen 6 as a function of \(s\)

sound_speed

Sound speed as a function of \(s\)

velocity

Velocity as a function of \(s\)

Methods Summary

column_emission_measure([bins, bounds])

Computes the column emission measure, where it is assumed that the loop is confined to a single pixel and oriented along the line of sight.

peek(**kwargs)

Quick look at profiles at a given timestep.

peek_emission_measure(**kwargs)

Quick look at the column emission measure.

spatial_average(quantity[, bounds])

Compute a spatial average of a specific quantity

Attributes Documentation

coordinate#

Coordinate as a function of \(s\)

electron_conduction#

Electron conduction as a function of \(s\)

electron_density#

Electron density as a function of \(s\)

electron_pressure#

Electron pressure as a function of \(s\)

electron_temperature#

Electron temperature as a function of \(s\)

grid_centers#

Spatial location of the grid centers

grid_edges#

Spatial location of the edges of each grid cell, including the rightmost edge

grid_edges_left#

Spatial location of the left edge of each grid cell

grid_edges_right#

Spatial location of the right edge of each grid cell

grid_widths#

Spatial width of each grid cell

ion_conduction#

Ion conduction as a function of \(s\)

ion_density#

Ion density as a function of \(s\)

ion_pressure#

Ion pressure as a function of \(s\)

ion_temperature#

Ion temperature as a function of \(s\)

level_population_hydrogen_1#

Level population hydrogen 1 as a function of \(s\)

level_population_hydrogen_2#

Level population hydrogen 2 as a function of \(s\)

level_population_hydrogen_3#

Level population hydrogen 3 as a function of \(s\)

level_population_hydrogen_4#

Level population hydrogen 4 as a function of \(s\)

level_population_hydrogen_5#

Level population hydrogen 5 as a function of \(s\)

level_population_hydrogen_6#

Level population hydrogen 6 as a function of \(s\)

sound_speed#

Sound speed as a function of \(s\)

velocity#

Velocity as a function of \(s\)

Methods Documentation

column_emission_measure(bins: Unit('K') = None, bounds: Unit('cm') = None)[source]#

Computes the column emission measure, where it is assumed that the loop is confined to a single pixel and oriented along the line of sight.

Parameters:

bins (~astropy.units.Quantity, optional) – Temperature bin edges, including rightmost edge. If None (default), the bins will be equally-spaced in \(\log{T}\), with a left edge at \(\log{T}=3\), a right edge at \(\log{T}=8\), and a bin width of \(0.05\).

Returns:

  • em (~astropy.units.Quantity) – The column emission measure in each bin

  • bins (~astropy.units.Quantity) – Temperature bin edges. Note that len(bins)=len(em)+1.

peek(**kwargs)[source]#

Quick look at profiles at a given timestep.

Takes the same keyword arguments as ~pydrad.visualize.plot_profile.

peek_emission_measure(**kwargs)[source]#

Quick look at the column emission measure.

Takes the same keyword arguments as column_emission_measure and ~pydrad.visualize.plot_histogram.

spatial_average(quantity, bounds=None)[source]#

Compute a spatial average of a specific quantity

Parameters:
  • quantity (str) – Name of the desired quantity to average

  • bounds (~astropy.units.Quantity, optional) – Array of length 2 specifying the range over which to take the spatial average.