Skip to content

Commit

Permalink
add Interpolation command options. Let VegetationClass records contai…
Browse files Browse the repository at this point in the history
…n symbolic expressions
  • Loading branch information
huard committed Feb 15, 2024
1 parent 4cce1ef commit abc64c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ravenpy/config/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,9 @@ def __str__(self):

class VegetationClass(Record):
name: str = ""
max_ht: float = 0.0
max_lai: float = 0.0
max_leaf_cond: float = 0.0
max_ht: Sym = 0.0
max_lai: Sym = 0.0
max_leaf_cond: Sym = 0.0

def __str__(self):
template = "{name:<16},{max_ht:>18},{max_lai:>18},{max_leaf_cond:>18}"
Expand Down
2 changes: 1 addition & 1 deletion ravenpy/config/emulators/hbvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@dataclass(config=SymConfig)
class P(Params):
X01: Sym = Variable("X01") #
X01: Sym = Variable("X01")
X02: Sym = Variable("X02")
X03: Sym = Variable("X03")
X04: Sym = Variable("X04")
Expand Down
7 changes: 7 additions & 0 deletions ravenpy/config/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ class Evaporation(Enum):
OUDIN = "PET_OUDIN"


class Interpolation(Enum):
FROM_FILE = "INTERP_FROM_FILE"
AVERAGE_ALL = "INTERP_AVERAGE_ALL"
NEAREST_NEIGHBOR = "INTERP_NEAREST_NEIGHBOR"
INVERSE_DISTANCE = "INTERP_INVERSE_DISTANCE"


class LWRadiationMethod(Enum):
DATA = "LW_RAD_DATA"
DEFAULT = "LW_RAD_DEFAULT"
Expand Down

0 comments on commit abc64c4

Please sign in to comment.