scene_iris#

esis.data.synth.scene_iris(time_start, time_stop, wavelength_rest, radiance, fwhm, axis_time='time', axis_detector_x='detector_x', axis_detector_y='detector_y', axis_velocity='velocity', velocity_max=None, despike=True, background_removal=None, dn_min=<Quantity 8. DN>, dn_zero=<Quantity 0.01 DN>, **kwargs)[source]#

Create a synthetic solar scene using IRIS images.

IRIS spectroheliograms from a specified time range are shifted and scaled to the given wavelength range to simulate a scene observed by ESIS.

Parameters:
  • time_start (str | Time) – The start time of the IRIS observations.

  • time_stop (None | str | Time) – The ending time of the IRIS observations. If None, one second is added to time_start, which usually has the effect of selecting a single observation.

  • wavelength_rest (Quantity) – The new rest wavelength of the simulated scene. This replaces the actual rest wavelength of the IRIS observations.

  • radiance (Quantity) – The average radiance of the simulated scene. This replaces the actual radiance of the IRIS observations.

  • fwhm (Quantity) – The average full-width half maximum, in wavelength units, of the dominant spectral line in the simulated scene. The wavelength axis of the IRIS observations will be scaled to match this value.

  • axis_time (str) – The logical axis corresponding to changes in time.

  • axis_detector_x (str) – The logical axis corresponding to changes in detector \(x\)-coordinate.

  • axis_detector_y (str) – The logical axis corresponding to changes in detector \(y\)-coordinate.

  • axis_velocity (str) – The logical axis corresponding to changes in line-of-sight velocity.

  • velocity_max (None | Quantity) – The maximum doppler velocity of the simulated scene. Values outside this range are cropped.

  • despike (bool) – Whether to remove cosmic ray spikes using astroscrappy.

  • background_removal (None | Literal['trim_mean']) – The background removal algorithm to remove stray light. Currently, the options are None (the default) which is no background removal, and trim_mean which uses a trimmed mean to estimate a constant background value.

  • dn_min (Quantity) – To prevent negatives in the final scene without biasing areas with zero flux, pixels with a value less than dn_min will be set to dn_zero.

  • dn_zero (Quantity) – If a pixel truly has zero flux, this presents a problem since the uncertainty of this pixel is infinite. To prevent this, we interpret “zero flux” as a very small number called dn_zero.

  • kwargs – Additional keyword arguments passed to iris.sg.open()

Raises:

ValueError – If background_removal is not recognized.

Return type:

FunctionArray[TemporalDopplerPositionalVectorArray, ScalarArray]