Skip to content

Commit

Permalink
align variable name with other modules that use identical data
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdebruijn committed Nov 20, 2024
1 parent 2405480 commit 0e95fa8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions geb/hydrology/snow_frost.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SnowFrost(object):
Rain Precipitation less snow m
SnowMelt total snow melt from all layers m
SnowCover snow cover (sum over all layers) m
ElevationStD
elevation_std
Precipitation Precipitation (input for the model) m
DtDay seconds in a timestep (default=86400) s
numberSnowLayersFloa
Expand Down Expand Up @@ -79,7 +79,7 @@ class SnowFrost(object):
**Functions**
"""

def __init__(self, model, ElevationStD):
def __init__(self, model, elevation_std):
"""
Initial part of the snow and frost module
Expand All @@ -96,7 +96,6 @@ def __init__(self, model, ElevationStD):

# Difference between (average) air temperature at average elevation of
# pixel and centers of upper- and lower elevation zones [deg C]
# ElevationStD: Standard Deviation of the DEM
# 0.9674: Quantile of the normal distribution: u(0,833)=0.9674 to split the pixel in 3 equal parts.
# for different number of layers
# Number: 2 ,3, 4, 5, 6, 7, ,8, 9, 10
Expand Down Expand Up @@ -150,7 +149,7 @@ def __init__(self, model, ElevationStD):
self.var.deltaInvNorm = dn[self.numberSnowLayers]

TemperatureLapseRate = 0.0065
self.var.DeltaTSnow = ElevationStD * TemperatureLapseRate
self.var.DeltaTSnow = elevation_std * TemperatureLapseRate

self.var.SnowDayDegrees = 0.9856
# day of the year to degrees: 360/365.25 = 0.9856
Expand Down

0 comments on commit 0e95fa8

Please sign in to comment.