From: paul.stoy on 31 Mar 2010 18:30 Hi. The Mapping Toolbox examples show a nice way to mask out land (below). How do I mask out the ocean instead? Thanks. load geoid % Create a figure with an Eckert projection. figure axesm eckert4; framem; gridm; axis off % Display the geoid as a texture map. geoshow(geoid, geoidrefvec, 'DisplayType', 'texturemap'); % Create a colorbar and title. hcb = colorbar('horiz'); set(get(hcb,'Xlabel'),'String','EGM96 Geoid Heights in Meters.') % Mask out all the land. geoshow('landareas.shp', 'FaceColor', 'black');
From: Rob Comer on 1 Apr 2010 22:20 You can mask out the world's land areas by reversing the direction of the vertices in a pair of global coastline latitude-longitude vectors like the ones in coast.mat (so that instead of having land on the right hand side of each curve and water on the left, it will be the other way around) -- like this: >> load coast >> geoshow(flipud(lat),flipud(long),'DisplayType','polygon','FaceColor','black') Rob Comer Mapping Toolbox Development The MathWorks, Inc.
|
Pages: 1 Prev: Line Intersection given Column Vectors - HELP! Next: Simhydraulics ( |