Re: [R] Open netcdf file in linux

2018-09-18 Thread Jeff Newmiller
I find your response confusing still... did you now no longer need help? If you are still puzzled, then what does file.info("file.nc") return? Do you see that file in your current directory via your operating system? On September 17, 2018 11:53:22 PM PDT, lily li wrote: >Thanks, you are

Re: [R] Open netcdf file in linux

2018-09-18 Thread lily li
I did not set the correct path for the .nc file earlier. Now it is working properly. > I find your response confusing still... did you now no longer need help? > > If you are still puzzled, then what does > > file.info("file.nc") > > return? > > Do you see that file in your current directory

Re: [R] Open netcdf file in linux

2018-09-18 Thread lily li
Thanks, you are right that the file path is not correct. I just typed: nc_open("file.nc"), and it gave the error above. On Tue, Sep 18, 2018 at 1:33 PM, Jeff Newmiller wrote: > I really don't know how you expect an answer when you don't show what you > did or pointed us to an example of a file

Re: [R] Open netcdf file in linux

2018-09-17 Thread Jeff Newmiller
I really don't know how you expect an answer when you don't show what you did or pointed us to an example of a file that yields this error. My best blind guess is that you have not given the name of an ncdf file to the function. On September 17, 2018 9:44:45 PM PDT, lily li wrote: >Hi R users,

[R] Open netcdf file in linux

2018-09-17 Thread lily li
Hi R users, I have installed ncdf4 package in R from the linux terminal, but have met this problem when using nc_open to open a .nc file. What is the problem? Any help would be appreciated. Error in R_nc4_open: Is a directory [[alternative HTML version deleted]]