-
Notifications
You must be signed in to change notification settings - Fork 342
Description
Hi @jlarson-usgs,
I am using the ModflowUzf1 package to load an existing UZF file. I exported the UZF file and other modflow input files using the interface ModelMuse. Now with Flopy, I want to load the existing UZF file, it's input variables and then want to be able to change the variables and re-run the model if needed. From the Flopy documentation I used the following script to load the UZF file.
m = flopy.modflow.Modflow.load('koga_forecast_app_50p.nam', version='mfnwt', model_ws=model_ws, exe_name="MODFLOW-NWT", load_only=['chd', 'dis', 'bas6', 'oc', 'upw', 'sfr'])
uzf = flopy.modflow.ModflowUzf1.load('koga_forecast_app_50p.uzf',m)
The first statement (reading the model as 'm') works fine, but in the second statement I get the following error as the attached screenshot. Basically what I want to do is read the UZF file exported by ModelMuse, then edit a few variables as necessary (for example changing the infiltration, or ET demand variables), and re-run the model. I can do that by each time editing the ModelMuse interface but it takes huge time to write the input files.
Model files:
https://drive.google.com/drive/folders/1ngEs8DrEfHWjLmR_b_H33Wcb_RC7vnkj?usp=sharing