FlowAccumulator
- class fastscape.processes.FlowAccumulator(*, runoff, shape, cell_area, stack, nb_receivers, receivers, weights)
Accumulate the flow from upstream to downstream.
- runoff
Surface runoff (source term) per area unit
Variable properties:
type :
variableintent :
indimensions : () or (‘y’, ‘x’)
- Type:
attr.Attribute
- shape
Nb. of grid nodes in (y, x)
Variable properties:
type :
foreignreference variable :
UniformRectilinearGrid2D.shapeintent :
indimensions : (‘shape_yx’,)
- Type:
attr.Attribute
- cell_area
Fixed grid cell area
Variable properties:
type :
foreignreference variable :
UniformRectilinearGrid2D.cell_areaintent :
indimensions : ()
- Type:
attr.Attribute
- stack
Dfs ordered grid node indices
Variable properties:
type :
foreignreference variable :
FlowRouter.stackintent :
indimensions : (‘node’,)
- Type:
attr.Attribute
- nb_receivers
Number of flow receivers
Variable properties:
type :
foreignreference variable :
FlowRouter.nb_receiversintent :
indimensions : (‘node’,)
- Type:
attr.Attribute
- receivers
Flow receiver node indices
Variable properties:
type :
foreignreference variable :
FlowRouter.receiversintent :
indimensions : (‘node’,) or (‘node’, ‘nb_rec_max’)
- Type:
attr.Attribute
- weights
Flow partition weights
Variable properties:
type :
foreignreference variable :
FlowRouter.weightsintent :
indimensions : (‘node’,) or (‘node’, ‘nb_rec_max’)
- Type:
attr.Attribute
- flowacc
Flow accumulation from up to downstream
Variable properties:
type :
variableintent :
outdimensions : (‘y’, ‘x’)
- Type:
attr.Attribute
Methods
__init__(*, runoff, shape, cell_area, stack, ...)Method generated by attrs for class FlowAccumulator.
run_step()
Output of process info:
In [1]: import xsimlab as xs
In [2]: from fastscape.processes import FlowAccumulator
In [3]: xs.process_info(FlowAccumulator)
<FlowAccumulator (xsimlab process)>
Variables:
runoff [in] () or ('y', 'x') surface runoff (source t...
shape [in] <--- UniformRectilinearGrid2D.shape
cell_area [in] <--- UniformRectilinearGrid2D.cell_area
stack [in] <--- FlowRouter.stack
nb_receivers [in] <--- FlowRouter.nb_receivers
receivers [in] <--- FlowRouter.receivers
weights [in] <--- FlowRouter.weights
flowacc [out] ('y', 'x') flow accumulation from up to d...
Simulation stages:
run_step