|
Reading and plotting an ASCII data file with IDL
The ASCII data files can be read with IDL, for example with the routine
so2ascread.pro;
this particular routine has been tested at IDL versions 6.0 and 6.3.
The routine reads a given number of ASCII files, e.g. all orbits of
one day, and plots the SO2 slant column as a simple example.
The files to plot are given in a separate configuration file, the
name of which is read by the plotting routing. The structure
of the configuration file is given in the header of the
so2ascread.pro.
A configuration file listing all orbits of 01 July 2010
[ zip archive
of the ASCII data files]
[ world
plot of the SO2 vertical column], for example, looks like this:
data/
15
so2cd20100701_002506.dat
so2cd20100701_020258.dat
so2cd20100701_031634.dat
so2cd20100701_050011.dat
so2cd20100701_063855.dat
so2cd20100701_092901.dat
so2cd20100701_110828.dat
so2cd20100701_124808.dat
so2cd20100701_142627.dat
so2cd20100701_160403.dat
so2cd20100701_174141.dat
so2cd20100701_192026.dat
so2cd20100701_205937.dat
so2cd20100701_074812.dat
so2cd20100701_235206.dat
When running the example routine with this configuration file,
the screen output is:
IDL> .run so2ascread
IDL> so2ascread
>>> Give the name of configuration file.
: so2ascread.in
--- Reading file so2cd20100701_002506.dat
--- Reading file so2cd20100701_020258.dat
--- Reading file so2cd20100701_031634.dat
--- Reading file so2cd20100701_050011.dat
--- Reading file so2cd20100701_063855.dat
--- Reading file so2cd20100701_092901.dat
--- Reading file so2cd20100701_110828.dat
--- Reading file so2cd20100701_124808.dat
--- Reading file so2cd20100701_142627.dat
--- Reading file so2cd20100701_160403.dat
--- Reading file so2cd20100701_174141.dat
--- Reading file so2cd20100701_192026.dat
--- Reading file so2cd20100701_205937.dat
--- Reading file so2cd20100701_074812.dat
--- Reading file so2cd20100701_235206.dat
IDL>
The picture plotted by the routine is shown on the right. It uses a standard
IDL colour table and is not ornamented with title, axis labels, etc.; it is
merely meant as an example.
|
|
|
|