rushlight.emission_models package
Submodules
rushlight.emission_models.uv module
- class rushlight.emission_models.uv.UVModel(temperature_field, density_field, channel)
Bases:
objectA class to model ultraviolet (UV) intensity based on temperature and density fields.
This model utilizes temperature response functions for specific SDO/AIA channels to estimate the UV intensity emitted by plasma.
- make_intensity_fields(ds)
Adds a derived field for the UV intensity to the provided dataset.
This method sets up the model using the dataset and defines a function that calculates the UV intensity using the process_data method. This derived field can then be accessed and used within the yt analysis framework.
Parameters
- dsyt.data_objects.dataset.Dataset
The yt dataset to which the UV intensity field will be added.
- process_data(chunk)
Processes a data chunk to calculate the UV intensity.
This method interpolates the temperature response function for the specified AIA channel and then uses the density and temperature data from the chunk to compute the UV intensity.
Parameters
- chunkyt.data_objects.chunk.DataChunk
A chunk of data containing the temperature and density fields.
Returns
- numpy.ndarray
An array containing the calculated UV intensity for each cell in the chunk.
- setup_model(data_source)
Sets up the model parameters based on the provided data source.
This method extracts field names, domain information, and initializes constants needed for the UV intensity calculation.
Parameters
- data_sourceDataset or object with a ‘ds’ attribute
The data source containing the temperature and density fields and domain information. If not a Dataset object, it is assumed to have a ‘ds’ attribute that is a Dataset.
rushlight.emission_models.xrt module
- class rushlight.emission_models.xrt.XRTModel(temperature_field, density_field, channel)
Bases:
objectA class to model synthetic X-ray intensity as observed by the Hinode XRT instrument.
This model uses temperature and density fields along with the temperature response functions for specific XRT filters to estimate the observed X-ray intensity.
- make_intensity_fields(ds)
Adds a derived field for the synthetic X-ray intensity to the provided dataset.
This method sets up the model using the dataset and defines a function that calculates the X-ray intensity using the process_data method. This derived field can then be accessed and used within the yt analysis framework.
Parameters
- dsyt.data_objects.dataset.Dataset
The yt dataset to which the X-ray intensity field will be added.
- process_data(chunk)
Processes a data chunk to calculate the synthetic X-ray intensity.
This method interpolates the temperature response function for the specified XRT channel and then uses the density and temperature data from the chunk to compute the X-ray intensity.
Parameters
- chunkyt.data_objects.chunk.DataChunk
A chunk of data containing the temperature and density fields.
Returns
- numpy.ndarray
An array containing the calculated X-ray intensity for each cell in the chunk.
- setup_model(data_source)
Sets up the model parameters based on the provided data source.
This method extracts field names, domain information, and initializes constants needed for the X-ray intensity calculation.
Parameters
- data_sourceDataset or object with a ‘ds’ attribute
The data source containing the temperature and density fields and domain information. If not a Dataset object, it is assumed to have a ‘ds’ attribute that is a Dataset.