[R-sig-Geo] writeRaster error

Lyndon Estes lestes at princeton.edu
Mon Nov 15 03:59:49 CET 2010


Hi Robert,

Thanks for that.

FYI, I upgraded to rgdal 0.6-28 but am still getting the same error,
in case anyone else tries this approach. I upgraded the entire GDAL
framework from http://www.kyngchaos.com/software/frameworks (moving me
from GDAL 1.7.2 to 1.7.3), which bundles in the rgdal 0.6-28.

So, I will try raster 1.6-19 tomorrow.

Thanks, Lyndon

On Sun, Nov 14, 2010 at 8:23 PM, Robert J. Hijmans <r.hijmans at gmail.com> wrote:
> Oops. Fixed in raster version 1.6-19 which should be on CRAN tomorrow.
> Updating to rgdal 0.6-28 would also work (but won't be necessary with
> raster 1.6-19.
> Robert
>
>
> On Sun, Nov 14, 2010 at 3:45 PM, Lyndon Estes <lestes at princeton.edu> wrote:
>> Hello List,
>>
>> I am using R 2.11.1 on a Macbook Pro.
>>
>> R version 2.11.1 (2010-05-31)
>> [R.app GUI 1.34 (5589) x86_64-apple-darwin9.8.0]
>>
>> Following steps on another thread:
>>
>> http://permalink.gmane.org/gmane.comp.lang.r.geo/9480
>>
>> I upgraded to raster 1.6-16 from 1.5-16 so that I could perform some
>> of the steps there.
>>
>> Now, when I try to write out a GeoTiff:
>>
>> r3 <- writeRaster(r1, filename='MOD_extent_test1.tif', type = "GTiff")
>>
>> I get:
>> Error in .stopGDALwriting(x) : object 'nl' not found
>>
>> The Geotiff appears to be written, and is plottable and viewable in
>> QGIS, but it is half the size in MB (61.2 mb) of the original that was
>> read in:
>>
>> r1 <- raster('MOD13Q1.A2005225.h20v11.mosaic.NDVI.tif')  # 131.4 mb
>>
>> I tried upgrading rgdal (to rgdal_0.6-27) just in case that helped the problem:
>>
>> setRepositories(ind=1:2)
>> install.packages("rgdal")
>>
>> But it remains the same.
>>
>> Does anyone know what might be throwing this error?
>>
>> Many thanks, Lyndon
>>
>>
>>
>>
>>
>>
>> --
>> Lyndon Estes
>> Research Associate
>> Woodrow Wilson School
>> Princeton University
>> +1-609-258-2392 (o)
>> +1-609-258-6082 (f)
>> +1-202-431-0496 (m)
>> lestes at princeton.edu
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>



-- 
Lyndon Estes
Research Associate
Woodrow Wilson School
Princeton University
+1-609-258-2392 (o)
+1-609-258-6082 (f)
+1-202-431-0496 (m)
lestes at princeton.edu



More information about the R-sig-Geo mailing list