[R] Failed to open *.img in rgdal

Pascal Oettli kridox at ymail.com
Thu May 16 12:22:15 CEST 2013


Hi,

I am able to read it by changing the name inside your example...
('daily_sea_surface_temperature_1982003_night.img')

 > summary(SST1982003)
Object of class SpatialGridDataFrame
Coordinates:
     min   max
x  96.5 165.5
y -16.5  26.5
Is projected: FALSE
proj4string :
[+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0]
Grid attributes:
   cellcentre.offset   cellsize cells.dim
x          96.52083 0.04166667      1656
y         -16.47917 0.04166667      1032
Data attributes:
    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's
    15.0    27.0    28.3    27.8    29.0    32.9 1534778

Please provide results of sessionInfo().

Regards,
Pascal


On 05/16/2013 07:02 PM, Eddie Smith wrote:
> Hi guys,
>
> Anybody willing to help?
>
>> SST1982003 <- readGDAL("daily_sst_1982003_nighttime.img")
>
> Error in SST1982003 <- readGDAL("daily_sst_1982003_nighttime.img") :
>    invalid (do_set) left-hand side to assignment
>
> The data can be downloaded from googledrive
> https://docs.google.com/file/d/0BzzExM8ZYZwxbEh5bGJ0amdkTVE/edit?usp=sharing
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list