You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to read .con file for a transport simulation made with modflow usg, like i can do with hds file.
Is there a way to read .con file using flopy? I tried something like this:
import flopy.utils.binaryfile as bf
con_file = 'results.con'
conobj = bf.HeadFile(con_file, text = 'concentration', precision = 'single')
but i get this error:
File "C:\Users\emunozv\AppData\Local\Continuum\anaconda3\lib\site-packages\flopy\utils\binaryfile.py", line 221, in _get_header
return header[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
I know bf.HeadFile is incorrect, but it was a test. I don't know the header of .con file.
I was trying to read .con file for a transport simulation made with modflow usg, like i can do with hds file.
Is there a way to read .con file using flopy? I tried something like this:
import flopy.utils.binaryfile as bf
con_file = 'results.con'
conobj = bf.HeadFile(con_file, text = 'concentration', precision = 'single')
but i get this error:
File "C:\Users\emunozv\AppData\Local\Continuum\anaconda3\lib\site-packages\flopy\utils\binaryfile.py", line 221, in _get_header
return header[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
I know bf.HeadFile is incorrect, but it was a test. I don't know the header of .con file.
Thanks for helping