Skip to content
Prev 8824 / 29559 Next

display projected NetCDF files

Walt,

You should be able to read and plot this file like this:

library(raster)

b = brick("air.mon.mean.nc", varname= 'air')
plot(b, 1)

#or
r = raster("air.mon.mean.nc", varname= 'air', band=1)
plot(r)

#or
sp = as(b, 'SpatialGridDataFrame')
#etc

The projection info is stored in  r at prj  (for the time being, util I
transform these to proj4 syntax, for at the least the common cases)

Robert
On Wed, Jul 14, 2010 at 10:42 AM, Walt Golet <wgolet at gmri.org> wrote: