[{ALLOW edit EISMainUsers}]
[{ALLOW view Anonymous}]

%%(color:red;)__This page is still under construction. All of the information should be accurate, but some of the links are not working yet.__%%


!!!EIS data analysis guide

This guide describes how to access, calibrate and derive scientific results from the EIS instrument on Hinode. For a description of EIS and its observing modes please consult the instrument paper, [Culhane et al. (2007)|http://adsabs.harvard.edu/abs/2007SoPh..243...19C], and the [MSSL Science Centre webpage|https://vsolar.mssl.ucl.ac.uk/SolarB/].

!!Tutorials

The following sections describe individual steps in going from finding data to deriving scientific results. Below we provide tutorials that take users through these steps for example data-sets. 

[Tutorial for narrow slit data|TutorialSlit] (1", 2" slits)

[Tutorial for slot data|TutorialSlot] (40", 266" slits)

!!Searching and downloading EIS data

Each country contributing to the Hinode mission provides access to the data through web portals. Each one offers different capabilities and so it is recommended that you try each to familiarize yourself with the methods for searching for data. Web links to the four sites are given below.

[Hinode Science Data Centre (Europe)|http://elnath.uio.no/search/API] \\

[MSSL Science Centre (UK)|https://vsolar.mssl.ucl.ac.uk/SolarB/]\\

[Hinode Data Centre, DARTS (Japan)|http://darts.isas.jaxa.jp/hinode]\\

[Virtual Solar Observatory (US)|http://virtualsolar.org]

In addition, it is possible to download EIS data directly through IDL. EIS_CAT is a GUI tool that allows the user to search for data and download them. Another option is to directly download data via command line routines.

[EIS_CAT (IDL tool)|EISCAT]

[IDL command line options for downloading data|CommandLineDownload]

The large quantity of EIS data coupled with the large number of free parameters (raster size, wavelength windows, slit choice) means that it can be quite difficult to find the perfect data-set if you don't already know which study you want. Check out [Tips for finding the perfect data-set|TipsPerfect] to get some hints on searching for data.

%%(color:red;)__NEW!__%% [How to find data from the EIS response studies|TriggerStudies] (e.g., flare triggers).

For information about where to store EIS data files on your computer after you've downloaded them, please check [EIS Software Note No. 18|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/18_FILES/eis_swnote_18.pdf].


!!Calibrating EIS data

Calibration of EIS data is performed with a single IDL routine, EIS_PREP, which converts a level-0 FITS file (raw data) to a level-1 FITS file (calibrated data). Note that the data archives listed above do not distribute level-1 files, so the user needs to perform the calibration. It is highly recommended that the user perform calibration before browsing the data as detector artifacts called warm pixels make browsing the raw data difficult.

The standard call for eis_prep is:

{{{
IDL> eis_prep, filename, /quiet, /retain, /default, /save
}}}

%%(color:red;)__IMPORTANT NOTE__%%: the /correct_sensitivity keyword is no longer recommended as of 8 October 2013. Please check the [calibration discussion page|EISCalibration] for an update on the EIS radiometric calibration.

An explanation of the eis_prep keywords and a description of the calibration steps performed by eis_prep are available in [EIS Software Note No. 1|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/01_EIS_PREP/eis_swnote_01.pdf].

eis_prep can take a long time to process a data-set, but it can be speeded up by using a dynamically-loadable module (DLM). Please check out [setting up a DLM for eis_prep|DLMeisprep] for more details.


!!Taking a quick-look at your data

For browsing a data-set there are several 'quicklook' tools available that can be accessed by first calling a single IDL widget called XFILES:

{{{
IDL> xfiles
}}}

The widget allows you to choose an EIS file by manually typing in the path to the EIS file. Make sure to change 'eis_l0_*' to 'eis_l1_*' in the 'Set search filter' box to look for level-1 files rather than level-0 files. After confirming your selection a new widget called XCONTROL pops up which allows the user to access the five quicklook tools:

[Control|QuicklookControl] - find basic info on your data, run eis_prep, access QL tools.

[Detector|QuicklookDetector] - displays detector images.

[Browser|QuicklookBrowser] - allows user to browse the 3D data cubes (wavelength-X-Y) obtained from narrow slit observations.

[Spectroheliogram|QuicklookSpectroHeliogram] - for a specified line shows a solar-Y vs. wavelength plot for each exposure.

[Whisker|QuicklookWhisker] - for a specified line shows a solar-X vs. wavelength plot for each exposure.

[Intensity map|QuicklookIntensity] - for a specified line shows an intensity image.

!!EIS objects and structures

A complete data-set is read into IDL as an object as follows:

{{{
IDL> data=obj_new('eis_data',filename)
}}}

where 'filename' is the name of the level-1 file (a level-0 file can be read in the same way). The contents of the object can be read and manipulated through a large number of methods and an overview of some of the most useful methods is given below.

[EIS object methods|EISmethods]

The routine [EIS_GETWINDATA|EISGetWindata] is also available if you want to extract a single EIS data window into an IDL structure. Some routines (e.g., EIS_AUTO_FIT) require as input the structures produced by EIS_GETWINDATA.


!!Narrow slit data (1", 2" slits)

The 1" and 2" slits return emission line spectra and a basic task for such data-sets is to fit Gaussians to the emission lines to return intensity, centroid and width information. Gaussian fitting routines available to EIS users are described below. The routines correct for most instrumental effects, but users should familiarize themselves with some of these effects through the software notes listed below:

* Warm and hot pixels (Software Notes 6 and 13)
* Orbital drift of line centroids (Software Note 5)
* EIS slit tilts (Software Note 4)
* EIS spectrum tilt (Software Note 3)

There is one important instrumental effect that potentially can affect Doppler shift studies, but for which there is not a software fix at present:

* [Spatial offset between velocity and intensity features|Spatial offset of intensity and velocity features]

!Gaussian fitting routines

Fitting a Gaussian function to an emission line yields measures of the line intensity, centroid (velocity) and width. Single Gaussian fits to individual lines are possible using [EIS object methods|EISmethods], while more sophisticated fitting options are available through the EIS_AUTO_FIT and SPEC_GAUSS_EIS routines available in Solarsoft. Documents describing these routines and giving examples are listed below.

[EIS_AUTO_FIT and SPEC_GAUSS_EIS: Gaussian fitting for the Hinode/EIS mission (EIS Software Note 16)|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/16_AUTO_FIT/eis_swnote_16.pdf]\\
[Gaussian fitting examples using EIS_AUTO_FIT (EIS Software Note 17)|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/17_AUTO_FIT_EXAMPLES/eis_swnote_17.pdf]


Users should be aware that EIS line profiles can often take on non-Gaussian shapes which may contain valuable scientific information (e.g., [Chifor et al. 2008|http://adsabs.harvard.edu/abs/2008A%26A...481L..57C,], [De Pontieu et al. 2009|http://adsabs.harvard.edu/abs/2009ApJ...701L...1D,]).

!Line ratio maps and density diagnostics

Some emission line ratios are sensitive to the electron density, and software is available to take the line fit structures output by EIS_AUTO_FIT and convert them to electron density maps. The density then allows the emitting column depth of the plasma to be determined which in turn allows the filling factor of the plasma to be estimated. The document below describes how this done, making use of atomic data from the [CHIANTI database|http://www.chiantidatabase.org].

EIS Software Note #15 - [Deriving densities from Hinode/EIS data|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/15_DENSITY/eis_swnote_15.pdf]

!Emission measure

When line intensities are available from several different ions, then an emission measure (EM) or differential emission measure (DEM) distribution can be constructed. No specific EIS software is available for doing this and so users are referred to software in the CHIANTI database, in particular:

integral_calc.pro:  computes an EM value from a single line intensity\\
chianti_dem.pro:  computes a DEM distribution from multiple line intensities

Another popular DEM code is available within the [PINTofALE|http://hea-www.harvard.edu/PINTofALE/] software package.



!!Slot data (40", 266" slits)

The EIS slots produce images rather than spectra, and the most common application will be to produce movies from the slot rasters in a range of emission lines. Diagnostics are possible with the slots, however, by taking ratios of images and temperature and density diagnostics are described below.

!Making movies

!Temperature diagnostics

!Density diagnostics

!!Pointing and co-alignment

Most EIS users will be analyzing data-sets from multiple instruments and so it is necessary to determine where an EIS raster is positioned relative to the other instruments. Usually the pointing information within an EIS file will not be good enough to accurately co-align data-sets and so cross-correlation will be necessary.

* [Obtaining SDO cutout images for EIS rasters|AIAEIS]
* [Obtaining pointing information from EIS data|EISPointing]
* [Creating an IDL map from EIS data|EISMaps]
* [Co-aligning EIS and SOT images|EISSOTcoalign]
* [Co-aligning EIS and XRT images|EISXRTcoaling]

!!EIS Software Notes

A series of Software Notes have been written that give details about various technical aspects related to the EIS mission.

[Software Note No. 1|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/01_EIS_PREP/eis_swnote_01.pdf] - Calibrating EIS data: the EIS_PREP routine\\
[Software Note No. 2|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/02_RADIOMETRIC_CALIBRATION/eis_swnote_02.pdf] - Radiometric calibration\\
[Software Note No. 3|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/03_GRATING_DETECTOR_TILT/eis_swnote_03.pdf] - Spatial Y-offsets between different wavelengths (spectrum
  tilt and CCD offset)\\
[Software Note No. 4|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/04_SLIT_TILT/eis_swnote_04.pdf] - Slit tilts\\
[Software Note No. 5|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/05_WAVELENGTH_CORRECTION/eis_swnote_05.pdf] - Orbital variation of EIS wavelength scale\\
[Software Note No. 6|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/06_HOT_WARM_PIXELS/eis_swnote_06.pdf] - Hot and Warm pixels\\
[Software Note No. 7|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/07_LINE_WIDTH/eis_swnote_07.pdf] - Instrumental line widths for the narrow slits of EIS\\
Software Note No. 8 - EIS Point Spread function (coma)\\
[Software Note No. 9|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/09_POINTING/eis_swnote_09.pdf] - EIS Pointing\\
[Software Note No. 10|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/10_DARK_CURRENT/eis_swnote_10.pdf] - Dark Current\\
[Software Note No. 11|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/11_JPEG_COMPRESSION/eis_swnote_11.pdf] - JPEG Compression\\
[Software Note No. 12|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/12_STRAY_LIGHT/eis_swnote_12.pdf] - Stray Light \\
[Software Note No. 13|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/13_INTERPOLATION/eis_swnote_13.pdf] - Interpolation of missing EIS data\\
[Software Note No. 14|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/14_BP_TRIGGER/eis_swnote_14.pdf] - The EIS Bright Point Trigger\\
[Software Note No. 15|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/15_DENSITY/eis_swnote_15.pdf] - Deriving densities, column depths and filling factors from Hinode/EIS data\\
[Software Note No. 16|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/16_AUTO_FIT/eis_swnote_16.pdf] - EIS_AUTO_FIT and SPEC_GAUSS_EIS: Gaussian fitting routines for the Hinode/EIS mission\\
[Software Note No. 17|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/17_AUTO_FIT_EXAMPLES/eis_swnote_17.pdf] - Gaussian fitting examples using the EIS_AUTO_FIT routine\\
[Software Note No. 18|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/18_FILES/eis_swnote_18.pdf] - EIS data files and directory structure\\
[Software Note No. 19|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/19_DATABASE/eis_swnote_19.pdf] - How to access and use the EIS databases\\
[Software Note No. 20|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/20_EIS_AIA_COALIGN/eis_swnote_20.pdf] - EIS/AIA coalignment\\
[Software Note No. 21|ftp://sohoftp.nascom.nasa.gov/solarsoft/hinode/eis/doc/eis_notes/21_WINDATA/eis_swnote_21.pdf] - The WINDATA routines for EIS data analysis\\

These documents are also available in the EIS Solarsoft distribution, in $SSW/hinode/eis/doc/eis_notes.