I have a dell m6800 with 16gb ram, 4.5TB HD and the fastest i7 chip
available which Dell loaded with Win 7 SP1. I loaded RRO 3.2.2 64bit and I have been having repeated
APPCRASH events from this script:
setwd("c:/evi06")
library(sp)
library(raster)
library(landsat)
x1 <- raster("L5019050_20010331_r_b_b1.rst")
aspect <- readGDAL("A_srtm_20010331_u.tif")
slope <- readGDAL("S_srtm_20010331_u.tif")
gx1 <- as(x1, 'SpatialGridDataFrame')
gx1tc <- minnaert(gx1, slope, aspect, sunelev=58.02, sunazimuth=105.35, slopeclass=c(1, 5, 10, 15, 50))
tcorrx1 <- raster(gx1tc)
tcor_rst <- writeRaster(tcorrx1,"tcorrx1.rst",format='IDRISI')
it bombs on the highlighted line with the minnaert function.
The files being processed are single band, file format : Idrisi Raster A.1
data type : integer
file type : binary
columns : 7811
rows : 7091
and
I can display and work with them in IDRISI and ArcGIS without issue. In
fact, topocorr (another landsat package function similar to minnaert)
runs fine with these files. When I look in task manager before the crashes, it is using from 3.8GB - 13GB of memory. What is the issue here?