You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Report (grass84): While working on enhancing the r.sim.water documentation, I encountered a buffer overflow during testing. Below are the details:
Python commands:
Step 1: Generate dx and dy derivatives using r.slope.aspect
#Calculate the slope derivatives from the elevation mapdx='dx_slope'dy='dy_slope'#Run the r.slope.aspect command to get x and y slopesgs.run_command('r.slope.aspect',
elevation=dem,
dx=dx,
dy=dy,
overwrite=True)
Step 2: Run r.sim.water with the required parameters, including dx and dy
#Now that we have the dx and dy maps, we can proceed with `r.sim.water`gs.run_command('r.sim.water',
elevation=dem,
dx=dx,
dy=dy,
rain_value=rain_intensity,
depth=output_depth,
discharge=output_discharge,
overwrite=True)
Step 3: Run r.sim.sediment (optional, if you wish to model sediment as well)
soil_texture='soils_texture'# Example soil texture map, if availableoutput_erosion='erosion'output_deposition='deposition'gs.run_command('r.sim.sediment',
elevation=dem,
water_depth=output_depth,
sediment_detachment=output_erosion,
sediment_deposition=output_deposition,
overwrite=True)
print("Simulation completed successfully!")
Error Message:
Numberofthreads: 1defaultnwalk=120040200, rwalk=120040200.000000Minelevation=55.89mMaxelevation=156.33mMeanSourceRate (rainf. excessorsediment) =0.000000m/sorkg/m2sMeanflowvelocity=0.081579m/sMeanMannings=2.972316Numberofiterations=4cells_Timestep=30.64s***bufferoverflowdetected***: terminated---------------------------------------------------------------------------CalledModuleErrorTraceback (mostrecentcalllast)
<ipython-input-30-d891834eab96>in<cellline: 16>()
14# Now that we have the dx and dy maps, we can proceed with r.sim.water15--->16gs.run_command('r.sim.water',
17elevation=dem,
18dx=dx,
1frames/usr/lib/grass84/etc/python/grass/script/core.pyinhandle_errors(returncode, result, args, kwargs)
364else:
365module, code=get_module_and_code(args, kwargs)
-->366raiseCalledModuleError(module=module, code=code, returncode=returncode)
367368CalledModuleError: Modulerun`r.sim.water --o elevation=elevation dx=dx_slope dy=dy_slope rain_value=50 depth=water_depth discharge=water_discharge`endedwithanerror.
Thesubprocessendedwithanon-zeroreturncode: -6.Seeerrorsabovethetracebackorintheerroroutput.
Moved here from discussion in #4709
Error Report (grass84): While working on enhancing the r.sim.water documentation, I encountered a buffer overflow during testing. Below are the details:
Python commands:
Step 1: Generate dx and dy derivatives using r.slope.aspect
Step 2: Run r.sim.water with the required parameters, including
dx
anddy
Step 3: Run
r.sim.sediment
(optional, if you wish to model sediment as well)Error Message:
Steps Taken:
elevation
,dx_slope
,dy_slope
).nwalkers
andniterations
.elevation
map.Could this issue be due to specific input data characteristics or a module-level limitation?
Request:
The text was updated successfully, but these errors were encountered: