Geotiffwrite is ploting the map upside down! (latitude only)
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a brazilian map in matlab (to study precipitation). When I try to convert the metrics results to geotiff (to plot in ArcGis), it is going upside down (i mean, the lattitude is inverted, but the longitude is ok).
Why is this happening? What Can I do?
1 commentaire
Les Beckham
le 25 Fév 2018
Perhaps the latitude values are positive? For Brazil (in the southern hemisphere) they should be negative.
Réponses (2)
Image Analyst
le 25 Fév 2018
Try this:
plot(.......... % or whatever you do
% Get the axes object.
ax = gca
% Flip the y axis direction.
ax.YDir = 'reverse'
1 commentaire
Ana Tobon
le 20 Déc 2022
It may be late for the person who originally asked this question, but I will leave an answer here in case someone is struggling with the same issue. I had the same problem for a dataset of South America, which includes both positive and negative latitudes. The problem was the way I was defining the spatial reference R, with georasterref. I went to the documentation and found that it was not recommended, instead, there is georefcells. It works in a similar way BUT it allows to set if the columns should start north or south. This solved the problem!
1 commentaire
vineetha vincent
le 10 Mai 2023
I also faced the same issue . https://fr.mathworks.com/help/map/ref/georefcells.html this solved peoblem.
Voir également
Catégories
En savoir plus sur Map Display dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!