I have a grib2 file with wind data at multiple taus as shown below: 3:485167:d=2017030112:UGRD:10 m above ground:3 hour fcst: 8:1652471:d=2017030112:UGRD:10 m above ground:6 hour fcst: 13:2704909:d=2017030112:UGRD:10 m above ground:9 hour fcst: 18:3865964:d=2017030112:UGRD:10 m above ground:12 hour fcst: 23:5030535:d=2017030112:UGRD:10 m above ground:15 hour fcst: 28:6089549:d=2017030112:UGRD:10 m above ground:18 hour fcst: 33:7148742:d=2017030112:UGRD:10 m above ground:21 hour fcst: 38:8216961:d=2017030112:UGRD:10 m above ground:24 hour fcst: 43:9390488:d=2017030112:UGRD:10 m above ground:27 hour fcst:
Now what I would like to do is plot these wind values at the different taus in a time series. I have tried to work with the following code: grbs=pygrib.open(grib) uwind = grbs.select(name='10 metre U wind component') uwnddata=uwind.values however I am not able to from this code get a list of the uwind values over the period of time from 3 to 27 hours at 3 hour intervals. How can I tweak the code to get this desired result? _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor