-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Bug description
An iMOD5 PRJ file can contain references to IDF grids with variable window and cell size. During processing, iMOD5 uses a single target grid for regridding all grids in the PRJ file. This target grid can be the default (1st IDF in the BND section) or user defined with keywords WINDOW and CELLSIZE (see also (iMOD5 backwards compatibility — iMOD Python 1.0.0.post1 documentation).
Two objectives / fixes needed:
- iMOD Python missis the user defined option for the target grid. Add this option + check if the default is the 1st IDF in the BND section.
- iMOD Python throws an error when grids within a package (e.g. TOP, DRN) have different bouding boxes or cell sizes
The 1st fix impacts the function imod.mf6.Modflow6Simulation.from_imod5_data — iMOD Python 1.0.0.post1 documentation
The default target dir (based on top/bot?) might have a dx/dy of 100 m while the desired simulation is on a 25 m scale. Than the target grid must be overruled.
The 2nd fix impacts the function imod.formats.prj.open_projectfile_data — iMOD Python 1.0.0.post1 documentation
Steps to reproduce
Get a simple test PRJ file.
For fix 1: just define an empty 2d raster with deviating cell size and window.
For fix 2: Rescale one of the IDF’s in a package of your choice in the PRJ file, eg. Bot_l3.idf
Metadata
Metadata
Assignees
Labels
Type
Projects
Status