Hi Robert,

Yes, I was sure that I had checked for that... but apparently I didn't. I
realised as soon as I had posted the message on the list.

Thanks!

Nathan

On Wed, Feb 8, 2012 at 12:33 PM, Robert J. Hijmans <r.hijmans@gmail.com>wrote:

> Nathan,
>
> This is not a valid filename:
>
> "f:\temp\abs0to501_z.tif"  ("\t" represents a tab character, "\a" is
> probably not defined)
>
> This is valid:
>
> "f:/temp/abs0to501_z.tif"
>
> or this:
>
> "f:\\temp\\abs0to501_z.tif"
>
> Robert
>
> On Wed, Feb 8, 2012 at 10:16 AM, Nathan Odgers <n.p.odgers@gmail.com>wrote:
>
>> Hi,
>>
>> I'm having trouble using writeGDAL() to save a SpatialPixelsDataFrame to
>> disk as a GeoTIFF.
>>
>> > class(abs0to501)
>> [1] "SpatialPixelsDataFrame"
>> attr(,"package")
>> [1] "sp"
>>
>> > names(abs0to501)
>>  [1] "z"          "regression" "res"        "variancek"  "variance1"
>> "variance2"
>>  [7] "variance"   "p1"         "p2"         "p3"         "b0"
>> "b1"
>> [13] "b2"         "b3"         "b4"         "b5"         "b6"
>> "b7"
>> [19] "b8"         "b9"         "b10"
>>
>> For now, I just want to write the "z" attribute as a GeoTIFF. So I call
>> writeGDAL() as follows:
>>
>> > writeGDAL(abs0to501["z"],"f:\temp\abs0to501_z.tif")
>>
>> then it thinks for a few seconds, and I get the error message:
>>
>> Error in .local(.Object, ...) : Dataset copy failed
>>
>> Is my file too large for R to cope with? The csv file that it originates
>> from is about 470 Mb in size. Or am I doing something else wrong?
>>
>> Regards,
>>
>> Nathan Odgers
>>
>>        [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>

	[[alternative HTML version deleted]]

