Problem while opening netcdf file in Rstudio 3.6.2

Hi, i downloaded and unzipped the climate data in netcdf format from : http://data.ceda.ac.uk/badc/cru/data/cru_ts/cru_ts_4.01/data/pre.
but when i tried to open it in R as below;
nc.pre <- nc_open("cru_ts4.01.2011.2016.pre.dat.nc")

I received an error message:
Error in R_nc4_open: Permission denied
Error in nc_open("cru_ts4.01.2011.2016.pre.dat.nc") :
Error in nc_open trying to open file cru_ts4.01.2011.2016.pre.dat.nc

Please can someone assist me on how to resolve the issue,
Thanks

Complete guess here but Permission denied sounds like an OS related file permissions issue.
Are you possibly on a Linux OS, and could it be that file needs to be chmod for read access for you ?

thanks for your response i use windows OS and the file is read access

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.