The best way is to use Dominic Zarro's map structures. For details, see
http://orpheus.nascom.nasa.gov/~zarro/idl/maps.html
and the EXERCISE section.
Giulio Del Zanna
CDS data analysis + spectroscopy using CHIANTI - MEDOC 2003
34 of 41