EMToolKit.instruments package
EMToolKit.instruments.aia module
- EMToolKit.instruments.aia.aia_temperature_response(map_in, *args, **kwargs)[source]
Computes the temperature response function for a given AIA map and a specified temperature array.
- Parameters:
map_in (sunpy.map.Map) – The input AIA map.
temperature_array (array-like) – An array of temperatures for calculating the response.
- Returns:
A tuple containing the logarithmic temperature values and the corresponding temperature response function.
- Return type:
tuple
- EMToolKit.instruments.aia.aia_wrapper(maps_in, temperature_array=None)[source]
Processes a set of AIA SunPy maps and returns the necessary arguments for use in an EMToolKit DataSequence. This includes selecting maps appropriate for DEMs (excluding 304 Å), computing corresponding errors, and retrieving temperature response functions and logarithmic temperature arrays.
- Parameters:
maps_in (list) – A list of input AIA SunPy maps.
temperature_array (array-like, optional) – An array of temperatures for calculating
None. (the temperature response functions. Defaults to)
- Returns:
A tuple containing the processed maps, their uncertainties, logarithmic temperature values, and temperature response functions.
- Return type:
tuple
- EMToolKit.instruments.aia.download_sdo_data(data_path, date, redownload=False, dt=11.5)[source]
Downloads SDO data for a specified date, or retrieves it from disk if already available.
- Parameters:
data_path (str) – The directory where data should be stored.
date (str) – The date for which to download SDO data.
redownload (bool, optional) – If True, forces a re-download of the data even if it exists on disk. Defaults to False.
- Returns:
A tuple containing the paths to the downloaded data files and the directory where they are stored.
- Return type:
tuple
- EMToolKit.instruments.aia.estimate_aia_error(map_in)[source]
Estimates the error in AIA data based on the detector and wavelength channel.
- Parameters:
map_in (sunpy.map.Map) – The input AIA map.
- Returns:
An array representing the estimated error for each pixel in the map.
- Return type:
numpy.ndarray
- EMToolKit.instruments.aia.load_from_paths(paths, xl=None, yl=None, dx=None, dy=None, refindex=0)[source]
Loads AIA data from a set of file paths and returns the necessary arguments for use in an EMToolKit DataSequence. This includes a list of SunPy maps, corresponding errors, the logarithmic temperature axes for the temperature response functions, and the temperature response functions themselves.
- Parameters:
paths (list) – List of file paths to AIA data.
xl (float, optional) – X-coordinate of the lower left corner for cropping. Defaults to None.
yl (float, optional) – Y-coordinate of the lower left corner for cropping. Defaults to None.
dx (float, optional) – Width of the region to crop. Defaults to None.
dy (float, optional) – Height of the region to crop. Defaults to None.
refindex (int, optional) – Index of the reference map in the paths list. Defaults to 0.
- Returns:
A list of SunPy maps after optional cropping.
- Return type:
list
EMToolKit.instruments.xrt module
- EMToolKit.instruments.xrt.interp1d_logt(logt, tresp, temperature_array)[source]
Interpolates the temperature response values for a given set of logarithmic temperature values. This function maps the temperature response to the specified temperature array using linear interpolation.
- Parameters:
logt (array-like) – An array of logarithmic temperature values.
tresp (array-like) – An array of temperature response values corresponding to the logarithmic temperatures.
temperature_array (array-like) – The array of temperatures for which the response is to be interpolated.
- Returns:
A tuple containing the input temperature array and the interpolated temperature response values.
- Return type:
tuple
- EMToolKit.instruments.xrt.xrt_temperature_response(map_in, temperature_array, *, do_plot=False)[source]
This Python function calculates the temperature response for a given filter channel using xrtpy library and plots the response curve.
- Parameters:
map_in – The sunpy map to get the channel information from
temperature_array – The temperature_array parameter in the xrt_temperature_response function is
temperature (an array that contains the temperature values for which you want to calculate the)
obtained (response. This array will be used as input to interpolate the temperature response values)
object. (from the Temperature_Response_Fundamental)
- Returns:
the logarithm of CHIANTI temperature values tresp: the corresponding temperature response values
- Return type:
logt
- EMToolKit.instruments.xrt.xrt_wrapper(maps_in, temperature_array)[source]
Processes a list of XRT maps and computes their temperature responses. This function returns the modified maps along with their associated uncertainties and temperature response data.
- Parameters:
maps_in (list) – A list of input maps to be processed.
temperature_array (array-like) – An array of temperatures used for calculating the temperature response.
- Returns:
A tuple containing the processed maps, their uncertainties, logarithmic temperature values, and temperature responses.
- Return type:
tuple
- Raises:
ValueError – If the input maps are not compatible with the temperature array.