Page 3 of 4

Re: Grib editor

Posted: Thu Jun 07, 2018 8:35 pm
by meteoadriatic
Hello,

Use my binary:
http://gamma.meteoadriatic.net/tmp/cnvgrib

Let me know if it works.

Re: Grib editor

Posted: Fri Jun 08, 2018 5:43 pm
by Joseph79
Hello, you'are a great Man..

Thanks a lot..
I downloaded your file, but ( I'm sorry for the trivial question..)
How should I manage this file ?
Let me know.

Thanks a lot.

Re: Grib editor

Posted: Fri Jun 08, 2018 9:27 pm
by meteoadriatic
1) Make it executable:

Code: Select all

chmod +x cnvgrib
2) run it with --help option to see how to use it:
(from directory where it is:)

Code: Select all

./cnvgrib --help
3) run it for something useful:

Code: Select all

./cnvgrib -g12 yourgrib1inputfile yourgrib2outputfile
Let me know if it works.

Re: Grib editor

Posted: Sat Jun 09, 2018 4:56 am
by Joseph79
Hi,
thanks you very much for your patience, you're a big help to me..
I tried your binary as you indicated me..
the following error occurs whene executing cnvgrib with option -g12:

ERROR READING/UNPACKING GRIB1 V= 12

The output file is created but including just the MSLP data instead of WIND, GUST etc..

I'd send you my input grib file but I think that here it cannot be possible..
Thanks..

Re: Grib editor

Posted: Sat Jun 09, 2018 8:30 am
by meteoadriatic
Does wgrib work on that file?

eg.

Code: Select all

wgrib yourproblematicgrib1file
?

Re: Grib editor

Posted: Sat Jun 09, 2018 11:05 am
by Joseph79
Hi, Thanks again..

wgrib works well on the input Grib1 file..

I tried your binary also with the following grib1 file:

http://openskiron.org/gribs_wrf_12km/It ... 00.grb.bz2

In this case the error was the following

ERROR READING/UNPACKING GRIB1 V= 16

Thanks a lot

Re: Grib editor

Posted: Sat Jun 09, 2018 11:20 am
by meteoadriatic
Hello

This one works here

Code: Select all

cnvgrib -nv -g12 Italy_12km_WRF_WAM_180609-00.grb test.grib2
So try adding -nv option for your file.

Re: Grib editor

Posted: Sat Jun 09, 2018 1:23 pm
by Joseph79
:D
Hi, thank you very much..
now everything works perfectly (with the option - nv)

You're the Best..

I don't know how to thank you for all the help you given me....

You solved a big problem for me thanks you very much again ..

Keep In touch..
Have you a nice day.

Re: Grib editor

Posted: Sat Jun 09, 2018 3:40 pm
by meteoadriatic
I'm glad that I was able to help!

Cheers!

Re: Grib editor

Posted: Sat Jun 23, 2018 9:25 am
by Joseph79
Hi..
Sorry again.. I have a problem... I'm trying to ask you some help..
I have a Grib2 file, Id like to change the date of the grib file,

I'm using the following Wgrib2 option:

wgrib2 filename1.grb -set_date X -grib_out filename2.grb

The date of the file filename2.grb is correctely X but while the filename1 contains current data, the new file filename2.grb does not include current( ktn and direction)
data.

I'd like to have on the new grib file the same data (including current) of the original grib file..

Can you suggest me any solution..

Thanks in advance..