cambecc / earth

a project to visualize global weather conditions
http://earth.nullschool.net
MIT License
6.15k stars 1.19k forks source link

Earth with WRF #54

Open barronh opened 7 years ago

barronh commented 7 years ago

I made a script to convert Weather Research and Forecasting data for visualization by your program. Is there a place in the project for such convenience scripts?

Thanks for the great program!

cambecc commented 7 years ago

Nice! For separation of concerns, probably best for you to create a separate repo for your script (or even a gist if simple enough?). If there are any changes to the earth site itself, those would be a merge request into this repo.

ibm-om commented 7 years ago

@barronh please let us know where that repo is, this is an extremely interesting development. Any chance the script might be adapted to add various sources?

barronh commented 7 years ago

Below is a gist that is a runnable script using python3 or python2. Requires numpy and netcdf4 libraries. It is easily adapted to other sources. The only requirements of an input file is NetCDF formatted and that it has latitude, longitude, U and V wind component variables. I updated the script to take the "names" of these variables as options. The options default to WRF surface fields so it looks for XLAT, XLONG, U10 and V10.

I hope it is useful to others!

https://gist.github.com/barronh/1a5c0529543a34ecab3bb5d8990b6603

skysailinger commented 7 years ago

thank u~!

At 2017-01-10 01:26:57, "barronh" notifications@github.com wrote:

Below is a gist that is a runnable script using python3 or python2. Requires numpy and netcdf4 libraries. It is easily adapted to other sources. The only requirements of an input file is NetCDF formatted and that it has latitude, longitude, U and V wind component variables. I updated the script to take the "names" of these variables as options. The options default to WRF surface fields so it looks for XLAT, XLONG, U10 and V10.

I hope it is useful to others!

https://gist.github.com/barronh/1a5c0529543a34ecab3bb5d8990b6603

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.