Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] r.sim.water: Observations, no logfile #4511

Closed
xycarto opened this issue Oct 14, 2024 · 0 comments · Fixed by #4522
Closed

[Bug] r.sim.water: Observations, no logfile #4511

xycarto opened this issue Oct 14, 2024 · 0 comments · Fixed by #4522
Assignees
Labels
bug Something isn't working

Comments

@xycarto
Copy link

xycarto commented Oct 14, 2024

Describe the bug

When running r.sim.water with observation points, no logfile or errors produced. Even if observation is provided, with no path to log, no error is produced indicating a logfile is needed and process runs as normal. If observation and logfile path is provided, no log file is produced.

I can provide sample data and docker if needed to reproduce.

Note: all other outputs are as expected

To reproduce

v.in.ogr input=sample-point.gpkg output=samplepoint type=point

r.sim.water -ts elevation=input_elev dx=dx-input_elev dy=dy-input_elev depth=depth-rast  niterations=$TIME rain_value=$RAINVAL man_value=0.3 nwalkers=50000 observation=samplepoint logfile=data/samplepoint.log output_step=10

If empty logfile is created before, process fails saying logfile already exists, indicating that something is supposed to be produced.

touch data/samplepoint.log

v.in.ogr input=sample-point.gpkg output=samplepoint type=point

r.sim.water -ts elevation=input_elev dx=dx-input_elev dy=dy-input_elev depth=depth-rast  niterations=$TIME rain_value=$RAINVAL man_value=0.3 nwalkers=50000 observation=samplepoint logfile=data/samplepoint.log output_step=10

Expected behavior

logfile output sent to provided location or error indicating is empty

System description

  • Operating System: Ubuntu 24.04
  • GRASS GIS version: GRASS GIS 8.3.2
  • GDAL 3.8.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants