{
dimensions:
grp = 50 ;
time = UNLIMITED ; // (0 currently)
depth = 3 ;
scalar = 1 ;
spectral_bands = 2 ;
x1AndTime = 13041 ;
x2AndTime = 13041 ;
midTotoAndTime = 13041 ;
variables:
double time(time) ;
double a1(time, hru) ;
double a2(time, hru) ;
double a3(x1AndTime, hru) ;
double a4(x2AndTime, hru) ;
double a5(hru) ;
在R
中打开netCDF文件
out <- ncdf4::nc_open('test.nc')
获取所有变量
ncvars <- names(out[['var']])
这给了我一个netCDF文件中所有变量的列表。在
例如,我如何获得维度为time
和{
预期输出:
使用a1, a2
列出
注意:这是python,不是R,但说明了逻辑。在
相关问题 更多 >
编程相关推荐