Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

A Matlab Based Topographic Shading Model

Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI ( for information on this resource.
Type: Resource
Storage: The size of this resource is 544.1 MB
Created: Oct 28, 2020 at 4:17 a.m.
Last updated: Nov 24, 2020 at 8:06 p.m.
Citation: See how to cite this resource
Content types: Geographic Raster Content 
Sharing Status: Public
Views: 946
Downloads: 48
+1 Votes: Be the first one to 
Comments: No comments (yet)


This resource provides MATLAB scripts and functions to compute topographic shading along a river centerline. This model was applied to the Colorado River in Grand Canyon in order to provide spatiotemporal shading in the dynamic river temperature model described in "Water temperature controls for regulated canyon-bound rivers" (doi: 10.1029/2020WR027566).

Subject Keywords



Coordinate System/Geographic Projection:
WGS 84 EPSG:4326
Coordinate Units:
Decimal degrees
North Latitude
East Longitude
South Latitude
West Longitude



This folder contains Matlab functions and output data used for determining dynamic shading in Grand Canyon

Folder: SolarRadiationModule
-- Matlab functions used for calculating elevation angles and shade timing.
    -- Functions are generic and can be used with any set of latitutude and longitude coordinates 
    and a digital elevation model (DEM) 
-- See Example folder for application in Glen Canyon 
-- See comments in code for additional details

Folder: GlenCanyon_to_Diamond
-- Project forlder used for determining shade timing in Grand Canyon
    -- Contains a Matlab script for determining elevation angles and shade times (GlenCanyon_2_DiamondCreek_incidence_withDiffuse.m)
    -- contains a second script for partitioning shortwave radiation into individual components and determining the radiation scaling
        factors used in the time series provider of HydroCouple (GlenCanyon_2_Diamond_write_individual_shortwave_erbs.m)
    -- Output data are stored in .csv and .mat file types 
    -- See comments in code for additional details

Note: Additional Matlab toolboxes are used to run this model. 
MOD-WET Matlab toolbox: (used for solar geometry calculations)
GeographicLib toolbox: (used for converting Lat/Lon coordinates to UTM coordinates)

Data Services

The following web services are available for data contained in this resource. Geospatial Feature and Raster data are made available via Open Geospatial Consortium Web Services. The provided links can be copied and pasted into GIS software to access these data. Multidimensional NetCDF data are made available via a THREDDS Data Server using remote data access protocols such as OPeNDAP. Other data services may be made available in the future to support additional data types.

Related Resources

This resource belongs to the following collections:
Title Owners Sharing Status My Permission
Dynamic River Temperature Modeling in the Colorado River Basin: Data Collection and Supporting Models Bryce Mihalevich  Public &  Shareable Open Access

How to Cite

Mihalevich, B. A. (2020). A Matlab Based Topographic Shading Model, HydroShare,

This resource is shared under the Creative Commons Attribution CC BY.


There are currently no comments

New Comment