The initial resolution of the input file is used as the higher resolution that Badlands model can used. If one started with a given resolution and want to work with an higher one, it is required to regrid the input file to match at least the requested resolution.
In [1]:
import sys
print(sys.version)
print(sys.executable)
In [2]:
%matplotlib inline
# Import badlands grid generation toolbox
import pybadlands_companion.resizeInput as resize
In [3]:
#help(resize.resizeInput.__init__)
In [6]:
newRes = resize.resizeInput(requestedSpacing = 40)
In [7]:
#help(newRes.regridDEM)
newRes.regridDEM(inDEM='mountain/data/nodes.csv',outDEM='mountain/data/newnodes.csv')
In [ ]:
#help(newRes.regridRain)
newRes.regridRain(inRain='data/rain.csv',outRain='newrain.csv')
In [ ]:
#help(newRes.regridTecto)
newRes.regridTecto(inTec='data/disp.csv', outTec='newdisp.csv')
In [ ]:
#help(newRes.regridDisp)
newRes.regridDisp(inDisp='data/disp.csv', outDisp='newdisp.csv')
In [ ]: