diff --git a/avaframe/com1DFA/com1DFA.py b/avaframe/com1DFA/com1DFA.py index b9cb10aa5..ec0cbb4c7 100644 --- a/avaframe/com1DFA/com1DFA.py +++ b/avaframe/com1DFA/com1DFA.py @@ -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 + 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) diff --git a/avaframe/com8MoTPSA/com8MoTPSACfg.ini b/avaframe/com8MoTPSA/com8MoTPSACfg.ini index 6c5a76d08..4d16b0f51 100644 --- a/avaframe/com8MoTPSA/com8MoTPSACfg.ini +++ b/avaframe/com8MoTPSA/com8MoTPSACfg.ini @@ -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