Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 20 additions & 0 deletions avaframe/com1DFA/com1DFA.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ def com1DFAPreprocess(cfgMain, cfgInfo, module=com1DFA):
avalancheDir, cfgStart["GENERAL"].getboolean("cleanRemeshedRasters"), module
)

# if module is mot based - tif is currently not supported as format for input data
# TODO:remove when tif to asc conversion for mot is implement
Comment thread
fso42 marked this conversation as resolved.
if module.__name__.split(".")[-1].lower() in ["com8motpsa", "com9motvoellmy"]:
testInputType = [
(
True
if (inputSimFilesAll[iType] and iType not in ["relFiles", "relThFiles"])
and ("File" in iType and ".tif" in inputSimFilesAll[iType].suffix)
else False
)
for iType in inputSimFilesAll
]
testInputType = testInputType + [
True if ".tif" in relFile.suffix else False for relFile in inputSimFilesAll["relFiles"]
]
if any(testInputType):
message = ".tif files currently not supported for %s" % module
log.error(message)
raise ValueError(message)

# create dictionary with one key for each simulation that shall be performed
simDict = dP.createSimDict(avalancheDir, module, cfgStart, inputSimFilesAll, simNameExisting)

Expand Down
2 changes: 2 additions & 0 deletions avaframe/com8MoTPSA/com8MoTPSACfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,5 @@ Initial CFL number (-) = 0.8
# peak files and plots are exported, option to turn off exports when exportData is set to False
# this affects export of peak files and also generation of peak file plots
exportData = True
# use LZW compression when writing TIFF raster files
useCompression = True
Loading