Plotting meteorological data on Geographic maps
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Bjorn Gustavsson
am 28 Apr. 2022
Bearbeitet: Bjorn Gustavsson
am 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 Kommentare
Shai Katz
am 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
am 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
KSSV
am 28 Apr. 2022
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 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!