modflowpy / flopy

A Python package to create, run, and post-process MODFLOW-based models.
https://flopy.readthedocs.io
Other
517 stars 313 forks source link

Can flopy reads subsidence output? #288

Closed ougx closed 6 years ago

ougx commented 6 years ago

I noticed that it supports writing the sub file. But I could not find the function to read the output file. Is it not able to do that?

jtwhite79 commented 6 years ago

The binary sub output files all follow the head-save format, so you can use HeadFile to read them

>>>sb  = flopy.utils.HeadFile('model.sub',text='subsidence')

The key is the text arg - check out t040_test.py in the autotest directory for more examples for the various sub outputs