CDO - 转换相关的操作
本篇随笔将介绍 CDO 进行坐标系变换、傅里叶变换和风场与涡度散度之间的转换等功能
Transformation 转换
Spectral transformation
<operator>[,gridtype] infile outfile
Operators | Description |
---|---|
sp2gp[,gridtype] | Convert all spectral fields to a global regular Gaussian grid |
gp2sp[,gridtype] | Convert all Gaussian gridpoint fields to spectral fields |
Gridtype | Number of latitudes: nlat | Triangular truncation: ntr |
---|---|---|
linear | NINT((ntr*2 + 1)/2) | (nlat*2 - 1) / 2 |
quadratic | NINT((ntr*3 + 1)/2) | (nlat*2 - 1) / 3 |
cubic | NINT((ntr*4 + 1)/2) | (nlat*2 - 1) / 4 |
例子
将 谱系数 从 T106 转换为 N80 高斯网格:1
cdo sp2gp infile outfile
将 谱系数 从 TL159 转换为 N80 高斯网格:
1
cdo sp2gp,linear infile outfile
<operator>,trunc infile outfile
Operators | Description |
---|---|
sp2sp,trunc | Changed the triangular truncation of all spectral fields |
D and V to velocity potential and stream function
<operator> infile outfile
Operators | Description |
---|---|
dv2ps | 利用相对散度和相对涡度计算速度势和流函数,相对散度和相对涡度的变量名应为 sd 和 svo 或者变量的 code number 为 155 和 138 |
Wind transformation
<operator>[,gridtype] infile outfile
Operators | Description |
---|---|
dv2uv[,gridtype] | 散度和涡度转为 u-wind 和 v-wind;利用相对散度和相对涡度计算 u-wind 和 v-wind,相对散度和相对涡度的变量名应为 sd 和 svo 或者变量的 code number 为 155 和 138 |
uv2dv[,gridtype] | u-wind 和 v-wind 转为散度和涡度;利用 u-wind 和 v-wind 计算相对散度和相对涡度,u-wind 和 v-wind 的变量名应为 u 和 v 或者变量的 code number 为 131 和 132 |
Gridtype | Number of latitudes: nlat | Triangular truncation: ntr |
---|---|---|
linear | NINT((ntr*2 + 1)/2) | (nlat*2 - 1) / 2 |
quadratic | NINT((ntr*3 + 1)/2) | (nlat*2 - 1) / 3 |
cubic | NINT((ntr*4 + 1)/2) | (nlat*2 - 1) / 4 |
Fourier transformation
<operator>,epsilon infile outfile
Operators | Description |
---|---|
fourier,epsilon | 对所有输入域进行傅里叶变换或傅里叶反变换; 参数 epsilon 为 -1 时为傅里叶正变换,为 1 时为傅里叶反变换 |