Greetings, Summary: Has anyone else started a package (or have code) with the capability to write Vis5D-readable netCDF files containing irregularly-spaced data? I've recently put together what might be the beginnings of a (GPL'ed) R interface package to the Vis5D volumetric visualization program (http://vis5d.sourceforge.net). Vis5D is commonly used in the atmospheric science and computational fluid dynamics fields. But it is generally useful for visualizing (e.g., animating) any function across 3D space and time, i.e., F(x,y,z,t). [It's also GPL'ed and compiled beautifully on a RH Linux 7.1/Intel machine] The files I have so far are: (1) FORTRAN code + header file for converting an ASCII file into Vis5D `v5d' format (Note: compilation needs the Vis5D libraries). http://socrates.berkeley.edu/~nklepeis/Vis5D/R2v5d.f http://socrates.berkeley.edu/~nklepeis/Vis5D/v5df.h (2) R function for fitting f(x,y,z) data across different times (using the `Tps' Kriging function in the R `fields' package), calculating function values across a *regularly*-spaced grid, and outputting an ASCII file that can be converted to `v5d'-format using `R2v5d.f' above: http://socrates.berkeley.edu/~nklepeis/Vis5D/fit5D.Rf I have tested the code with a couple data sets, and it seems to work pretty well. But there is (at least!) one thing missing: A way of writing a netCDF file containing *irregularly*-spaced data, which can be imported into Vis5D. Coercing the data to a regular grid is not always the best way to go. Does anyone have experience with R, netCDF and/or Vis5D who would be willing to donate some code? The scientific python package has a netCDF module, which I am currently looking into (but don't hold your breath...): http://starship.python.net/crew/hinsen/scientific.html http://www.unidata.ucar.edu/packages/netcdf/ Any other help or suggestion is also appreciated. Thanks. -- ___________________________________________________________ Neil E. Klepeis -- School of Public Health, UC Berkeley and Lawrence Berkeley National Laboratory, Berkeley, CA USA http://socrates.berkeley.edu/~nklepeis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._