plot geo data using lat and lon as pixel centers

3 visualizaciones (últimos 30 días)
Johan
Johan el 11 de Jun. de 2014
Respondida: Sara el 11 de Jun. de 2014
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 comentarios
lvn
lvn el 11 de Jun. de 2014
What is the shape of the 'real' pixel (circular/rectangular/..?).
Johan
Johan el 11 de Jun. de 2014
it's a parallelogram, but a rectangle would be a sufficient approximation

Iniciar sesión para comentar.

Respuestas (1)

Sara
Sara el 11 de Jun. de 2014
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;

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by