Skip to content
Prev 21493 / 29559 Next

writeRaster does not preserve names when writing to NetCDF

I'm sure you could find a way to do this with NetCDF/4 *if* the model
allows it, and add the required modifications to raster to handle it.

I'm just saying "it's complicated" for the reasons I outlined. I don't
see a natural way for this to happen.

Also - I've never seen text in a NetCDF variable, it's always in the
attributes (that I've seen) - maybe it's different with NetCDF4.

As Barry points out, to get names on dimension slices (or bundle
multiple NetCDF variables into a single data set) you effectively have
to write a new convention/API for dealing with this  file format that
"can (nearly but not quite) do everything ".

Cheers, Mike
On Tue, Aug 12, 2014 at 8:00 PM, Mark Payne <mpay at aqua.dtu.dk> wrote: