-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support the old style external forcings file
Refs: #369
- Loading branch information
1 parent
fcad1ed
commit cbb80af
Showing
16 changed files
with
1,872 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# External forcings file | ||
The external forcing .ext file contains the forcing data for a [D-Flow FM](glossary.md#d-flow-fm) model. | ||
This includes open boundaries, lateral discharges and meteorological forcings. | ||
The documentation below only concerns the 'old' format (`ExtForceFile` in the MDU file). | ||
|
||
## Model | ||
::: hydrolib.core.dflowfm.extold.models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .models import LocationType | ||
from .models import LocationType, Operand | ||
|
||
__all__ = ["LocationType"] | ||
__all__ = ["LocationType", "Operand"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from .models import ( | ||
ExtOldExtrapolationMethod, | ||
ExtOldFileType, | ||
ExtOldForcing, | ||
ExtOldMethod, | ||
ExtOldModel, | ||
ExtOldQuantity, | ||
ExtOldTracerQuantity, | ||
) | ||
|
||
__all__ = [ | ||
"ExtOldExtrapolationMethod", | ||
"ExtOldForcing", | ||
"ExtOldModel", | ||
"ExtOldQuantity", | ||
"ExtOldFileType", | ||
"ExtOldMethod", | ||
"ExtOldTracerQuantity", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from typing import List | ||
|
||
ORDERED_FORCING_FIELDS: List[str] = [ | ||
"QUANTITY", | ||
"FILENAME", | ||
"VARNAME", | ||
"SOURCEMASK", | ||
"FILETYPE", | ||
"METHOD", | ||
"EXTRAPOLATION_METHOD", | ||
"MAXSEARCHRADIUS", | ||
"OPERAND", | ||
"VALUE", | ||
"FACTOR", | ||
"IFRCTYP", | ||
"AVERAGINGTYPE", | ||
"RELATIVESEARCHCELLSIZE", | ||
"EXTRAPOLTOL", | ||
"PERCENTILEMINMAX", | ||
"AREA", | ||
"NUMMIN", | ||
] | ||
"""List[str]: List of the ordered fields names in a forcing block.""" |
Oops, something went wrong.