selname/delname 根据变量名选择/删除数据,可指定多个变量名,用逗号隔开即可 sellevel 选择指定层的数据,可指定压力层 GRIB参数多字段选择 selmulti 操作符可以从输入文件中选择多个字段然后输出到文件中。常用形式如下: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 cdo selmulti,selection
通过上述命令可以看出,除了 selname 操作的参数时在方法内单独给出之外,其余**操作符(seltimestep)**的调用方式和cdo命令行调用方式相同。 相当于: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 cdo -selname,SCW,SCTOT,SCH,SCS,REFL_10CM -seltimestep,1/5 wrfout_d02_2016-06-23_06_00_00 wrf...
cdo seldate,2023-01-01,2023-12-31 input.nc output.nc 选择时间范围 cdo mergetime input1.nc input2.nc output.nc 合并文件 cdo infos xxx.nc 显示文件信息 cdo griddes infile.nc > mygrid 提取文件网格 cdo remapbil,r1152x768/mygrid input.nc output.nc 插值 cdo setgrid,mygrid infile.nc ...
cdo -f tif -selname,t2m input.nc output.tif # 转GeoTIFF栅格 五、高级转换技巧 并行转换 cdo -P 4 -f grb2 bigfile.nc parallel.grb2 # 启用4线程加速 分块写入 cdo -f nc4 -w 1024MB input.nc chunked.nc # 设置1GB写入块 流式处理 cdo -f nc4 -copy input.grb output.nc # 内存映射转...
cdo.selname("SCW", input = "wrfout_d02_2016-06-23_06_00_00", force = False) 1. 多线程处理 python-cdo提供了多线程处理方式,可以处理能并行执行的任务。比如: from cdo import * import multiprocessing def showlevel(arg): return cdo.showlevel(input=arg) ...
cdo -selname,u10,v10 <infile> <outfile> 选择时间步Select timesteps from file:e.g. select only the 3rd time step cdo -seltimestep,3 <infile> <outfile> or select 3 timesteps cdo -seltimestep,1,13,25 <infile> <outfile> or select a time range from 1 to 12 ...
$ cdo selname,SSTK,CI infile.nc outfile.nc To select a lat/lon bounding box: $ cdo sellonlatbox,120,-90,20,-20infile.nc outfile.nc To select a date/time range: $ cdo seldate,2014-12-12T12:00:00,2015-01-31T18:00:00infile.nc outfile.nc ...
showstdname Show standard names sellonlatbox Select a longitude/latitude box setmissval Set a new missing value monadd Add monthly time series zonstd Zonal standard deviation eca_hd Heating degree days per time period 得到操作符的参考 如需参考,只需输⼊:cdo -h <operator> 操作符:1.⽂...
the selname operator is the cdo_selname() function)Examplelibrary(rcdo) ncep <- "hgt_ncep.nc"The ymonmean operator computes monthly annual cycle. The rcdo function is cdo_ymonmean()ncep |> cdo_ymonmean() #> CDO command: #> cdo ymonmean [ '/home/user1/Documents/r-packages/rcdo...
cdo.sellonlatbox('-10,10,-20,20',input='data.nc',output='clipped.nc') 1. 关系图 为帮助理解CDO的工作方式,下面是一个与CDO操作相关的关系图,展示了数据输入、处理与输出的过程: DATAstringfile_namestringformatCDOstringoperationstringparameterOUTPUTstringresult_fileprocessesgenerates ...