Plotting meteorological data on Geographic maps
8 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I would like to plot my wind field data on geograpic map.
I can use the quiver function, however - it just plots it as a 2D without topography, borders, cities etc - just blank.
How can I do it with geobasemap, (for instance)?
My u, v, lat, long are all vectors and a type of double.
I will appiricate your help!
0 个评论
回答(2 个)
Bjorn Gustavsson
2022-4-28
编辑:Bjorn Gustavsson
2022-4-28
If you don't have access to the mapping toolbox you might find good use of the m_map toolbox: m_map. It have helped me make plots like the one you describe. If you have access to the mapping toolbox you should have the quiverm-function that should plot quiver-arrows ontop of different maps, check the documentation of quiverm for an example.
HTH
2 个评论
Shai Katz
2022-6-26
Thank you Bjorn,
I tried to use quiverm and from some reason the wind difrections on the map are with wrong - if you don't mind I can post here the script and the data?
In addition, I tried also to use quiver and plot it on a map (using 'hold on' from geobasemap - and I got the error:
'Adding Cartesian plot to geoaxes is not supported'
So, I used the 'local2latlon' function, and I get the same error because I also need to caculate u and v again but from geograpichal coordinates - how can I solve this? other way? It's just basemaps are great maps.
Thanks!
Bjorn Gustavsson
2022-6-28
Sure post away. I cannot guarantee a solution. A couple of things first: Have you just goofed with the order of the inputs, for example mixed the order of dlat and dlong? I've never bothered thingking about how to scale for example wind-vectors to a large map-projection, have you though about those issues with regards to the conversion from cartesian wind-vectors to dlat and dlong and how the map-projection changes the look of things? Have you checked how this is done by others? For example you might have some use for checking how it is done in this FEX-submission: climate-data-toolbox-for-matlab
KSSV
2022-4-28
To read shape files, use shaperead.
You can plot bathymetry using pcolor.
You can plot on an image you want using image and then hold on.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!