Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Read bct package output file (.con) #374

Copy link
Copy link

Description

@edimunv
Issue body actions

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

Reactions are currently unavailable

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.