Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to read the value I want #2

Open
princess97 opened this issue Oct 5, 2020 · 2 comments
Open

Inability to read the value I want #2

princess97 opened this issue Oct 5, 2020 · 2 comments

Comments

@princess97
Copy link

Hello, I have seen and tried your posts about opening netCDF file in R environment from your https://pjbartlein.github.io/REarthSysSci/netCDF.html page. I used the functions below.
ncpath <- "C: \ Users \ xxxx \ Desktop / nc /"

ncname <- "ECMWF_ERA-40_subset"
ncfname <- paste (ncpath, ncname, ".nc", sep = "")
dname <- "hcc"
ncin <- nc_open (ncfname)
print (ncin)
I just wanted to display the "hcc" variable. But it returned all variables in the file. Where do you think I went wrong and how can I solve it?

@pjbartlein
Copy link
Owner

pjbartlein commented Oct 5, 2020 via email

@princess97
Copy link
Author

Thank you for the quick turnaround. So how am I going to see just the variable I want? Can you guide me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants