Skip to content

Inability to read the value I want #2

@princess97

Description

@princess97

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions