Saturday, February 1, 2014

Plot the spatial grid on map in matlab

We will need the latgrid and longitude grid with equal size to that of the variable, say newT
figure
 latlim = [37,45 ]; lonlim = [-82 ,-70];
 ax = worldmap(latlim, lonlim);
 states = shaperead('usastatehi','UseGeoCoords', true, 'BoundingBox', [lonlim', latlim']);
geoshow(ax, states, 'Facecolor', [1 1 0.9]);
 surfacem(latgrid,longrid,newT);

No comments: