Accessing data in packages after loading model #1442
Replies: 3 comments
-
gwf.ghb.stress_period_data.get_data() should return the information in a way you can work with it. @spaulins-usgs, I don't see this described very well in the docs, especially how to work with stress period data in external files. Could we improve the docs a bit? I think the documentation for gridded data, like hydraulic conductivity, is much better. |
Beta Was this translation helpful? Give feedback.
-
That does it. Thanks. (and thanks for moving to the "Discussions") |
Beta Was this translation helpful? Give feedback.
-
@langevin-usgs, I will update tutorial 8 with examples of storing external stress period list data. In addition to that, I think we can also improve the flopy code docs so that they document the attributes of each package. For example, the documentation for the ghb package class defines all of the constructor parameters including stress_period_data, but does not define the class attributes. The stress_period_data attribute should be defined here as MFDataList (stress_period_data is both a parameter and an attribute of the ModflowGwfghb class, where the parameter is a different type than the attribute). I will work on documenting the class attributes for all package data. While the MF2005 docs also do not document package attributes, for now I will focus on updating the MF6 docs. @langevin-usgs, let me know if you want to discuss this further. |
Beta Was this translation helpful? Give feedback.
-
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:
Does the {internal} suggest the data is not set to external? Because the .ghb file suggests otherwise:
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
Beta Was this translation helpful? Give feedback.
All reactions