Plotting meteorological data on Geographic maps

6 visualizaciones (últimos 30 días)
Shai Katz
Shai Katz el 28 de Abr. de 2022
Comentada: Bjorn Gustavsson el 28 de Jun. de 2022
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!

Respuestas (2)

Bjorn Gustavsson
Bjorn Gustavsson el 28 de Abr. de 2022
Editada: Bjorn Gustavsson el 28 de Abr. de 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 comentarios
Shai Katz
Shai Katz el 26 de Jun. de 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 el 28 de Jun. de 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

Iniciar sesión para comentar.


KSSV
KSSV el 28 de Abr. de 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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by