0

我正在尝试从 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"
4

1 回答 1

1

我相信在调用中引用的正确名称get.var.ncdfis evapnot Evaporation。长名称只是一个更具描述性的名称,真实名称是evap.

A = get.var.ncdf(nc=f,varid="evap",verbose=TRUE)
于 2012-09-04T10:38:46.160 回答