This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| data:data_analysis_manual [2024/03/29 14:21] eric buchlin [Find data] format warning | data:data_analysis_manual [2025/09/19 19:50] (current) eric buchlin [Read and display data (Python)] quicklook | ||
|---|---|---|---|
| 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-wiki.ias.u-psud.fr/lib/exe/fetch.php/public:spice-uio-dpdd-0002-1.8-data_product_description_document_spicefits_.pdf|Data Products Description Document]] (DPDD) | + | * The [[https://spice-wiki.ias.u-psud.fr/lib/exe/fetch.php/public:spice-uio-dpdd-0002-2.1-data_product_description_document_spicefits_.pdf|Data Products Description Document]] (DPDD) | 
| * The LLDPDD for the Low-Latency (LL) files | * The LLDPDD for the Low-Latency (LL) files | ||
| Line 191: | Line 191: | ||
| | d->get\_number\_windows()  | No. of spectral windows  | | | d->get\_number\_windows()  | No. of spectral windows  | | ||
| | d->get\_window\_data(i,/load)  | Extract a data window  | | | d->get\_window\_data(i,/load)  | Extract a data window  | | ||
| - | | d->get\_lambda\_vector(i)  | Get wavelength vector for the window  | | + | | d->get\_lambda\_vector(i)  | Get wavelength vector for the window  | | 
| + | | d->get\_time\_vector(i)  | Get the mid-time for each exposure  | | ||
| | d->get\_header(i)  | Extract a data window header  | | | d->get\_header(i)  | Extract a data window header  | | ||
| | d->get\_window\_id(i)  | Get the data window ID | | | d->get\_window\_id(i)  | Get the data window ID | | ||
| Line 235: | Line 236: | ||
| Links: | Links: | ||
| + | * Python quicklook tool: [[https://pypi.org/project/spiceitup/|SPICE-IT-UP]]. | ||
| * Example with [[:data:data_analysis_manual:sunraster|with sunraster]]. | * Example with [[:data:data_analysis_manual:sunraster|with sunraster]]. | ||
| * Tutorial about [[https://git.ias.u-psud.fr/spice/data-analysis-club/-/blob/main/20230516-coordinates/coordinates.ipynb|plotting and coordinates transforms]] | * Tutorial about [[https://git.ias.u-psud.fr/spice/data-analysis-club/-/blob/main/20230516-coordinates/coordinates.ipynb|plotting and coordinates transforms]] | ||
| Line 262: | Line 264: | ||
| ==== Line fitting ==== | ==== Line fitting ==== | ||
| - | === Using EIS fitting software for SPICE === | + | For IDL Gaussian fitting software, please check: **[[data:line_fitting_idl|IDL software for emission line fitting]]**. | 
| - | The routine spice\_getwindata returns a "windata" structure in a form compatible with the eis\_auto\_fit suite of routines for Hinode/EIS. Further information on these routines is given in [[https://doi.org/10.5281/zenodo.6339584 | + | Fitting in Python can be done with any fitting library, including [[https://docs.astropy.org/en/stable/modeling/|astropy.modelling]]. From astropy 7.0, there is a user-friendly way of doing the fitting in parallel ([[https://github.com/aperiosoftware/parallel-modeling-examples/blob/main/spice/Final_Tutorial.ipynb|tutorial]] by Stuart Mumford). | 
| - | |EIS Software Note 15]]. The mask spectra fitting routines (Case 2 in the document) do not currently work with SPICE, however. | + | |
| - | The EIS software enable a number of operations to be performed on windata structures, as described in [[https://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/21_WINDATA/eis_swnote_21.pdf|EIS Software Note 21]]. For example, eis\_bin\_windata allows spatial binning of the rasters. | ||
| - | If you have problems running the EIS software on SPICE data, please contact [[https://science.gsfc.nasa.gov/sed/bio/peter.r.young|Dr. Peter Young]]. | ||
| === Line window width and spectral tilt === | === Line window width and spectral tilt === | ||