我正在尝试从necdf文件中读取一些变量但我收到错误:
f=open.ncdf("mrgHYDRO_Az_arfswp_Stom_PRUNI_20000101_20001231_1M_sechiba_history.nc")
A = get.var.ncdf(nc=f,varid="Evaporation",verbose=TRUE)
Error in vobjtovarid(nc, varid, verbose = verbose) : Variable not found
任何帮助,最好的问候
"file has 9 dimensions:"
[1] "lon Size: 34"
[1] "lat Size: 30"
[1] "veget Size: 13"
"file has 113 variables:"
[1] "double time_counter_bnds[tbnds,time_counter] Longname:time_counter_bnds Missval:1e+30"
[1] "float evap[lon,lat,time_counter] Longname:Evaporation Missval:1e+30"
答案 0 :(得分:1)
我认为在get.var.ncdf
的来电中引用的正确名称是evap
而不是Evaporation
。长名称只是一个更具描述性的名称,真实姓名为evap
。
A = get.var.ncdf(nc=f,varid="evap",verbose=TRUE)