필터 지우기
필터 지우기

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

조회 수: 11 (최근 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'

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 CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by