CDO/NCO - 在维度上复制数据集
CDO/NCO - Replicate dataset over a dimension
我有几个变量定义如下:
dimensions:
t = UNLIMITED ; // (1 currently)
y = 3963 ;
x = 5762 ;
myz = 1 ;
z = 98 ;
variables:
float e1u(t, y, x, myz) ;
float e1v(t, y, x, myz) ;
float e2v(t, y, x, myz) ;
float e2u(t, y, x, myz) ;
float nav_lev(z) ;
我想通过为所有 98 个级别复制 (x,y) 网格来定义 z 维度上的 e1u 变量。是否有 cdo/nco 命令来完成此操作?
谢谢!
ncap2 -s 'e1uz[t,y,x,myz,z]=e1u' in.nc out.nc # This replicates over z
ncks -O -x -v e1u out.nc out.nc # Delete original e1u variable
ncrename -v e1uz,e1u out.nc # Rename to original name
我有几个变量定义如下:
dimensions:
t = UNLIMITED ; // (1 currently)
y = 3963 ;
x = 5762 ;
myz = 1 ;
z = 98 ;
variables:
float e1u(t, y, x, myz) ;
float e1v(t, y, x, myz) ;
float e2v(t, y, x, myz) ;
float e2u(t, y, x, myz) ;
float nav_lev(z) ;
我想通过为所有 98 个级别复制 (x,y) 网格来定义 z 维度上的 e1u 变量。是否有 cdo/nco 命令来完成此操作?
谢谢!
ncap2 -s 'e1uz[t,y,x,myz,z]=e1u' in.nc out.nc # This replicates over z
ncks -O -x -v e1u out.nc out.nc # Delete original e1u variable
ncrename -v e1uz,e1u out.nc # Rename to original name