Skip to content

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

@xycarto

Description

@xycarto

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions