DEM: Shaded relief image plot (digital elevation model)
This function plots regular grids of elevation X,Y,Z in a more efficient manner than SURFL Matlab's function, because it recomputes lighting and displays result as shaded color flat RGB image. It uses also median-style filter to deal with min/max values of elevations and gradient, and proposes two specific colormaps "landcolor" and "seacolor".
Color mapping and lighting parameters can be changed from default values. In addition, several options are available: 'cartesian' to add decimal axis, 'latlon' to add geographical axis (GMT-like), 'legend' for an automatic scaling legend, 'lake' for automatic flat area color-filling and 'interp' to fill the novalue gaps...
This may be useful to produce high-quality and moderate-size Postscript image adapted for publication. Also, the output image is not dependant on current figure colormap, thus additional plots with indexed colors can be added (contour, pcolor, ...).
Figure examples:
Moon North Pole using the bone colormap and high contrast lighting (DEM source: raster LRO/LOLA LTVT)
Indonesia archipelago using default colormaps, 'latlon' axis basemap and legend scales (DEM source: raster NOAA/NGDC ETOPO1)
Soufrière of Guadeloupe volcano lava dome: 1-m resolution with NaN values (DEM source: OVSG-IPGP/SCIAC)
See "doc dem" for syntax, examples and help. See also the READHGT function from same author.
Cita come
François Beauducel (2024). DEM: Shaded relief image plot (digital elevation model) (https://www.mathworks.com/matlabcentral/fileexchange/36380-dem-shaded-relief-image-plot-digital-elevation-model), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Sciences > Geoscience > Oceanography and Hydrology >
- Sciences > Geoscience > Seismology >
- Sciences > Geoscience > Geodesy and Mapping >
Tag
Riconoscimenti
Ispirato: shadem
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
2.6.0.0 | - improves the colormap splitting between land and sea
|
||
2.2.0.0 | - new option 'position' for tick labels
|
||
2.1.0.0 | minor fix |
||
2.0.0.0 | legend scale is now liberated from the figure colormap (thanks to Tomke Froechtenich's comment). No use of freezecolors needed to add other colormap plots. |
||
1.10.0.0 | improve backward compatibility (strjoijn) |
||
1.9.0.0 | - new options: 'km', 'watermark', 'fontsize', 'bordersize'
|
||
1.8.0.0 | - improved light rendering (using surface normals instead of gradient)
|
||
1.7.0.0 | - adds 'interp' option (fill the gaps)
|
||
1.6.0.0 | - adds a 'lake' option
|
||
1.5.0.0 | now accepts row/column vectors for X and/or Y. |
||
1.4.0.0 | - adds basemap-style axis in decimal or lat/lon modes
|
||
1.3.0.0 | - new landcolor.m colormap function
|
||
1.2.0.0 | ZIP now contains landcolor.dat companion file. |
||
1.1.0.0 | Optimizations: adds a decimation for large DEM grids. |
||
1.0.0.0 |