Using R to open grib files
- by robin girard
I am using R to work with meteorological data. I proceed in two steps:
1- convert grib to netcdf using the commande line function ncl_convert2nc from ncar command language
2- use package ncdf in R to import the netcdf data.
I have two problems:
1- I would like to do automatic treatment of many files within R. Can I call ncl_convert2nc within R ?
2- For some particular grib files, the convertion with ncar tool does not work. Is there other ways or trick (other than transcription into netcdf) to read grib files in R ?