How to extract specific information from GRIB files?

المشرف العام

Administrator
طاقم الإدارة
How to extract fetched GRIB data with Python and gribapi package? I tried to follow few examples from their "documentation" and do it myself, but I just cannot figure out how to retrieve only specific parameter (e.g. surface temperature or wind) for given latitude and longitude. I don't need to plot the data or visualizations, I just need to pass few parameters when reading the file and get numbers back.

So far, I tried to download this file and run few scripts from this page. Since Python API documentation doesn't exist, I have some hard time to understand which methods should I use in order to:


  • read the file,
  • select only specific "message" (e.g. surface temperature only) if there's more "messages" in a file,
  • print out the value for a specific location (using grib_find_nearest method).


أكثر...
 
أعلى