Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
702 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 Reply

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确保不违反保护法。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...