cdo sellonlatbox:Started child process"selvar,SCW,SCI,SCS,SCH,SCHL,SCR,SCTOT,REFL_10CM -seltimestep,1,7,13,19,24 wrfout_d03_2016-06-23_06:00:00 (pipe1.1)".cdo(2)selname:Started child process"seltimestep,1,7,13,19,24 wrfout_d03_2016-06-23_06:00:00 (pipe2.1)".cdo(3)sel...
将命令更改为 cdo -b F64 mergetime input1.nc input2.nc output.nc 其原理是当变量类型为int类型,需要转为浮点型(float、double)后再计算,否则结果会四舍五入,加-b F32 或 -b F64即可更改数据型。 cdo -r -copy data_[1-9].nc outfilename # 对data1-9共9个文件合并 文件的提取 cdo seltime...
为了将每个时间步提取到我使用的新文件中cdo seltimestep,$i ..., 将每个差异计算到一个新文件中cdo sub $i ${i-1} ... 并将这些新文件最终合并cdo mergetime ...到一个结果文件中。在我看来,这非常麻烦并且在性能方面并不理想。由于时间步长,我无法使用 cdo 管道,因此需要同时创建许多文件。
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 -seltimestep,1/12...
cdo-sellevidx,10-selname,REFL_10CM-seltimestep,1wrfout_d02_2015-10-04_06\:00\:00wrfoutsub_06.nc 使用cdo info 查看数据集信息可以得到: 代码语言:javascript 复制 cdo info wrfoutsub_03.nc-1:Date Time Level Gridsize Miss:Minimum Mean Maximum:ParameterID1:2015-10-0403:00:00101776600:0.00006...
logger.error('ensmean calculations failed: %s '% e )try:#nc_delta = nc_ensmean(lastpt) - nc_ensmean(firstpt)nc_laststep = cdo.seltimestep('-1', input = nc_ensmean, output ='nc_laststep.nc') nc_firststep = cdo.seltimestep(1, input = nc_ensmean, output ='nc_firststep.nc...
ifile ="-enlarge,global_0.3 -settaxis,2000-01-01 -expr,'t=sin(for*3.141529/180.0)' -for,1,10"t = cdo.fldmax(input="-div -sub -timmean -seltimestep,2,3 %s -seltimestep,1 %s -gridarea %s"%(ifile,ifile,ifile), returnMaArray="t") ...
cdo intntime,32 infile.nc outfile.nc Crop the time:crop two years to one year: cdo seltimestep,0/365 filein.nc fileout.nc Change dimension name: ncrename -d ,dimensionname, newdimensionname infile.nc outfile.nc Merge all netcdf files in a folder to one netcdf file: ...
Selvar selzaxis Select z-axes Selvar selzaxisname Select z-axes by name Selvar selltype Select GRIB level types Selvar seltabnum Select parameter table numbers Seltime seltimestep Select timesteps Seltime seltime Select times Seltime selhour Select hours Seltime selday Select days...
ntime Number of timesteps ntime ifile ncode Number of codes ncode ifile nvar Number of variables nvar ifile nlevel Number of levels nlevel ifile showyear Show years showyear ifile showmon Show months showmon ifile showdate Show dates showdate ifile showtime Show timesteps showtime ifile sho...