consolidate
This commit is contained in:
7
coco.py
7
coco.py
@@ -81,6 +81,10 @@ def create_dict(precipitation,snowfall,snowdepth,maxt,mint):
|
||||
case "T":
|
||||
snowfall = 0.0
|
||||
snowfalltrace = True
|
||||
case "0.0001":
|
||||
snowfall = 0.0
|
||||
snowfalltrace = True
|
||||
|
||||
case _:
|
||||
snowfall = round(float(snowfall),1)
|
||||
snowfalltrace = False
|
||||
@@ -92,6 +96,9 @@ def create_dict(precipitation,snowfall,snowdepth,maxt,mint):
|
||||
case "T":
|
||||
snowdepth = 0.0
|
||||
snowdepthtrace = True
|
||||
case "0.0001":
|
||||
snowdepth = 0.0
|
||||
snowdepthtrace = True
|
||||
case _:
|
||||
snowdepth = round(float(snowdepth),1)
|
||||
snowdepthtrace = False
|
||||
|
||||
Reference in New Issue
Block a user