ErmRadiation¶
Computes the net radiation at the centroid of each sub-basin, as the balance of:
the shortwave radiation from the sun: the position of the sun, the slope and aspect of the terrain, the shadows cast by the surrounding terrain and the sky view factor;
the longwave radiation, from a clear sky model driven by the interpolated air temperature.
With daily data, pDailySubSamples sets how many positions of the sun are averaged over the day: 24 is the most accurate, 1 the fastest. downscaleFactor computes the radiation on a coarser DTM, much faster on large basins.
Parameters¶
Fourth step of the ERM/GeoFrame water budget workflow: computes the net radiation at the centroids of the sub-basins, from the shortwave radiation (Corripio, 2003), considering terrain shadows and skyview, and the longwave radiation (Idso, 1981), driven by the interpolated temperatures.
Toolbox folder: GeoFrame
Status: Certified
Keywords: ERM, GeoFrame, Radiation
Authors: Daniele Andreis
Class: org.hortonmachine.hmachine.geoframe.ermworkflow.ErmRadiation
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
raster file |
The digital elevation model used for the data preparation: the basin elevation and skyview rasters are read from its outputs folder. |
||
|
GeoPackage file |
The GeoFrame database, with the interpolated temperatures. |
||
|
String |
Start of the period to compute. Format: yyyy-MM-dd HH:mm, in UTC. |
||
|
String |
End of the period to compute. Format: yyyy-MM-dd HH:mm, in UTC. |
||
|
String |
|
Time resolution of the computation: HOURLY or DAILY. Allowed values: |
|
|
int |
|
Number of sun-position samples used to average net radiation over a day if pTimeResolution is DAILY. 24 (one per hour) is the most accurate but also slowest. In case of 1 it evaluates a single central instant (solar noon). |
|
|
boolean |
|
If true, the radiation values already computed are deleted first. |
|
|
int |
|
Downscale factor for the DTM and skyview rasters. If greater than 1, the rasters will be downscaled by this factor. This helps to speed up the processing and reduce memory usage. Default is 1 (no downscaling). |
References
Corripio, J. G. (2003). Vectorial algebra algorithms for calculating terrain parameters from DEMs and solar radiation modelling in mountainous terrain. International Journal of Geographical Information Science, 17(1), 1-23.
Idso, S. B. (1981). A set of equations for full spectrum and 8- to 14-um and 10.5- to 12.5-um thermal radiation from cloudless skies. Water Resources Research, 17(2), 295-304.
Example¶
import org.hortonmachine.hmachine.geoframe.ermworkflow.ErmRadiation
// the folder containing the input data: change it to yours
var workspace = "/data/COURSE_WATER/"
var er = new ErmRadiation()
er.inDtm = workspace + "dem.tif"
er.inGpkg = workspace + "outputs/geoframe_data.gpkg"
er.pStartTimestamp = "2015-01-01 01:00"
er.pEndTimestamp = "2023-12-31 01:00"
er.pTimeResolution = "DAILY"
er.pDailySubSamples = 1
er.downscaleFactor = 4
er.doOverwrite = true
er.process()