Skip to content

Accessing data in packages after loading model #1441

Description

@wkitlasten

I am struggling to access and manipulate data from a gwf model. In this specific case the GHB data is stored as an external file. I load the model in flopy:

gwf = sim.get_model(model)

But I am having difficulting figuring out how to access the data. An example of what I tried is:

gwf.ghb.data_list
Out[23]: 
[,
 ,
 ,
 ,
 ,
 ,
 ,
 ,
 ,
 {internal}
 (11464),
 ]

Does the {internal} suggest the data is not set to external? Because the .ghb file suggests otherwise:

# File generated by Flopy version 3.3.5 on 07/08/2022 at 13:33:20.
BEGIN options
END options

BEGIN dimensions
  MAXBOUND  11464
END dimensions

BEGIN period  1
    OPEN/CLOSE  'w_1000_10m.ghb_coast.dat'
END period  1

Is there a method to access the data?

Alternatively, is there a method that returns the external filename, which I can load myself (e.g., in pandas)?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions