Deltares / Deltares/imod-python

date format in ipf.write

Open
#162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In GitLab by @tomvansteijn on Mar 19, 2021, 08:59

Datetime columns in the associated text files of IPF files are converted to string using date_format="%Y%m%d%H%M%S" when writing to CSV, so iMOD can deal with them.

Currently datetime columns in the IPF table itself are not converted. For example the start and end date in a metadata table. This can be solved by applying the same datetime format when writing the IPF file itself.

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

Locate the ipf.write entry point and the existing conversion of datetime columns in associated text files when writing CSV. Apply the same date format to datetime columns in the IPF table itself, then verify that metadata dates such as start and end dates are written in the expected format.

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.