Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
696 views
in Technique[技术] by (71.8m points)

netcdf - 如何将netcdf文件中的变量重新分配到另一个网格,以使通量,质量和其他字段保持不变(How to regrid variables in a netcdf file to another grid such that the fluxes, mass and other fields remain conserved)

我想将变量重新注册到文件中,以使通量和其他重要的守恒域保持守恒,并且不违反守恒定律。

  ask by tech_climate translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use cdo in the following way

(您可以通过以下方式使用cdo)

cdo remapcon,newgrid.nc input_file.nc output_file.nc

where newgrid.nc can be any file which has the target grid and input_file is the file which is to be regridded.

(其中newgrid.nc可以是具有目标网格的任何文件,而input_file是要重新注册的文件。)

The result obtained is output_file.nc, one thing to note in this is that the metadata/attributes should be CF compliant for cdo to understand the files and data.

(获得的结果是output_file.nc,需要注意的一件事是,元数据/属性应符合CF规范,以便cdo理解文件和数据。)

remapcon ensures that conservation laws are not violated.

(remapcon确保不违反保护法。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...