[Numpy-discussion] viewing Gridded or Polar data?
jsaenz at wm.lc.ehu.es
Thu Jan 17 07:59:23 EST 2002
I have never tried exactly this type of plot, but I guess that a
combination of GrADS commands like the following ones in a script:
grads -l << EOF
sdfopen yourfile.nc (for COARDS-compliant netCDF files)
set gxout grfill (to get a colour-filled grid)
set clevs 10 20 30 40 50 (and so on to define your intervals...)
d variable_name (of the netCDF file)
enable print your_plot_name.gm
gxeps -c your_plot_name
should do the work and prepare an EPS file.
GrADS handles netCDF files, in case they conform to the COARDS standard.
Otherwise, you can define the data in the file and use the xdfopen
command, but this is more complex than above.
http://grads.iges.org is their homepage.
Hope this helps.
Jon Saenz. | Tfno: +34 946012445
Depto. Fisica Aplicada II | Fax: +34 944648500
Facultad de Ciencias. \\ Universidad del Pais Vasco \\
Apdo. 644 \\ 48080 - Bilbao \\ SPAIN
On Thu, 17 Jan 2002, Joe Van Andel wrote:
> Can anyone recommend a visualization package that would display arrays
> of numbers by mapping values to a set of colors? That is, we define 32
> colors, where the first color represents values 0-10, the second color
> represents 10-20, etc, and then each input value gets displayed as its
> corresponding color.
> I'd like to read netCDF files, if possible.
> Thanks much!
> Joe VanAndel
> National Center for Atmospheric Research
> Internet: vanandel at ucar.edu
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
More information about the NumPy-Discussion