This page (revision-9) was last changed on 27-Mar-2020 14:38 by Peter Young

This page was created on 24-Feb-2010 18:22 by PeterYoung

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
9 27-Mar-2020 14:38 1 KB Peter Young to previous
8 07-Dec-2016 14:14 1 KB Peter Young to previous | to last
7 04-Aug-2010 21:41 2 KB PeterYoung to previous | to last
6 07-Jul-2010 20:01 2 KB PeterYoung to previous | to last
5 07-Jul-2010 19:47 1 KB PeterYoung to previous | to last
4 07-Jul-2010 19:36 1 KB PeterYoung to previous | to last
3 24-Feb-2010 22:20 1 KB PeterYoung to previous | to last
2 24-Feb-2010 18:22 1 KB PeterYoung to previous | to last
1 24-Feb-2010 18:22 2 bytes PeterYoung to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 removed 3 lines
[{ALLOW edit EISMainUsers}]
[{ALLOW view Anonymous}]
!!!Worksheet 3 - Reading and browsing data
At line 2 added one line
!!!Worksheet 2 - Reading and browsing data
At line 6 changed one line
Following on from Worksheet 2, you can now read the EIS FITS file from the command line:
The EIS FITS file to be used in all the worksheets is from 9-Dec-2007, 11:30 UT:
At line 8 changed 3 lines
{{{
IDL> data=obj_new(‘eis_data’,filename)
}}}
filename=’eis_l0_20061209_113031.fits’
At line 12 changed one line
data is an IDL object. Information is extracted from the object through a large number of ''methods'' and some examples are given below.
(NOTE: you may need to add the path name, depending on where the file is located.)
At line 14 changed one line
To determine the coordinates of the center of the raster, do:
To read an EIS FITS file from the command line, type:
At line 16 changed 4 lines
{{{
IDL> xcen=data->getxcen(/raster)
IDL> ycen=data->getycen(/raster)
}}}
IDL> data=obj_new(‘eis_data’,filename)
At line 21 changed one line
To find the exposure time for each exposure of the raster, do:
data is an IDL object. You can extract information from the object using various methods. E.g.,
At line 23 changed 3 lines
{{{
IDL> exp=data->getexp()
}}}
IDL> exp=data->getexp()\\
IDL> xpos=data->getxpos()\\
IDL> wd0=data->getvar(0)\\
At line 27 changed one line
A single data window can be extracted by doing:
wd0 is a 3D array containing the window data for the specified window (0 in this case). You can get a list of all methods by doing:
At line 29 changed 3 lines
{{{
IDL> wd=data->getvar(195.12)
}}}
IDL> data->display_methods
At line 33 changed one line
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.
To extract the header into a string array, do:
At line 35 changed one line
A complete list of methods is obtained by doing
IDL> hdr_obj=data->gethdr()\\
IDL> text=hdr_obj->getbte_hdr()
At line 37 changed 3 lines
{{{
IDL> data->display_methods
}}}
A number of useful header tags can be sent to a structure by doing:
At line 41 changed one line
while more [detailed information on some methods|EISmethods] is given elsewhere on the EIS wiki.
IDL> eis_get_hdr_struc,data,hdrstr
At line 33 added one line
To find which wavelength windows are contained in data, do:
At line 44 changed one line
!Exercises
IDL> wininfo=eis_get_wininfo(filename,/list)
At line 46 changed one line
For these exercises you will need to refer to the [EIS object methods page|EISmethods].
!Exercise
At line 48 changed 3 lines
#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 out the direction that EIS rasters? (east-west, or west-east)
#Using eis_get_wininfo and the getvar() object method, extract an image in Fe XII 195 by summing all wavelength pixels in the window. Plot the image. What do you have to do to the image to orient it correctly? (You may need to refer to XRT images from Day 1 of the workshop.)
#Using the following commands:
At line 52 changed 5 lines
{{{
IDL> ti=data->getti_1()
IDL> sec=data->sec_from_obs_start(ti)
IDL> xpos=data->getxpos()
}}}
IDL> aux_data=data->getaux_data()\\
IDL> exptimes=data->sec_from_obs_start(*(aux_data.ti_1))\\
IDL> xpos=data->getxpos()\\
work out in which direction EIS rasters (east-west, or west-east).