Windows or Linux?  My experience is in Windows. 

I would writeGDAL() the SGDF to GTiff, then use gdal_translate at the
command line to convert to netCDF:

gdal_translate -of NetCDF in.tif out.nc

That *should* work but you might want to explore any available creation
options. (GDAL with NetCDF is simply installed from binary with FWTools). 

rgdal can be built with NetCDF support on Windows, but only (AFAIK) with
MSYS, and the requisite builds of GDAL, PROJ.4 and NetCDF from source,
and lots of help from Roger Bivand. ;)

If you are keen to follow that route I may be able to help. I've also had 
success with (Brian Ripley's Windows build of) RNetCDF, but am not as
familiar with the workflow. 

Cheers, Mike.


==============Original message text===============
On Mon, 12 Nov 2007 10:01:21 +1100 "Sebastian P. Luque" wrote:

Hi,

Does anybody know of a painless way to write a SpatialGridDataFrame to a
netcdf grid format file?  I know there are 4 packages in CRAN that can
read/write netcdf data, but I think this would require a conversion of the
sp objects into an intermediary form.  Any suggestions welcome.


Cheers,

-- 
Seb

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

===========End of original message text===========



If it wasn't backed-up, then it wasn't important. ~ Anon sysadmin

Mike Sumner (Phd. Candidate)
http://www.antcrc.utas.edu.au/~mdsumner/ http://www.zoo.utas.edu.au/awru/  IASOS/AWRU
University of Tasmania
Private Bag 80
Hobart Tasmania 7001
AUSTRALIA
Email: mdsumner@utas.edu.au 
Phone: 03 6226 1752 (W)
       0408599921   (M)
Fax:   03 6226 2745


