Plotting meteorological data on Geographic maps

17 views (last 30 days)
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!

Answers (2)

Bjorn Gustavsson
Bjorn Gustavsson on 28 Apr 2022
Edited: Bjorn Gustavsson on 28 Apr 2022
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 Comments
Shai Katz
Shai Katz on 26 Jun 2022
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 on 28 Jun 2022
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

Sign in to comment.


KSSV
KSSV on 28 Apr 2022
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

Community Treasure Hunt

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

Start Hunting!