Cannot export river package as shapefile properly #2309
-
Hello community: If I use
and if I export the model to a VTK file and add the river package, I can also see them quite easily: But I need them in shp format to make some checking with GIS. Maybe I am doing something wrong in the export process? Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Sebastian, Trying to look around here. Do you maybe happen to have multiple stress periods in your model while your river package's stress period data is defined only on a subset of your stress periods, (perhaps the initial one)? If it's anything similar to that, then my guess is that it's because the flopy/flopy/export/shapefile_utils.py Lines 380 to 383 in 181e101 I can try to submit a PR on this, but maybe the faster solution for you is to just assign the river stress period data for each stress period. Regards, |
Beta Was this translation helpful? Give feedback.
Hi Sebastian,
Trying to look around here. Do you maybe happen to have multiple stress periods in your model while your river package's stress period data is defined only on a subset of your stress periods, (perhaps the initial one)?
If it's anything similar to that, then my guess is that it's because the
MFPandasTransientList
does not re-use the data from the preceding stress periods when it is empty (which is probably intended as mf6 would handle that logic already). In that case, an error is caught on the following code block, and thus exporting of the stress period data is skipped.flopy/flopy/export/shapefile_utils.py
Lines 380 to 383 in 181e101