search for: test_grid24

Displaying 1 result from an estimated 1 matches for "test_grid24".

Did you mean: test_grid2
2013 Jan 29
2
Netcdf and Raster Package Questions, Need .asc File for GIS
...m <- m[nrow(m):1,] r <- raster(m) plot(r) writeRaster(r,file="test_grid2.asc", format="ascii") # need square grids # resample to square grids r2 = raster(r) res(r2) = min(res(r)) res(r2) r2 <- resample(r, r2, method='bilinear') writeRaster(r2,file="test_grid24.asc", format="ascii") Thanks, Doug -- --------------------------------- Douglas M. Hultstrand, MS Senior Hydrometeorologist Metstat, Inc. Windsor, Colorado voice: 720.771.5840 email: dmhultst at metstat.com web: http://www.metstat.com ---------------------------------