plot geo data using lat and lon as pixel centers

Is it possible to plot data on a map where each lat-lon pair represents a pixel center? For example if I have three equally sized matrices with lat, lon and actual data. I've tried several plot commands but all of them seems to use each lat-lon pair as the location of a pixel corner. I want each plotted pixel to represent the real one in size and shape, so for example scatterm would not work.

댓글 수: 2

lvn
lvn 2014년 6월 11일
What is the shape of the 'real' pixel (circular/rectangular/..?).
Johan
Johan 2014년 6월 11일
it's a parallelogram, but a rectangle would be a sufficient approximation

댓글을 달려면 로그인하십시오.

답변 (1개)

Sara
Sara 2014년 6월 11일

0 개 추천

Offset them by half the dimension of each cell in the grid. If lat is your array, then do
d = diff(lat)/2;
d(end+1) = d(end);
lat = lat - d;

카테고리

질문:

2014년 6월 11일

답변:

2014년 6월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by