Questions tagged [flopy]

Flopy is a Python package for creating, running and post-processing MODFLOW-based models.

About FloPy

FloPy is a package for pre- and post-processing MODFLOW-based models with python. FloPy includes support for MODFLOW 6, MODFLOW-2005, MODFLOW-NWT, MODFLOW-USG, and MODFLOW-2000. Other supported MODFLOW-based models include MODPATH (version 6 and 7), MT3DMS, MT3D-USGS, and SEAWAT. More information on MODFLOW-based models can be found on the MODFLOW homepage.

Latest Stable Release

FloPy version 3.29 - 19 February 2018

Resources

69 questions
0
votes
1 answer

How to create shapefile by only used cells in flopy?

Actually my question is in the header. For instance there is a model with 2 stress periods 3 layers 15 cols and 10 rows and I am modifiying general head boundary package. After I edit the model cells by giving stress period, layer, row, column, head…
Mustafa Uçar
  • 442
  • 1
  • 6
  • 18
0
votes
2 answers

How to write new input file after modify flopy package?

I try to load-if exists, update and write new input files in flopy. I try many things but I can't. Here is my code: rchFile = os.path.join(modflowModel.model_ws, "hydrogeology.rch") info = modflowModel.get_nrow_ncol_nlay_nper() if "RCH" in…
Mustafa Uçar
  • 442
  • 1
  • 6
  • 18
0
votes
1 answer

How to load a MODFLOW file that includes external file using ' OPEN/CLOSE' in FloPy? I got stuck with loading a UPW file

I am using FloPy to load an existing MODFLOW-NWT model. The UPW package relies on external files for hydraulic properties. I noticed that the UPW cannot be loaded with the regular loading command. mf_old_nwt =…
water_tao
  • 41
  • 1
  • 1
  • 3
0
votes
1 answer

how to get cbc with BC output in flopy

I'm trying to set up a model in "FloPy" (v'3.2.12'), but I'm having some trouble with the modflow output files. When following the "turorial2" available on the developers' website (https://modflowpy.github.io/flopydoc/tutorial2.html), everything…
0
votes
1 answer

How to interpolate elevation for grid point for river cells while importing in mod flow?

I have line feature class of a river in shape file and attributes for river-package at the start and end of line. For example: water level at start and end of line feature class. Now, I want to import the river-package attributes on a grid such that…
0
votes
0 answers

How to load an existing MODFLOW-USG model with flopy

I am trying to learn flopy, and I tried to load one of the MODFLOW-USG test cases. The test case is a 1-layer model with a nested grid and GNC package (example 01B). I did not modify the test case files distributed with MODFLOW-USG, and the test…
Kent D.
  • 13
  • 5
0
votes
1 answer

Has the binary option of "OPEN/CLOSE [(BINARY)]" been implemented in MODFLOW 6 flopy?

Page 20 of the MODFLOW 6 IO pdf (mf6io.pdf) describes the OPEN/CLOSE option which can be used in the BEGIN PERIOD / END PERIOD block for list input. My testing of flopy found that I could read an external ASCII file but not a binary file. When I…
unjedai
  • 15
  • 6
0
votes
1 answer

Rotate figure - Flopy

I am using functions, e.x: ml.dis.top.plot(). I would like to rotate these figures and delete titles. How can I do that? plt.title('') seems to work for titles but I cannot rotate these figures. Here is the part of the script: fig =…
-1
votes
1 answer

Truncate CBB File using Flopy

I am interested in truncating a binary MODFLOW CBB file after a certain number of stress periods. Using the Flopy binary file utilities, I have been able to understand how to unpack a binary file and extract values into an array. However, it is…
cmc104
  • 13
  • 3
1 2 3 4
5