Commit d6c951d2 authored by Le Roux Erwan's avatar Le Roux Erwan
Browse files

[POSTER] modify units

parent 336c9095
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
......@@ -12,7 +12,7 @@ class CrocusVariable(AbstractVariable):
class CrocusSweVariable(CrocusVariable):
NAME = 'Snow Water Equivalent'
UNIT = 'kg per square meter'
UNIT = 'kg $m^{-2}$'
@classmethod
def keyword(cls):
......
......@@ -22,12 +22,14 @@ class SafranSnowfallVariable(AbstractVariable):
"""
NAME = 'Snowfall'
UNIT = 'mm'
UNIT = 'kg $m^{-2}$'
# this could have been mm w.e (mm in water equivalent)
@classmethod
def keyword(cls):
return 'Snowf'
def __init__(self, variable_array, nb_consecutive_days=3):
super().__init__(variable_array)
self.nb_consecutive_days_of_snowfall = nb_consecutive_days
......@@ -67,7 +69,6 @@ class SafranSnowfallVariable(AbstractVariable):
class SafranRainfallVariable(SafranSnowfallVariable):
NAME = 'Rainfall'
UNIT = 'kg per m2 or mm'
@classmethod
def keyword(cls):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment