You might find it easier for your to handle data in a CSV file rather than in a GRIB file. This how-to shows you how to do that using ECMWF's ecCodes. You are expected to have it installed on a Linux machine before you continue. You are also recommended to add ecCodes' "bin" directory to your PATH.
Say I want to extract lat, lon, 2t (2m temperature) at time = 12:00 from the GRIB file. Run "grib_get_data -w time=1200 t2m_20000801.grib > t2m_20000801.csv" and you will get a file containing data like below:
Latitude, Longitude, Value 90.000 0.000 2.7346786499e+02 90.000 0.250 2.7346786499e+02 90.000 0.500 2.7346786499e+02 90.000 0.750 2.7346786499e+02 ... |
If you have CDS API and ecCodes (with its Python interface) installed, you can do the above by writing up a Python script. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|