Deltares / Deltares/imod-python

Times not converted when opening output of a previously ran simulation (outside script)

Open
#1,036 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Deltares
Dominant language
Python
Stars
41
Forks
12
Avg merge
21h 8m
Merged PRs (30d)
1

Description

I got a message from @tessodk that this didn't work fully. This is a common workflow for large models:

  1. First script: Create simulation, write it and dump it
  2. Run model in commandline
  3. Second script: Load simulation and call open_heads

Result: Data is loaded, but without any conversion to datetimes of the "time" coordinate. I think for some reason the reference time is not forwarded properly in this method.

See screenshots:

image

While these timesteps are included in the loaded simulation:

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the open_heads loading path and reproduce the two-script workflow: dump a simulation, run it from the command line, then load it and call open_heads. Trace how the reference time reaches the loaded time coordinate; done means the resulting time values are converted to datetimes consistently with the simulation timesteps.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.