This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| data:data_analysis_manual [2021/06/08 14:21] – More details, links... eric buchlin | data:data_analysis_manual [2026/08/24 14:48] (current) – [Find data] added event list links Peter Young | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <WRAP center round important 70%> | <WRAP center round important 70%> | ||
| - | This manual is very preliminary, | + | This manual is preliminary, |
| </ | </ | ||
| Line 11: | Line 11: | ||
| SPICE papers: | SPICE papers: | ||
| * Instrument paper: //Astron. Astrophys.//, | * Instrument paper: //Astron. Astrophys.//, | ||
| - | * First results: | + | * First results: |
| * In-flight calibration: | * In-flight calibration: | ||
| * Other papers can be found in the [[https:// | * Other papers can be found in the [[https:// | ||
| Line 22: | Line 22: | ||
| The data levels, FITS files, and headers are described in | The data levels, FITS files, and headers are described in | ||
| - | * The [[https://spice.ias.u-psud.fr/ | + | * The {{ :public:spice-uio-dpdd-0002-2.2-data_product_description_document_spicefits_all_accepted.pdf |Data Product |
| * The LLDPDD for the Low-Latency (LL) files | * The LLDPDD for the Low-Latency (LL) files | ||
| - | The full SPICE data set (to be cited in papers) | + | The full SPICE data set has a DOI: [[https:// |
| + | |||
| + | A typical Level 2 SPICE filename has the form '' | ||
| + | * **n-ras**: a raster scan with one of the narrow slits (2", 4" or 6" | ||
| + | * **w-ras**: a raster scan with the wide slit (30" | ||
| + | * **n-sit**: a sit-and-stare study with one of the narrow slits\\ | ||
| + | * **w-sit**: a sit-and-stare study with the wide slit\\ | ||
| + | * **n-exp**: a single exposure with a narrow slit that yields the entire spectrum\\ | ||
| + | * **w-exp**: a single exposure with the wide slit that yields the entire spectrum | ||
| + | |||
| + | For the " | ||
| + | |||
| + | Full spectrum rasters can be performed in the " | ||
| + | |||
| + | ==== Software ==== | ||
| + | |||
| + | Different pieces of software are mentioned below. Here is an overview: | ||
| + | * For IDL/SSW: | ||
| + | * [[https:// | ||
| + | * For Python: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| ===== Find data ===== | ===== Find data ===== | ||
| - | UiO catalogue: | + | SPICE files catalogue: |
| - | * Can be generated with IDL/ | + | * The catalogue file generated from all SPICE files (latest versions) is accessible [[http:// |
| - | - Make sure $SPICE_DATA | + | * This catalogue can be generated with IDL/ |
| - | - Run SPICE_GEN_CAT. The catalogue file will be written to the data tree root directory (you need to have write access) | + | - Make sure '' |
| - | - Run SPICE_CAT | + | - Run SPICE\_GEN\_CAT. The catalogue file will be written to the data tree root directory (you need to have write access) |
| - | * It is accessible | + | - Run SPICE\_CAT |
| - | * How to use it in [[spice_internal: | + | * The catalogue of all files in a specific data release |
| - | * A CSV export of the part of the catalogue corresponding to each release is provided with the release. | + | * How to use it in Python: the catalogue can be read as a '' |
| + | * How to use it in IDL: [[data:data_analysis_manual# | ||
| - | SOAR (and institute mirrors): | + | |
| - | * [[https:// | + | Data releases: |
| + | |||
| + | * All L1 and L2 files with their latest versions (at a given date) are collected in a data release | ||
| + | * The releases are provided under https:// | ||
| + | * The latest release tag can be obtained from the content of [[https:// | ||
| + | * Released files are also sent to the SOAR (see below) | ||
| + | * The latest release is updated with new data as they arrive | ||
| + | * Each release includes release notes, and a CSV catalog of the files in the release. | ||
| + | * The SPICE data used in a publication have to be cited properly. How to do this is explained in the release notes. | ||
| + | |||
| + | SOAR: | ||
| + | * [[https:// | ||
| + | * SOAR has a TAP interface that can be used for automated queries ([[https:// | ||
| + | * The '' | ||
| + | * Only queries by instrument / time / level / product [[https:// | ||
| Quicklooks: | Quicklooks: | ||
| * Quicklook archive (to be developed) | * Quicklook archive (to be developed) | ||
| - | * [[https:// | + | * [[https:// |
| + | * A [[https:// | ||
| + | * [[https:// | ||
| - | In the future: VSO. VSO through SSW or sunpy. Sunpy/Fido | + | VSO: |
| + | * Released SPICE files are ingested from SOAR to the VSO ([[https:// | ||
| + | * Accessible | ||
| + | * FIXME As of 2024-03-29, the SPICE files on VSO are old files from release 3.0 only | ||
| + | Event lists: | ||
| + | * [[public: | ||
| + | * [[public: | ||
| + | |||
| + | ===== Tips and Advice on Analyzing SPICE Data ===== | ||
| + | |||
| + | ==== Doppler Maps ==== | ||
| + | |||
| + | WARNING: Doppler maps created from SPICE lines show unusual patterns that we believe are due to the point spread function of the instrument. Work is underway on a deconvolution procedure that will correct for this effect. If you need advice on features you see in a Doppler map, please contact the SPICE PI at frederic.auchere -at- universite-paris-saclay.fr or another member of the SPICE team. | ||
| + | |||
| + | ==== Burn-in Effects ==== | ||
| + | |||
| + | The SPICE detectors have microchannel plates (MCPs). Over time, the sensitivity of MCPs decreases at the locations of strong emission lines. This effect is referred to as " | ||
| + | |||
| + | The lines that are being corrected (as of 2023-11) are: N IV 76.5 nm, Ne VIII 77.0 nm, Ne VIII 78.0 nm, C III 97.7 nm, Lyman-beta 102.6 nm, and O VI 103.2 nm. | ||
| + | |||
| + | ==== Flare lines ==== | ||
| + | |||
| + | The two key flare lines for SPICE are: | ||
| + | * Fe XVIII 974.86Å, formed around 7MK. It is located between the stronger H I 972.54Å (Lyman-gamma) and C III 977.02Å lines, but measurements are possible in flares, and are probably also possible in bright active region cores. | ||
| + | * Fe XX 721.56Å, formed around 10MK. It lies close to Fe VIII 721.26Å. One can estimate the strength of this line by comparing with Mg IX 706.06Å. The latter will be about a factor 10 stronger. | ||
| + | |||
| + | To determine if a flare is occurring at the time of a SPICE observation, | ||
| + | |||
| + | A list of flares observed by SPICE from the beginning of the mission to around August 2023 is available at [[https:// | ||
| ===== Access data ===== | ===== Access data ===== | ||
| + | |||
| + | Once you have found data ([[# | ||
| SPICE team internal access: | SPICE team internal access: | ||
| * [[http:// | * [[http:// | ||
| - | Once the data will be released: | + | For released |
| - | * [[https:// | + | |
| * [[https:// | * [[https:// | ||
| - | * VSO. VSO through SSW or sunpy. Sunpy/Fido | + | * [[https:// |
| + | * [[https:// | ||
| + | * [[https:// | ||
| - | ===== Read an display data ===== | + | ===== Read and display data (IDL) ===== |
| - | IDL | + | Detailed information about the IDL data analysis software is available at [[https:// |
| - | * Oslo's quicklook tools [[https:// | + | |
| - | Python | + | Some additional information is given below. |
| - | * [[https://docs.sunpy.org/projects/ | + | ==== Environment variables ==== |
| + | |||
| + | Choose a location to store your SPICE data (e.g., '/ | ||
| + | |||
| + | '' | ||
| + | '' | ||
| + | |||
| + | This line should be added to your IDL\_STARTUP file. | ||
| + | |||
| + | Data are organized under '' | ||
| + | |||
| + | |||
| + | ==== The SPICE catalog ==== | ||
| + | |||
| + | The SPICE catalog can be accessed by doing: | ||
| + | |||
| + | '' | ||
| + | |||
| + | Use the " | ||
| + | |||
| + | ==== Reference data-sets ==== | ||
| + | |||
| + | Perhaps the most useful data from the early commissioning phase (before July 2020) are the raster scans on 28-May-2020. | ||
| + | |||
| + | 16:05, 16:50 - disk center rasters with 20s exposures \\ | ||
| + | 17:50, 18:35 - north limb rasters with 20s exposures\\ | ||
| + | 19:35, 20:20 - south limb rasters with 20s exposures\\ | ||
| + | 21:20, 22:05 - west limb rasters with 20s exposures\\ | ||
| + | 23:05, 23:47 - east limb rasters with 20s exposures | ||
| + | |||
| + | The first true science observations were obtained during 18 to 22 November 2020. For example, an active region can be seen in the raster beginning 19:57 UT on 18-Nov-2020. | ||
| + | |||
| + | An M-class flare was captured with SPICE during observations on 2 April 2022 [[https:// | ||
| + | ==== Ingesting downloaded data ==== | ||
| + | |||
| + | After you have downloaded some SPICE FITS files, you can ingest them into your data directory with spice\_ingest: | ||
| + | |||
| + | '' | ||
| + | |||
| + | This routine automatically creates the sub-directory structure (year/ | ||
| + | |||
| + | ==== Finding and reading a FITS file ==== | ||
| + | |||
| + | Once a file has been ingested, then you can find it with spice\_find\_file using the observation time: | ||
| + | |||
| + | '' | ||
| + | |||
| + | A file can be read into an IDL object with: | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Extracting information from the data object ==== | ||
| + | |||
| + | The table below gives some methods for extracting information out of the data object. Where " | ||
| + | |||
| + | You can get a list of all methods by doing: | ||
| + | |||
| + | IDL> d-> | ||
| + | |||
| + | ^ Command | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | | d-> | ||
| + | |||
| + | |||
| + | ==== Quicklook tools ==== | ||
| + | |||
| + | A set of five widget-based tools are available for browsing SPICE data, and these can be accessed through spice\_xfiles: | ||
| + | |||
| + | '' | ||
| + | |||
| + | This allows you to select a FITS file from your SPICE data directory. A new widget appears from which you can then select one of the five quicklook tools: Detector, Raster Browser, Raster, Whisker and Intensity map. These tools mimic software that were available for EIS and IRIS. | ||
| + | |||
| + | For further details, please visit the [[https:// | ||
| + | |||
| + | === Raster Browser === | ||
| + | |||
| + | This is useful for browsing the 3D data cubes from SPICE rasters. In addition to being called from spice\_xfiles (see above), it can also be called directly from the command line: | ||
| + | |||
| + | '' | ||
| + | |||
| + | Use a 3-button mouse to browse the images and spectra: the middle button allows you to select a new pixel, the left button zooms in and the right button zooms out. | ||
| + | |||
| + | |||
| + | ===== Ephemeris information ===== | ||
| + | |||
| + | You can access ephemeris information from the SPICE headers. For example, the keywords: | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | The full list of keywords is given in the [[https://spice-wiki.ias.u-psud.fr/lib/exe/ | ||
| + | |||
| + | Users should make sure to correct the SPICE observing times for EAR\_TDEL in order to compare with observations from Earth-orbiting spacecraft. This is especially important for highly-dynamic structures such as flares or CMEs. | ||
| + | |||
| + | Coordinate frames and data axes are described using standard WCS keywords. In Python, they can be managed using the astropy/WCS and SunPy framework, and the corresponding metadata are loaded automatically when reading the SPICE files using '' | ||
| + | ===== Read and display data (Python) ===== | ||
| + | |||
| + | Links: | ||
| + | * Python quicklook tool: [[https:// | ||
| + | * Example with [[: | ||
| + | * Tutorial about [[https:// | ||
| Line 73: | Line 251: | ||
| Calibration reports (links) | Calibration reports (links) | ||
| - | Data calibration applied to L2 data (links) | + | Data calibration |
| - | Known instrumental artefacts: see release notes. | + | ==== Change of radiometric calibration with time ==== |
| + | The SPICE instrument sensitivity has decreased by a factor 2-3 in the first two years of the mission and has remained approximately constant since then. The SPICE team have characterized these changes and, as of 8-Nov-2023, the level-2 SPICE files incorporate the sensitivity degradation. | ||
| + | |||
| + | ==== Units and uncertainties ==== | ||
| + | |||
| + | The data cube (returned by the SSW object method '' | ||
| + | |||
| + | Uncertainties on the spectral radiances can be obtained with: | ||
| + | * SSW: the routine '' | ||
| + | * Python: the '' | ||
| + | |||
| + | The method for computing the uncertainties is described in Appendix B of [[https:// | ||
| ==== Line fitting ==== | ==== Line fitting ==== | ||
| - | TBW | + | For IDL Gaussian fitting software, please check: **[[data: |
| + | |||
| + | Fitting in Python can be done with any fitting library, including [[https:// | ||
| + | |||
| + | This is used by the [[https:// | ||
| + | |||
| + | === Line window width and spectral tilt === | ||
| + | |||
| + | The SPICE slits are tilted with respect to the detector axes, an effect that is corrected in the level-2 SPICE files. That is, the emission line is aligned to the detector y-axis in the level-2 data, but the image of the window is seen to be tilted (see images below). The maximum window width for unbinned data is 32 wavelength pixels. The spectrum tilt is about 10 pixels from bottom-to-top for the SW data and about 5 pixels for the LW data. In the corrected data, the wavelength window is tilted to the right (going from bottom to top) for the LW channel, and to the left for the SW channel. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | A consequence of the tilt is that the amount of continuum on the sides of an isolated emission line varies along the slit. For, e.g., Ne VIII 770 in the SW channel, there is relatively little continuum on the right side of the profile at the top of the slit, and relatively little on the left side at the bottom of the slit. If you use an automatic fitting routine for a SPICE raster, you may find bad fits at the top and bottom of the slit because of this effect. The routine will struggle to find a good continuum measurement. Forcing the continuum to be uniform can be a good solution. | ||
| + | A further problem is when a window contains more than one line, which makes it more difficult to estimate a continuum level. For example, N IV 765.15 has a weak blend on the short-wavelength side (N III 764.35). At the top of the slit there may not be enough continuum for a good fit, while at the bottom of the slit there may not be enough pixels to accurately fit the blending line. | ||