Skip to content

Unable to load .NAM file using Flopy #1263

@fahadkhan469

Description

@fahadkhan469

Hi everyone,

I am facing a problem while loading modflow input files with Flopy. I am trying to load the .NAM file and also the .SFR file, and in both cases, I am facing the following errors. All my model input files are uploaded in this Google Drive folder.

  1. When I try loading the .NAM file, I get the following error

my code,

ml = flopy.modflow.Modflow.load("Tana_GW_climate_4_5.nam", model_ws=model_ws, verbose=False,
                               check=True, exe_name="mfnwt") 

error I receive,

IndexError: list index out of range

  1. When I try loading the .SFR file, I get the following error

my code,

m = flopy.modflow.Modflow()
f = 'C:/Users/fkk17001/Desktop/FKK_UCONN/Tana_GW_climate/runs/4_5/test.sfr'
sfr = flopy.modflow.ModflowSfr2.load(f, m, nper=1465)

error I receive,

ValueError: invalid literal for int() with base 10: 'OPTIONS'

The model files are all uploaded in the following google drive folder (https://drive.google.com/drive/folders/1Q2NcZHeyFRsrrzFx5weTRw_hmwRaHUfh?usp=sharing).

I would highly appreciate if any of you could kindly explore this and let me know what is going on. I have been able to read other models with Flopy (which has different sets of packages), but not this one. The version I am using is, Flopy v 3.3.4!

Fahad

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions