I am trying to load an ESRI ArcGrid export file into R. The file is located at- ftp://ftp.epa.gov/castnet/tdep/grids/n_tw/n_tw-2013.zip. The documentation for this file states, "Gridded data of the above variables are available in compressed ESRI ArcGRID export files" and not much else. Link to documentation here. My major problem is that this is an e00
file, an old output format of Arc.
The most straightforward way to load a raster normally (if this wasn't an e00
file) would be:
require(raster)
require(rgdal)
test <- raster('/path/to/n_tw-2013.e00')
However, you will receive the error: n_tw-2013.e00 not recognised as a supported file format.
.
The RArcInfo
package claims to be able to convert .e00
files into more useful Arc/Info binary coverage. To do this:
require(RArcInfo)
#first argument is the path to the e00 file, and the second argument is the new directory to create
e00toavc('/path/to/n_tw-2013.e00','/path/to/test1')
When I run this command it prints NULL
, and creates two directories, test1
, and info
, however, both are empty. I'm not sure whats going wrong here. Any advice on how to get this loaded into R as a raster so I can extract data to my specific lat/long would be greatly appreciated.
Output of sessionInfo
pasted here:
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS release 6.7 (Final)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] rgdal_1.2-5 raster_2.5-8 sp_1.2-4
loaded via a namespace (and not attached):
[1] tools_3.2.2 Rcpp_0.12.3 grid_3.2.2 lattice_0.20-33