overlay geotiffs with transparency using different colormaps
Ältere Kommentare anzeigen
If I have one geotiff plotted (using geoshow) in color how do I overlay another geotiff in black and white and make it partially tranparent?
Akzeptierte Antwort
Weitere Antworten (1)
Bruno Pop-Stefanov
am 23 Okt. 2014
Bearbeitet: Bruno Pop-Stefanov
am 23 Okt. 2014
Calling geoshow a second time will overlay over what was previously displated. Use the 'FaceAlpha' property when calling geoshow for the second time to set the transparency.
For example, using the Display EGM96 Geoid Heights Masking Out Land Areas example in the doc page for geoshow:
% Load geoid and display
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('southoutside');
set(get(hcb,'Xlabel'),'String','EGM96 Geoid Heights in Meters.')
% Add the land in black with 30% transparency
geoshow('landareas.shp', 'FaceAlpha', 0.3, 'FaceColor','black');

Kategorien
Mehr zu Geographic Coordinate Reference Systems finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!