GRIB2 to ARL with Eccodes

General questions and postings pertaining to the use of HYSPLIT regardless of the platform. For platform specific questions, use the HYSPLIT Platform forums.
Post Reply
Fabio.Dioguardi
Posts: 10
Joined: August 17th, 2018, 12:36 pm
Registered HYSPLIT User: Yes

GRIB2 to ARL with Eccodes

Post by Fabio.Dioguardi » March 25th, 2019, 7:25 pm

Hi,

is it possible to convert GRIB2 files to ARL using Eccodes instead of grib-api?
I would like to use the GFS 0.25 degrees 1-hourly data. I am aware of this: ftp://arlftp.arlhq.noaa.gov/archives/gfs0p25/. However, I think this is 3-hourly and refers to the 00z run only, unless I am wrong.

Thanks
Regards
Fabio

barbara.stunder
Posts: 293
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: GRIB2 to ARL with Eccodes

Post by barbara.stunder » April 1st, 2019, 8:43 am

Yes, hysplit was changed with repository version 911 to use ecCodes.

The GFS 0.25 is 3-hourly. It contains the 0 and 3-hour forecasts from each cycle: 00z, 06z, 12z, and 18z, unless any of the cycles are missing, and then it contains only 00z cycle output. With the next HYSPLIT upgrade at NCEP, possibly in Summer 2019, the 3-hourly GFS 0.25 files will be created operationally, and so there should be nearly no missing cycles.

Fabio.Dioguardi
Posts: 10
Joined: August 17th, 2018, 12:36 pm
Registered HYSPLIT User: Yes

Re: GRIB2 to ARL with Eccodes

Post by Fabio.Dioguardi » April 3rd, 2019, 6:03 am

Hi,

thank you for your reply.
Where can I find instructions for converting GRIB2 files to ARL using eccodes?

Thanks
Fabio

alicec
Posts: 112
Joined: February 8th, 2016, 12:56 pm
Registered HYSPLIT User: Yes

Re: GRIB2 to ARL with Eccodes

Post by alicec » April 8th, 2019, 9:36 am

The new version of api2arl uses eccodes. However the functionality of api2arl has not changed.
The only difference is that it is compiled to use the eccodes libraries rather than the grib-api libraries.

Fabio.Dioguardi
Posts: 10
Joined: August 17th, 2018, 12:36 pm
Registered HYSPLIT User: Yes

Re: GRIB2 to ARL with Eccodes

Post by Fabio.Dioguardi » April 15th, 2019, 5:05 am

Hi,

I am using the Linux version, which does not seem to have a pre-compiled api2arl. So I am trying to compile using "Makefile" in the folder /hysplit_ubuntu/data2arl/api2arl. I have amended the "top_builddir" variable in the Makefile script so to link my local installation of eccodes. However, when running make, I receive this error message:

[vulcanomod@bgskwcluster1 api2arl]$ make
gfortran -I/home/vulcanomod/eccodes/include -g -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form -c -o api2arl_v4.o api2arl_v4.f
f951: Fatal Error: Reading module ‘eccodes’ at line 1 column 2: Unexpected EOF
compilation terminated.
make: *** [api2arl_v4.o] Error 1


Not sure what it is...

Thanks
Fabio

Post Reply