From: Jon S. <js...@wm...> - 2002-01-17 15:58:13
|
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 print disable print quit EOF 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 > http://www.atd.ucar.edu/~vanandel/ > Internet: van...@uc... > > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > |