CDO - 转换相关的操作

本篇随笔将介绍 CDO 进行坐标系变换、傅里叶变换和风场与涡度散度之间的转换等功能

Transformation 转换

Spectral transformation

<operator>[,gridtype] infile outfile

OperatorsDescription
sp2gp[,gridtype]Convert all spectral fields to a global regular Gaussian grid
gp2sp[,gridtype]Convert all Gaussian gridpoint fields to spectral fields
GridtypeNumber of latitudes: nlatTriangular truncation: ntr
linearNINT((ntr*2 + 1)/2)(nlat*2 - 1) / 2
quadraticNINT((ntr*3 + 1)/2)(nlat*2 - 1) / 3
cubicNINT((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

OperatorsDescription
sp2sp,truncChanged the triangular truncation of all spectral fields

D and V to velocity potential and stream function

<operator> infile outfile

OperatorsDescription
dv2ps利用相对散度和相对涡度计算速度势和流函数,相对散度和相对涡度的变量名应为 sdsvo 或者变量的 code number 为 155138

Wind transformation

<operator>[,gridtype] infile outfile

OperatorsDescription
dv2uv[,gridtype]散度和涡度转为 u-wind 和 v-wind;利用相对散度和相对涡度计算 u-wind 和 v-wind,相对散度和相对涡度的变量名应为 sdsvo 或者变量的 code number 为 155138
uv2dv[,gridtype]u-wind 和 v-wind 转为散度和涡度;利用 u-wind 和 v-wind 计算相对散度和相对涡度,u-wind 和 v-wind 的变量名应为 uv 或者变量的 code number 为 131132
GridtypeNumber of latitudes: nlatTriangular truncation: ntr
linearNINT((ntr*2 + 1)/2)(nlat*2 - 1) / 2
quadraticNINT((ntr*3 + 1)/2)(nlat*2 - 1) / 3
cubicNINT((ntr*4 + 1)/2)(nlat*2 - 1) / 4

Fourier transformation

<operator>,epsilon infile outfile

OperatorsDescription
fourier,epsilon对所有输入域进行傅里叶变换或傅里叶反变换;
参数 epsilon 为 -1 时为傅里叶正变换,为 1 时为傅里叶反变换