Read & Write Netcdf files in R