Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#369: Support the old style external forcings file #471

Merged
merged 232 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
4f1937d
#369: Add initial setup ExtForcing
priscavdsluis Mar 17, 2023
4976309
autoformat: isort & black
priscavdsluis Mar 17, 2023
793d570
#369: Add FileType to use for the ExtForcing.filetype attribute
priscavdsluis Mar 17, 2023
fd65a38
#369: Add Method enum to use for the ExtForcing.method attribute
priscavdsluis Mar 17, 2023
7a28e5d
#369: Add Operand enum to use for the ExtForcing.operand attribute
priscavdsluis Mar 17, 2023
f37231c
autoformat: isort & black
priscavdsluis Mar 17, 2023
c197862
#369: Add extra keywords and fix aliases
priscavdsluis Mar 17, 2023
947b024
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Mar 17, 2023
db4344c
autoformat: isort & black
priscavdsluis Mar 17, 2023
7c2cf0b
#369: Add the external forcings for the boundary conditions category.
priscavdsluis Mar 17, 2023
8436d76
autoformat: isort & black
priscavdsluis Mar 17, 2023
f04492a
#369: Change enums to upper camel case
priscavdsluis Mar 17, 2023
1caa607
#369: Add the external forcings for the meteo category.
priscavdsluis Mar 17, 2023
87ea229
autoformat: isort & black
priscavdsluis Mar 17, 2023
6ea2635
#369: Add the external forcings for the structure category.
priscavdsluis Mar 17, 2023
494f98c
#369: Add the external forcings for the initial fields category.
priscavdsluis Mar 17, 2023
2b81ac8
autoformat: isort & black
priscavdsluis Mar 17, 2023
2ea89cc
#369: Add the external forcings for the spatially varying properties …
priscavdsluis Mar 17, 2023
4116553
#369: Add the external forcings for the miscellaneous category.
priscavdsluis Mar 17, 2023
02b5bcc
autoformat: isort & black
priscavdsluis Mar 17, 2023
c9ef619
#369: Move all categories into one
priscavdsluis Mar 17, 2023
7d365d8
autoformat: isort & black
priscavdsluis Mar 17, 2023
6cc3178
#369: Add more quantities that are not listed in manual
priscavdsluis Mar 17, 2023
cb63f5b
#369: Use the quantity class
priscavdsluis Mar 17, 2023
31c802b
#369: Use correct import
priscavdsluis Mar 17, 2023
2723d4a
autoformat: isort & black
priscavdsluis Mar 17, 2023
38c6172
#369: Update quantity validation and add tests
priscavdsluis Mar 17, 2023
5907f55
#369: Update test names
priscavdsluis Mar 17, 2023
d70dd39
autoformat: isort & black
priscavdsluis Mar 17, 2023
de372d2
#369: Make quantity validation case-insensitive
priscavdsluis Mar 20, 2023
f8a7d76
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 20, 2023
f833374
autoformat: isort & black
priscavdsluis Mar 20, 2023
5c7160d
#369: Update error and test name
priscavdsluis Mar 20, 2023
189b68a
autoformat: isort & black
priscavdsluis Mar 20, 2023
b43803c
#369: Add operand validation and add tests
priscavdsluis Mar 20, 2023
238273e
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 20, 2023
fde1fe1
autoformat: isort & black
priscavdsluis Mar 20, 2023
6f40eef
#369: Update test names
priscavdsluis Mar 20, 2023
87c89c3
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 20, 2023
8af5986
autoformat: isort & black
priscavdsluis Mar 20, 2023
fdb0794
#369: Add validation for varname
priscavdsluis Mar 20, 2023
15aeb91
autoformat: isort & black
priscavdsluis Mar 20, 2023
f476dca
#369: Add validation for sourcemask
priscavdsluis Mar 20, 2023
38bfdf8
#369: Fix check
priscavdsluis Mar 20, 2023
20e4d18
autoformat: isort & black
priscavdsluis Mar 20, 2023
23e807f
#369: Add validation for value
priscavdsluis Mar 20, 2023
a8675e3
autoformat: isort & black
priscavdsluis Mar 20, 2023
d6249bd
#369: Add validation for factor
priscavdsluis Mar 20, 2023
a34c206
#369: Update docs
priscavdsluis Mar 20, 2023
15f6463
#369: Add skip on failure argument to root validator
priscavdsluis Mar 20, 2023
9e7f9d6
autoformat: isort & black
priscavdsluis Mar 20, 2023
dd3ef69
#369: Add validation for ifrctyp
priscavdsluis Mar 20, 2023
e290626
autoformat: isort & black
priscavdsluis Mar 20, 2023
8c98f50
#369: Add missing method
priscavdsluis Mar 20, 2023
6637883
#369: Add validation for averagingtype
priscavdsluis Mar 20, 2023
ebdf758
autoformat: isort & black
priscavdsluis Mar 20, 2023
20edf0f
#369: Use alias instead of static string
priscavdsluis Mar 20, 2023
fe6d9cc
autoformat: isort & black
priscavdsluis Mar 20, 2023
195632a
#369: Merge if statements
priscavdsluis Mar 20, 2023
5713d5f
autoformat: isort & black
priscavdsluis Mar 20, 2023
ea10e0b
#369: Update errors
priscavdsluis Mar 20, 2023
b649f1e
#369: Add validation for relativesearchcellsize
priscavdsluis Mar 20, 2023
d734ce0
#369: Add validation for extrapoltol
priscavdsluis Mar 20, 2023
397fec9
#369: Add validation for percentileminmax
priscavdsluis Mar 20, 2023
8e52454
#369: Add validation for area
priscavdsluis Mar 20, 2023
98d371c
#369: Add validation for nummin
priscavdsluis Mar 20, 2023
710b508
autoformat: isort & black
priscavdsluis Mar 20, 2023
3f378c6
#369: Refactor
priscavdsluis Mar 20, 2023
8933b8a
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 20, 2023
939bdb7
autoformat: isort & black
priscavdsluis Mar 20, 2023
b70afe2
#369: Refactor
priscavdsluis Mar 20, 2023
e4a6a02
autoformat: isort & black
priscavdsluis Mar 20, 2023
f33b859
#369: Refactor
priscavdsluis Mar 20, 2023
8d793bd
#369: Renames
priscavdsluis Mar 20, 2023
a4c014c
#369: Refactor
priscavdsluis Mar 21, 2023
2b83aae
#369: Refactor
priscavdsluis Mar 21, 2023
221a3ab
autoformat: isort & black
priscavdsluis Mar 21, 2023
c8aa9f9
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 21, 2023
434f03c
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 21, 2023
ec8d60e
autoformat: isort & black
priscavdsluis Mar 21, 2023
8865217
#369: Refactor
priscavdsluis Mar 21, 2023
ef6b58c
autoformat: isort & black
priscavdsluis Mar 21, 2023
88dc731
#369: Add documentation
priscavdsluis Mar 21, 2023
46e6cba
#369: Extract method
priscavdsluis Mar 21, 2023
dcec784
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 21, 2023
f4da724
autoformat: isort & black
priscavdsluis Mar 21, 2023
885bac9
#369: Add ExtOldModel
priscavdsluis Mar 22, 2023
7994529
#369: Add (still empty) required abstract methods to ExtOldModel
priscavdsluis Mar 23, 2023
48ce8e4
#369: Add (still empty) Serializer class and connect it to the ExtOld…
priscavdsluis Mar 23, 2023
a35cea3
autoformat: isort & black
priscavdsluis Mar 23, 2023
c967cf0
#369: Add initial serialization implementation
priscavdsluis Mar 23, 2023
6317636
autoformat: isort & black
priscavdsluis Mar 23, 2023
f4051e9
#369: Add __init__.py to extold module.
priscavdsluis Mar 24, 2023
c4eeee2
#369: Add (still empty) Parser class and connect it to the ExtOldModel
priscavdsluis Mar 24, 2023
b4b9776
autoformat: isort & black
priscavdsluis Mar 24, 2023
72b5a6b
#369: Add initial implementation for Parser
priscavdsluis Mar 24, 2023
baa3d01
autoformat: isort & black
priscavdsluis Mar 24, 2023
565d3a4
#369: Validate that keywords are in the correct order.
priscavdsluis Mar 24, 2023
333324d
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 24, 2023
06f10c4
autoformat: isort & black
priscavdsluis Mar 24, 2023
26d3189
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Mar 28, 2023
e18e859
#369: Add a list with the forcing file field order.
priscavdsluis Mar 28, 2023
ce13b2d
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 28, 2023
9185e53
autoformat: isort & black
priscavdsluis Mar 28, 2023
ecfbe39
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Mar 29, 2023
7f259ae
#369: Add ModelSaveSettings as argument to Serializer
priscavdsluis Mar 29, 2023
9f26ad4
#369: Adjust Serializer to use correct order.
priscavdsluis Mar 29, 2023
2584f0f
autoformat: isort & black
priscavdsluis Mar 29, 2023
a4da83d
#369: Use ModelSaveSettings to write correct path.
priscavdsluis Mar 29, 2023
c03ab83
#369: Use ModelSaveSettings to write correct path.
priscavdsluis Mar 29, 2023
056c356
autoformat: isort & black
priscavdsluis Mar 29, 2023
07ef23d
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 29, 2023
340bdf8
autoformat: isort & black
priscavdsluis Mar 29, 2023
0eab0fb
#369: Use FORCING_FILE_ORDERED_FIELDS in Parser
priscavdsluis Mar 29, 2023
d431d91
#369: Remove parameter
priscavdsluis Mar 29, 2023
44b6664
#369: Add test for Parser
priscavdsluis Mar 29, 2023
6c6b06a
autoformat: isort & black
priscavdsluis Mar 29, 2023
9808b24
#369: Add create_temp_file in test utils
priscavdsluis Mar 29, 2023
d68f5a7
#369: Use create_temp_file in test, instead of checked in file.
priscavdsluis Mar 29, 2023
d19a081
#369: Refactor tests, add test
priscavdsluis Mar 29, 2023
18d1dea
autoformat: isort & black
priscavdsluis Mar 29, 2023
f1b7a5f
#369: Use new function from test utils in existing test.
priscavdsluis Mar 29, 2023
75e43a8
#369: Reuse part of method.
priscavdsluis Mar 29, 2023
c759121
#369: Introduce `get_temp_file` function in test utils.
priscavdsluis Mar 29, 2023
11698a3
autoformat: isort & black
priscavdsluis Mar 29, 2023
d7883d4
#369: Use `get_temp_file` function in existing test
priscavdsluis Mar 29, 2023
5803bf6
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 29, 2023
40b3caf
#369: Refactor Serializer to make it easier to get correct whitelines…
priscavdsluis Mar 29, 2023
b9e10cb
#369: Add test for serializing
priscavdsluis Mar 29, 2023
9b1b67f
autoformat: isort & black
priscavdsluis Mar 29, 2023
c8c628e
#369: Replace DiskOnlyFileModel with ExtOldModel in FMModel
priscavdsluis Mar 30, 2023
7a9cd60
#369: Replace DiskOnlyFileModel with Union[PolyFile, DiskOnlyFileModel]
priscavdsluis Mar 30, 2023
e6ec4ec
autoformat: isort & black
priscavdsluis Mar 30, 2023
400e047
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Mar 31, 2023
39e06ae
#369: Some renames to the shared io components.
priscavdsluis Mar 31, 2023
3644f8b
#369: Add reference markdown document
priscavdsluis Mar 31, 2023
70502c8
autoformat: isort & black
priscavdsluis Mar 31, 2023
0075f65
#369: Minor improvements to parser
priscavdsluis Mar 31, 2023
ede97ad
autoformat: isort & black
priscavdsluis Mar 31, 2023
a29ccc8
#369: Minor improvements to serializer, add save load tests.
priscavdsluis Mar 31, 2023
20eb63f
#369: Minor improvements to serializer, add save load tests.
priscavdsluis Mar 31, 2023
5ef02a9
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Mar 31, 2023
0b512ed
autoformat: isort & black
priscavdsluis Mar 31, 2023
3de75c3
#369: Fix implementation according to architecture.
priscavdsluis Apr 3, 2023
aa452f1
#369: Remove code smells
priscavdsluis Apr 3, 2023
51a13e2
#369: Add more classes to init.py
priscavdsluis Apr 3, 2023
593060b
#369: Fix __init__.py files.
priscavdsluis Apr 3, 2023
10575d5
autoformat: isort & black
priscavdsluis Apr 3, 2023
017ce85
#369: Update docstrings.
priscavdsluis Apr 3, 2023
41f719e
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 3, 2023
cbbeb69
#369: Remove unused import.
priscavdsluis Apr 3, 2023
8dcf87e
autoformat: isort & black
priscavdsluis Apr 3, 2023
2fc1906
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 3, 2023
acc60be
#369: Improve validation
priscavdsluis Apr 4, 2023
43bcb2a
autoformat: isort & black
priscavdsluis Apr 4, 2023
5aa3a93
#369: Introduce a TracerQuantity
priscavdsluis Apr 4, 2023
d20e613
#369: Merge two tests.
priscavdsluis Apr 4, 2023
a3a0189
#369: Validate for tracer quantity names
priscavdsluis Apr 4, 2023
56951ce
#369: Refactor tracer validation
priscavdsluis Apr 4, 2023
92e7827
autoformat: isort & black
priscavdsluis Apr 4, 2023
9075f6e
#369: Remove variable
priscavdsluis Apr 4, 2023
2aa0630
#369: Remove .value call on enum str type.
priscavdsluis Apr 4, 2023
3e3df33
#369: Add comments to the ExtOldModel
priscavdsluis Apr 4, 2023
ab0a971
#369: Serialize comments of ext file
priscavdsluis Apr 4, 2023
99b0c05
autoformat: isort & black
priscavdsluis Apr 4, 2023
87066f1
#369: Parse comments of ext file
priscavdsluis Apr 4, 2023
7dbf625
#369: Extract _parse_header method.
priscavdsluis Apr 4, 2023
4db312d
#369: Extract _parse_data method.
priscavdsluis Apr 4, 2023
c03d174
autoformat: isort & black
priscavdsluis Apr 4, 2023
3573cf4
#369: Remove redundant docs.
priscavdsluis Apr 4, 2023
2b9ca7c
#369: Add documentation to test utils method.
priscavdsluis Apr 4, 2023
0674735
#369: Fix method name
priscavdsluis Apr 4, 2023
a8fd2da
#369: Update docs and add return type.
priscavdsluis Apr 4, 2023
9e49b57
autoformat: isort & black
priscavdsluis Apr 4, 2023
affb3b1
#369: Improve expectations.
priscavdsluis Apr 4, 2023
21e986d
autoformat: isort & black
priscavdsluis Apr 4, 2023
27b6219
#369: Improve documentation, fix return type
priscavdsluis Apr 4, 2023
84a4283
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 4, 2023
a819557
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 4, 2023
8e7de67
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 4, 2023
6568b7d
autoformat: isort & black
priscavdsluis Apr 4, 2023
6a35e27
#369: Add return and remove unused import
priscavdsluis Apr 4, 2023
87814a0
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 4, 2023
8bc2105
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 4, 2023
e16374e
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 5, 2023
274b29a
#369: Add support for tim file in ExtForcing
priscavdsluis Apr 5, 2023
bd5547a
autoformat: isort & black
priscavdsluis Apr 5, 2023
7d98045
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 7, 2023
ebb736a
#369: Add TracerQuantity to init.py
priscavdsluis Apr 7, 2023
7e8a844
#369: Update docs
priscavdsluis Apr 7, 2023
8426826
#369: Add TracerQuantity to init.py
priscavdsluis Apr 7, 2023
1fff8da
autoformat: isort & black
priscavdsluis Apr 7, 2023
065e396
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 11, 2023
d56b8d7
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 11, 2023
fb11cc1
#369: Rename ext old classes
priscavdsluis Apr 11, 2023
8cef82c
#369: Add common Operand class for inifield and extold
priscavdsluis Apr 11, 2023
f3f8dfc
#369: Use common operand in extold
priscavdsluis Apr 11, 2023
e6ad743
#369: Use common operand in inifield
priscavdsluis Apr 11, 2023
f7b542f
#369: Add Operand to init.py
priscavdsluis Apr 11, 2023
20cb35b
autoformat: isort & black
priscavdsluis Apr 11, 2023
8f07020
#369: Add header by default to ExtOldModel
priscavdsluis Apr 11, 2023
6686e0b
autoformat: isort & black
priscavdsluis Apr 11, 2023
969e233
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 12, 2023
9d7abf3
#369: Update docstrings for operand
priscavdsluis Apr 12, 2023
5a6bf45
#369: Add extrapolation method
priscavdsluis Apr 12, 2023
6f8761d
#369: Add extrapolation method
priscavdsluis Apr 12, 2023
d9d1659
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 12, 2023
105d7fa
autoformat: isort & black
priscavdsluis Apr 12, 2023
cd4e5ac
#369: Fix validation for extrapolation method
priscavdsluis Apr 12, 2023
91f31ce
#369: Add max search radius
priscavdsluis Apr 12, 2023
6e77b14
autoformat: isort & black
priscavdsluis Apr 12, 2023
95189a2
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 12, 2023
c3b5c36
#369: Refactor validation function
priscavdsluis Apr 12, 2023
d61a618
autoformat: isort & black
priscavdsluis Apr 12, 2023
557fcde
#369: Refactor validation function
priscavdsluis Apr 12, 2023
36d59dd
autoformat: isort & black
priscavdsluis Apr 12, 2023
f86e6f6
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 13, 2023
73924ad
#369: Rename local class Field to _Field
priscavdsluis Apr 13, 2023
745505d
#369: Replace integers with enum definitions.
priscavdsluis Apr 13, 2023
532b1be
#369: Improve tests
priscavdsluis Apr 13, 2023
66d1130
#369: Update docstrings
priscavdsluis Apr 13, 2023
ac8c016
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 13, 2023
1707c37
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 13, 2023
c6d04b1
#369: Use ExtOldMethod.AveragingSpace instead of ExtOldMethod.Averagi…
priscavdsluis Apr 13, 2023
4c7f342
autoformat: isort & black
priscavdsluis Apr 13, 2023
a5c2fde
#369: Add ExtOldExtrapolationMethod to __init__.py
priscavdsluis Apr 14, 2023
7425aea
#369: Update docs
priscavdsluis Apr 14, 2023
5f92148
#369: Add "nudge_salinity_temperature" to ext quantities
priscavdsluis Apr 14, 2023
e229c13
autoformat: isort & black
priscavdsluis Apr 14, 2023
28f827d
#369: Improve docs
priscavdsluis Apr 14, 2023
65f4938
Merge branch 'feat/369-support-old-ext-file' of https://github.com/De…
priscavdsluis Apr 14, 2023
3a88511
Merge branch 'main' into feat/369-support-old-ext-file
priscavdsluis Apr 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/reference/extold.md
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
1 change: 1 addition & 0 deletions hydrolib/core/dflowfm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from .common import *
from .crosssection import *
from .ext import *
from .extold import *
from .friction import *
from .gui import *
from .inifield import *
Expand Down
4 changes: 2 additions & 2 deletions hydrolib/core/dflowfm/common/__init__.py
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"]
20 changes: 20 additions & 0 deletions hydrolib/core/dflowfm/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,23 @@ class LocationType(str, Enum):

all = "all"
"""str: Denotes that both 1D and 2D locations may be selected."""


class Operand(str, Enum):
"""
Enum class containing the valid values for the operand
attribute in several subclasses of AbstractIniField and ExtOldForcing.
"""

override = "O"
"""Existing values are overwritten with the provided values."""
append = "A"
"""Provided values are used where existing values are missing."""
add = "+"
"""Existing values are summed with the provided values."""
mult = "*"
"""Existing values are multiplied with the provided values."""
max = "X"
"""The maximum values of the existing values and provided values are used."""
min = "N"
"""The minimum values of the existing values and provided values are used."""
19 changes: 19 additions & 0 deletions hydrolib/core/dflowfm/extold/__init__.py
tim-vd-aardweg marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .models import (
tim-vd-aardweg marked this conversation as resolved.
Show resolved Hide resolved
ExtOldExtrapolationMethod,
ExtOldFileType,
ExtOldForcing,
ExtOldMethod,
ExtOldModel,
ExtOldQuantity,
ExtOldTracerQuantity,
)

__all__ = [
"ExtOldExtrapolationMethod",
"ExtOldForcing",
"ExtOldModel",
"ExtOldQuantity",
"ExtOldFileType",
"ExtOldMethod",
"ExtOldTracerQuantity",
]
23 changes: 23 additions & 0 deletions hydrolib/core/dflowfm/extold/common_io.py
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."""
Loading