!!!Worksheet 3 - Reading and browsing data

After calibrating the data with eis_prep we are now ready to read the data into IDL. First set the filename:

{{{
filename=’eis_l1_20061209_113031.fits’
}}}

(NOTE: you may need to add the path name, depending on where the file is located.)

Now to read the EIS FITS file from the command line, type:

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

data is an IDL object. Information is extracted from the object through a large number of ''methods'' and some examples are given below.

To determine the coordinates of the center of the raster, do:

{{{
IDL> xcen=data->getxcen(/raster)
IDL> ycen=data->getxcen(/raster)
}}}

To find the exposure time for each exposure of the raster, do:

{{{
IDL> exp=data->getexp()
}}}

A single data window can be extracted by doing:

{{{
IDL> wd=data->getvar(195.12)
}}}

where the specified wavelength is used to pick out the data window containing that particular wavelength. The first dimension of WD is always wavelength, the second is always solar-Y, and the third can be either solar-X or time depending if the observation was a raster or a sit-and-stare observation.

A complete list of methods is obtained by doing

{{{
IDL> data->display_methods
}}}

while more [detailed information on some methods|EISmethods] is given elsewhere on the EIS wiki.


!Exercises

For these exercises you will need to refer to the [EIS object methods page|EISmethods].

#Create and plot an IDL map for the Fe XII 195.12 line by taking the moments of the line.
#Now use the getvar() method to extract the 195.12 wavelength window. Sum the 3D window over the wavelength direction (use the IDL total() routine), and plot the resulting image. How does it compare to the map image plotted above? See the object methods page for why it is different.
#Using the following commands, can you work which direction EIS rasters? (east-west, or west-east)

{{{
IDL> ti=data->getti_1()
IDL> sec=data->sec_from_obs_start(ti)
IDL> xpos=data->getxpos()
}}}