Skip to content
Prev 8516 / 29559 Next

Import .gz-File

Rosi,

Try this:
#unzip "temp.gz" files and save file as "temp.txt":
   gunzip(filename = "temp.gz", remove = T, overwrite = T, destname = 
"temp.txt")
#now read in "temp.txt" as SpatialGridDataFrame
   SGDF = read.asciigrid("temp1.txt", proj4string = CRS("+init=epsg:4322"))

This assumes that "temp.txt" is a ascii grid file.
HTH,
Ken
On 6/14/2010 11:27 AM, Roger Bivand wrote: