将Grib转换为netcdf文件 [英] Convert grib to netcdf file

查看:1205
本文介绍了将Grib转换为netcdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Windows上将grib文件转换为NetCDF格式?
我使用名为tkdegrib的软件,但它会逐个参数地捕获一个参数,而我希望所有grib的参数都在同一文件中. 不幸的是,我不能使用Linux.

Is there a way to convert a grib file into a NetCDF format on Windows?
I use a software named tkdegrib but it catches one argument by one argument whereas I want all my grib's arguments in the same file. Unfortunately, I can't use Linux.

推荐答案

我会使用 Unidata的NetCDF-Java库.

它读取GRIB和GRIB2文件(以及许多其他文件),并且可以写入NetCDF文件.而且由于它是Java,因此您无需构建任何东西,它就可以在所有平台上使用.如果需要GUI,可以使用一个ToolsUI应用程序,但更可能希望使用以下命令从命令行进行操作:

It reads GRIB and GRIB2 files (as well as many others), and can write NetCDF files. And since it's Java, you don't have to build anything, and it works on all platforms. There is a ToolsUI application that you can use if you want a GUI, but more likely you want to do it from the command line using something like this:

 java -Xmx512m -classpath netcdfAll-4.3.jar ucar.nc2.dataset.NetcdfDataset -in infile.grib2 -out outfile.nc

祝你好运!

这篇关于将Grib转换为netcdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆