[R] problem writing .bil files in netcdf

Abdoulaye SARR abdoulayesar at gmail.com
Thu Sep 1 14:10:06 CEST 2016


Dear List,

I have daily rainfall data in .bil format and can get info of the file using rgdal:

> library(rgdal)
> GDALinfo("/1981/v2p19810101.bil")
rows        1600 
columns     1500 
bands       1 
lower left origin.x        -20 
lower left origin.y        -40 
res.x       0.05 
res.y       0.05 
ysign       -1 
oblique.x   0 
oblique.y   0 
driver      EHdr 
projection  NA 

How can I read all daily file and write them as netcdf files and concatenate as one yearly file and also avoid boundary pixels alter rainfall values.

Best regards,

Eus



More information about the R-help mailing list