Geotiffwrite is ploting the map upside down! (latitude only)

10 ビュー (過去 30 日間)
André Gadêlha
André Gadêlha 2018 年 2 月 25 日
コメント済み: vineetha vincent 2023 年 5 月 10 日
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 件のコメント
Les Beckham
Les Beckham 2018 年 2 月 25 日
Perhaps the latitude values are positive? For Brazil (in the southern hemisphere) they should be negative.

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2018 年 2 月 25 日
Try this:
plot(.......... % or whatever you do
% Get the axes object.
ax = gca
% Flip the y axis direction.
ax.YDir = 'reverse'
  1 件のコメント
Fikret Dogru
Fikret Dogru 2019 年 2 月 13 日
flipud(data) before export may help you

サインインしてコメントする。


Ana Tobon
Ana Tobon 2022 年 12 月 20 日
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!

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by