Opened 9 years ago

Closed 8 years ago

Last modified 5 years ago

#142 closed Support (worksforme)

GRIB_API ERROR : gridcheck: Error Key/value not found

Reported by: rbarragan Owned by: pesei
Priority: major Milestone:
Component: FP other Version: FLEXPART 9.0.2
Keywords: gridcheck Cc:

Description

When i run flexpart after configure everything i have the following error: GRIB_API ERROR : gridcheck: Error Key/value not found
. I have checked the scripts bu i don't have found this error line. I don't know what is happening,

Change History (12)

comment:1 Changed 9 years ago by pesei

  • Owner set to pesei
  • Priority changed from blocker to major
  • Status changed from new to accepted
  • Type changed from Defect to Support

What do you mean by after configure?

Your error message seems to be produced by the grib_api, not directly by the FLEXPART code. Please post the full standard output / standard error of FLEXPART.

comment:2 Changed 9 years ago by rbarragan

When i said after configure, i mean after set the parameters in the COMMAND, OUTGRID...files. The complete message after call flexpart is:

ruben@Ubuntu-FlexPart:~/lib/flexpart/FLEXPART$ flexpart

Welcome to FLEXPART Version 9.0
FLEXPART is free software released under the GNU General Public License.
FLEXPART WARNING: TIME DIFFERENCE BETWEEN TWO
WIND FIELDS IS BIG. THIS MAY CAUSE A DEGRADATION
OF SIMULATION QUALITY.

GRIB_API ERROR : gridcheck: Error Key/value not found

comment:3 follow-up: Changed 9 years ago by anphi

Did you compile FLEXPART and the GRIP API with the same compiler (version) ?
This is important. Also, did you put the lib path of the GRIB API into your environmental variable LD_LIBRARY_PATH while executing FLEXPART (and also before compiling FLEXPART) ?

comment:4 in reply to: ↑ 3 Changed 8 years ago by pesei

Replying to anphi:

Did you compile FLEXPART and the GRIP API with the same compiler (version) ?
This is important. Also, did you put the lib path of the GRIB API into your environmental variable LD_LIBRARY_PATH while executing FLEXPART (and also before compiling FLEXPART) ?

Could you please answer these questions, and also which meteorological input you are using (GFS or ECMWF, if ECMWF how prepared?)?

See also tickets #50 and #56

Last edited 8 years ago by pesei (previous) (diff)

comment:5 Changed 8 years ago by pesei

  • Resolution set to worksforme
  • Status changed from accepted to closed

Questions were not answered by reporter since 4 months. So we close this ticket.

comment:6 Changed 5 years ago by nanditha

Im, getting the same error.
I have used the same compiler for compiling flexpart and grib_api. I used both flexpart 9.0.3 and flexpart 9.3.
i'm getting the same error
I'm using ECMWF meteorological inputs of u,v,w, specific humiodity and temperature in grib1 format.
kindly help.

comment:7 Changed 5 years ago by anphi

Hi,

how did you retrieve the ECMWF data? With flex_extract? Or manually?
You need to use flex_extract to correctly prepare the data files for FLEXPART.

Regards,
anphi

comment:8 Changed 5 years ago by nanditha

Hi anphi,

I manually retrieved ECMWF data. I downloaded a single grib file for each time step and named it as per requirements.

Earlier I had tried flex_extract. But since I don't have access to Web MARS, I couldn't execute it.
Do we need web MARS access to run Flex_extract?
And which versions of flex part are compatible with flex_extract?
I am really confused with these questions as I am not able to find an answer in the fproadmap.
I would really appreciate if you could help me with these. I am earnestly trying to run flexpart since last month.
Thanks in advance


comment:9 Changed 5 years ago by anphi

HI,

FLEXPART expects specific naming of the vertical wind, additional 2D fields and the 2D flux fields need to be deaccumulated and disaggregated. Flex_extract does all these things and you have to use it to prepare ECMWF data correctly.

There are two possible access methods: 1. get a member state user account or 2. create a free public user account for the Web access.

Flex_extract is for all FLEXPART versions.

So, if you live in a member state country, then get a member state user account through your computing representative. Otherwise create a public account which limits you to retrieval of CERA-20c or ERA-Interim data sets.

comment:10 Changed 5 years ago by nanditha

Hi Anphi,

Thank you so much for the reply. I'm not a member state user. I have public access to ECMWF API. However, even using the control file, CONTROL_CERA.public gives me API MARS Exception error.

I tried with all sample control files available in the flex_extractv7 folder. I get the same API exception error all the time even though I am able to download data directly from ECMWF using Web access.
I use the following code for retrieval

./submit.py --start_date 19990909 --end_date 19990910 --controlfile CONTROL_CERA.public

EXECUTE RETRIEVAL!
2019-10-31 10:41:42 ECMWF API python library 1.5.4
2019-10-31 10:41:42 ECMWF API at https://api.ecmwf.int/v1
2019-10-31 10:41:43 Welcome nanditha js
Error: <class 'ecmwfapi.api.APIException'>
MARS Request failed
Traceback (most recent call last):

File "./submit.py", line 114, in <module>

main()

File "./submit.py", line 59, in main

getMARSdata(args,c)

File "/home/nanditha/lib/src/flexpart_9.0.3/flex_extract_v7.0.3/python/getMARSdata.py", line 116, in getMARSdata

flexpart.retrieve(server, c.public, dates, times, c.inputdir)

File "/home/nanditha/lib/src/flexpart_9.0.3/flex_extract_v7.0.3/python/FlexpartTools.py", line 979, in retrieve

MR.dataRetrieve()

File "/home/nanditha/lib/src/flexpart_9.0.3/flex_extract_v7.0.3/python/FlexpartTools.py", line 680, in dataRetrieve

if not int(self.public) and os.stat(target).st_size==0:

OSError: [Errno 2] No such file or directory: '/home/nanditha/lib/src/flexpart_9.0.3/flex_extract_v7.0.3/python/../work/FCOG_acc_SL.19990908.3630.5176.grb'

In fact , I had already raised a ticket in this regard.
It would be great if you could help me
Thanks in advance


comment:11 Changed 5 years ago by anphi

ok, I see. Your command is not complete!

Try:
./submit.py --start_date 19990909 --end_date 19990910 --controlfile CONTROL_CERA.public --public=1

The --public=1 is needed to use the public access.

Regards

comment:12 Changed 5 years ago by nanditha

Thanks a lot. It worked in running flex_extract.

Note: See TracTickets for help on using tickets.
hosted by ZAMG