3

We are interested in using a dataset created by a fire lab. The data is in ARC BIL format. Is there a way to convert this into netCDF?

2

You might try the Raster to netCDF tool in ArcView.

2

GDAL supports both netCDF and BIL (according to: http://www.gdal.org/frmt_various.html). If you are looking for an open source solution, this seems to be a good way to go.

Note though that NetCDF support in GDAL is optional, and not compiled in by default.

1

You can do this in R:

library(raster)
library(ncdf4)

setwd("path of your data folder")
f<-list.files(pattern = ".bil")

for (i in 1:length(f)){
  rd<-raster(f[i]) # read your bil files
  name_nc<-tools::file_path_sans_ext(f[i])
  rnc <- writeRaster(rd, filename=paste(name_nc,".nc",sep=""), format="CDF", overwrite=TRUE)
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy