Oliver Schmitz
-
2016-05-17
- labels: --> python_package
when using setglobaloption in the same script like this:
import pcraster as pcr
import os
ldd = pcr.readmap("lddcreate_Result2.map")
pcr.setglobaloption("unittrue")
ddistUnitTrue = pcr.downstreamdist(ldd)
pcr.setglobaloption("unitcell")
ddistUnitCell = pcr.downstreamdist(ldd)
pcr.report(ddistUnitCell, 'ddistUnitCell.map')
pcr.report(ddistUnitTrue, 'ddistUnitTrue.map')
pcr.aguila(ddistUnitCell, ddistUnitTrue, ldd)
the output maps are the same, while a modeller would expect different results.
This use case might currently not be possible with the modelling engine, at least throw error message.