fn <- system.file("extdata",
"pr_day_EC-Earth3-CC_ssp245_r1i1p1f1_gr_20240101-20241231_vncdfCF.nc",
package = "ncdfCF")
ds <- open_ncdf(fn)
# ncdfDataset
dimnames(ds)
# ncdfVariable
pr <- ds[["pr"]]
dimnames(pr)
# ncdfDimensionNumeric
lon <- ds[["lon"]]
dimnames(lon)
# ncdfDimensionTime
t <- ds[["time"]]
dimnames(t)
Run the code above in your browser using DataLab