Getting Started

XRTpy is a Python package being developed for the analysis of observations made by the X-Ray Telescope (XRT) on the board Hinode spacecraft. This page is intended for new users of xrtpy. For more background information about XRT please refer to the SolarSoft XRT Analysis Guide.

XRTpy Objects:

XRTpy currently offers Channel, Effective Area, and Temperature Response classes. We have also introduced new functionality, including the ablility to derive temperatures and emission measures for a pair of images, sharpen images using the point spread function, and a function to correct synoptic images for the light leak (visible stray light) that XRT has developed. Visit our Example page for detail notebook example guides on how to use the XRTpy classes and functions.

Channel

Channel is an instrument configuration class that contains the properties of particular XRT filters. It provides a detailed information on the filter channel, including the Charge-Coupled Device (CCD), Entrance Filter, Focus-Filter(s), Geometry, and Mirror(s).

Effective Area

XRTpy calculates the effective areas for a set of XRT filter channels paired with thicknesses of the CCD contamination layer. For more information about the instrumental spectral responses, refer to the SolarSoft XRT Analysis Guide.

Temperature Response

XRTpy calculates the temperature response for each XRT filter channel, assuming a spectral emission model, refer to Narukage et al. [2011] and Narukage et al. [2014]. The XRT default emission model is CHIANTI atomic database version 10.0 with coronal abundances Feldman [2014]. This structure contains data and information about a plasma emission model, as a function of wavelength and temperature.

Deriving Temperature and Emission Measure for a Pair of Images

XRTpy provides a routine, temperature_from_filter_ratio, that employs the objects listed above to derive the temperature and emission measure in for a given pair of images using the filter ratio method. This uses the same methods as in the SolarSoft IDL routine of the same name. Familiarize yourself with the utilization of this function through the notebook example provided on our Example page.

Enhancing Images Sharpness with Point Spread Function - Deconvolution

Deconvolution is a powerful technique used to enhance image sharpness by mitigating the blurring effect caused by the telescope’s point spread function (PSF). It is particularly useful for removing the blurring around sharp objects or features in the XRT image. To learn how to use deconvolve, refer to the notebook examples provided on our Example page.

Subtracting Light Leak from XRT Synoptic Composite Images

We have developed a specialized function designed to subtract light leak, remove_lightleak, which refers to visible stray light, from XRT synoptic composite images. By applying this function, you can effectively remove the unwanted artifacts caused by light leak, resulting in cleaner and more accurate images for further analysis and interpretation. Explore our Example page for a notebook example that demonstrate the usage of this function.

Abundance Model

The standard XRT temperature response routines are calculated assuming CHIANTI coronal abundances, Feldman [2014]. Additionally, XRTpy offers the ability to choose two other sets of CHIANTI abundances i.e. Hybrid and Photospheric. The Hybrid abundances are base on Fludra and Schmelz [1999] and Photospheric abundances are base on Grevesse et al. [2007]. The CHIANTI files contain data and information about a plasma emission model, as a function of wavelength and temperature. Visit XRT temperature response with other choice of abundances for future detailed information.

Note

XRTpy has future plans to accept other plasma emission spectra models.

XRTpy defaults to using CHIANTI “coronal” abundance. You can specify the other abundances by defining the abundance type name, such as “hybrid” or “photospheric” in the abundance_model parameter. For example:

xrtpy.response.TemperatureResponseFundamental(
    'Al-poly',
    '2022/07/04T23:43:12',
    abundance_model = 'Hybrid'
    )

The abundance_model parameter is used in the same format in temperature_from_filter_ratio.

Data Products

The XRT website provides readily available XRT data products, including both Level 1 and Level 2 data. The Level 1 Data section contains an extensive archive of all Level 1 XRT data that has been calibrated using the xrt_prep routine, with units expressed in instrumental Data Numbers. Additionally, for users interested in synoptic images, Level 2 Synoptics data is available, which consists of composite images from the twice-daily synoptic program. These images have been processed and are available in the archive. For more detailed information about our XRT data products, please visit the XRT data products site, where you can find comprehensive data resources and references.

X-Ray Filter Channel

The XRT controls filter imaging using two sequentially positioned filter wheels. Refer to Section 3 in the X-Ray Telescope Instrument Guide in the SolarSoft XRT Analysis Guide for more information about the XRT filters. The existing filters are structured as so:

  1. Filter Configuration
    1. Filter position
      1. Filter Wheel 1:
        • Open

        • Aluminum Polyimide (Al-poly)

        • Carbon Polyimide (C-poly)

        • Beryllium Thin (Be-thin)

        • Beryllium Medium (Be-med)

        • Aluminum Medium (Al-med)

      2. Filter Wheel 2:
        • Open

        • Aluminum Mesh (Al-mesh)

        • Titanium Polyimide (Ti-poly)

        • G-band

        • Aluminum Thick (Al-thick)

        • Beryllium Thick (Be-thick)

    2. Open

      Each filter wheel has an empty position, named ‘Open’. The open position is in place when a filter on the other filter wheel is being used.

    3. G-band

      The G-Band filter allows visible light into the telescope and onto the CCD. XRTpy does not calculate the effective area or the temperature response for the G-Band filter.

Note

Filters are expressed by their abbreviation when used in XRTpy. For example, if we want to explore the filter channel that selects the titanium-on-polyimide filter, then the string would be 'Ti-poly'. The process is the same for all XRT filter channels.