Jump to content
Snow?
Local
Radar
Cold?
IGNORED

Extracting a dataset from GFS GRIB


Recommended Posts

Posted
  • Location: London
  • Location: London

Hallo,

 

Is there any guidance on how one should go about extracting wind velocity vectors from an upper air dataset contained in an historical GFS GRIB over a given region? I have access to a copy of Matlab and should prefer if the raw data could be output to an Excel file if it's possible.

 

Would appreciate any tips.

 

Thanks.

 

Weirp

Link to comment
Share on other sites

  • 4 weeks later...
Posted
  • Location: Pendlebury, Salford
  • Location: Pendlebury, Salford

The Wind dataset in a GRIB file should be stored as 'U' and 'V' components.

 

Extracting the Speed is then SQR(U^2 + V^2)

 

Extracting the Direction a bit more complex:

 

(180 / PI) * ATN( U / V)

 

But then adjust the angle relative to North as follows:

 

If V > 0 Add 180

if U>0 and V<0 Add 360

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • European State of the Climate 2023 - Widespread flooding and severe heatwaves

    The annual ESOTC is a key evidence report about European climate and past weather. High temperatures, heatwaves, wildfires, torrential rain and flooding, data and insight from 2023, Read more here

    Jo Farrow
    Jo Farrow
    Latest weather updates from Netweather

    Chilly with an increasing risk of frost

    Once Monday's band of rain fades, the next few days will be drier. However, it will feel cool, even cold, in the breeze or under gloomy skies, with an increasing risk of frost. Read the full update here

    Netweather forecasts
    Netweather forecasts
    Latest weather updates from Netweather

    Dubai Floods: Another Warning Sign for Desert Regions?

    The flooding in the Middle East desert city of Dubai earlier in the week followed record-breaking rainfall. It doesn't rain very often here like other desert areas, but like the deadly floods in Libya last year showed, these rain events are likely becoming more extreme due to global warming. View the full blog here

    Nick F
    Nick F
    Latest weather updates from Netweather 2
×
×
  • Create New...