hydromodpy.solver.modflow_nwt.common.binary_reader#

Thin, endianness-robust wrappers around MODFLOW binary output files.

FloPy’s HeadFile, CellBudgetFile and FormattedHeadFile readers handle MODFLOW-NWT (.hds / .cbc) and MODFLOW 6 (.hds / .cbc / .fhd) outputs but their constructor signatures differ slightly between the two families. These helpers provide a single entry point that:

  • accepts a precision hint (single / double / auto),

  • normalises the endianness detection by trying both flavours when auto is requested,

  • returns FloPy’s reader instance unchanged so downstream code keeps calling get_data / get_ts.

Functions

list_budget_records(cbc_reader)

Return the deduplicated record names present in a CBC file.

open_cell_budget_file(path, *[, precision])

Return a FloPy CellBudgetFile reader for a .cbc output.

open_head_file(path, *[, precision, text])

Return a FloPy HeadFile reader for a .hds / .fhd output.