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!

回答(2 个)

Bjorn Gustavsson
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
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
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
KSSV 2022-4-28
You can download the shape files here: https://gadm.org/download_country.html
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.
You can use this packagae: https://www.eoas.ubc.ca/~rich/map.html

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by