scene_vdem#

esis.data.synth.scene_vdem(path, wavelength_min, wavelength_max, velocity, pressure, plate_scale=None, abundance=None, width_nonthermal=<Quantity 0. km / s>, fraction_min=0.005, ions=None, axis_x='x', axis_y='y', axis_line='line', axis_velocity='velocity')[source]#

Create a synthetic solar scene from a velocity-resolved DEM.

A velocity-resolved DEM is the emission measure of each pixel of a simulation in bins of temperature and of line-of-sight velocity, in the format used to synthesize observations for the MUSE mission. The spectrum of the plasma in each bin is computed with scene_emission_measure(), as a Gaussian centered on the bin of velocity.

Parameters:
  • path (str | Path) – The path to the zarr store of the DEM. It holds vdem, the emission measure along logT, vdop, x, and y; logT, the logarithm of the temperature of each bin; vbins, the vertices of the bins of line-of-sight velocity; x and y, the positions of the pixels along each axis; and, optionally, Abundance, the name of the abundances of the simulation. Each array has its unit in the attribute units. Without one, vbins is taken to be in kilometers per second, and x and y in centimeters, the units of the format, but vdem has to have one. The names of the axes of vdem are those in its metadata, dimension_names, in a zarr v3 store, or in its attribute _ARRAY_DIMENSIONS in a zarr v2 store, as xarray writes them.

  • wavelength_min (Quantity) – The shortest wavelength of the lines to include.

  • wavelength_max (Quantity) – The longest wavelength of the lines to include.

  • velocity (AbstractScalar) – The vertices of the bins of line-of-sight velocity each line is spread over, along axis_velocity.

  • pressure (Quantity) – The constant pressure, \(n_e T\), the lines are computed at. The DEM does not record the density of the plasma.

  • plate_scale (None | Quantity | AbstractScalar | AbstractCartesian2dVectorArray) – The angle each pixel of the simulation spans, the same along both axes, or along each axis as a vector. If None (the default), the angle the pitch of the pixels along each axis spans seen from one astronomical unit away. A larger angle stretches the scene, as when each pixel of the simulation is to fall on one pixel of a detector.

  • abundance (None | str) – The abundances the lines are computed with, by their name in fiasco. If None (the default), those named by the array Abundance of the DEM.

  • width_nonthermal (Quantity | AbstractScalar) – The standard deviation of the unresolved nonthermal velocities of the plasma in each bin of the DEM, beyond its spread across the bin, see utu.spectrum.synthesize(). It is added in quadrature to the width the bin gives, see the notes.

  • fraction_min (float) – The least fraction of the radiance of all the lines in the passband, averaged over the pixels, for a line to be included, see scene_emission_measure().

  • ions (None | list[str]) – The ions to compute the lines of, see scene_emission_measure().

  • axis_x (str) – The name of the axis of the pixels in \(x\).

  • axis_y (str) – The name of the axis of the pixels in \(y\).

  • axis_line (str) – The name of the axis along the lines of the result.

  • axis_velocity (str) – The name of the axis of velocity.

Returns:

The spectral radiance of the scene, along axis_line, axis_velocity, axis_x, and axis_y. The positions are the vertices of the pixels, centered on the middle of the simulation, and increase along axis_x and axis_y, whichever way the positions of the store run.

Raises:

ValueError – If abundance is None and the DEM names no abundances, or names ones fiasco is not known to have; if the axes of vdem are not named, or are not logT, vdop, x, and y; if vdem has no unit; or if plate_scale is None and the DEM is a single pixel, whose angle cannot be found from the positions of its pixels.

Return type:

FunctionArray[DopplerPositionalVectorArray, ScalarArray]

Notes

The plasma in each bin of line-of-sight velocity is taken to be spread evenly across the bin, and is approximated by a Gaussian of the same variance: centered on the bin, with a nonthermal width of the width of the bin over \(\sqrt{12}\), added in quadrature to width_nonthermal.

The pitch of the pixels along each axis is the distance between the first and the last of them over the number of steps between them, as a magnitude: the pixels are taken to be evenly spaced. A simulation one pixel wide along an axis is taken to have the pitch of the other axis along it too.

The format records neither the sign of the velocity nor whether the emission measure is \(\int n_e n_H \, dh\) or \(\int n_e^2 \, dh\). The velocity is taken to be positive away from the observer, and the emission measure to be \(\int n_e n_H \, dh\), which is what the contribution functions of fiasco go with.