How to modify the loaded model package data with pandas and run_modelflow?? #2245
Unanswered
GroundwaterSimulationOptimization
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I loaded a model of an actual venue using the modflow.load method and read the data from its packages.
![image](https://private-user-images.githubusercontent.com/57992286/341677292-a4abeff5-19f9-41be-8cd2-e039c6198ac8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMjQ1MTUsIm5iZiI6MTcyMjEyNDIxNSwicGF0aCI6Ii81Nzk5MjI4Ni8zNDE2NzcyOTItYTRhYmVmZjUtMTlmOS00MWJlLThjZDItZTAzOWM2MTk4YWM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDIzNTAxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZkYjliN2Y0Mjg3NmY3NWZlMjU0MWM4NDhiN2RlYTQ2YzY5ZTliYjRjOGRhZWU2Mzk4ZGIxZTdkM2RkYTMxOTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xyLaZPJRH6rh-lxxrhs_asIgge3lyRaK_EsXfDUVY4A)
package.stress_period_data.df method is really readable for me.
how do I modify its data via pandas and run mf.run_model with the modified data?
For example, I want to use pandas to modify the flux data inside the WEL package in the image and re-run the model to output the data.
Beta Was this translation helpful? Give feedback.
All reactions