flopy.utils.utils_def module

Generic classes and utility functions

class FlopyBinaryData[source]

Bases: object

The FlopyBinaryData class is a class to that defines the data types for integer, floating point, and character data in MODFLOW binary files. The FlopyBinaryData class is the super class from which the specific derived classes are formed. This class should not be instantiated directly.

read_integer()[source]
read_real()[source]
read_record(count, dtype=None)[source]
read_text(nchar=20)[source]
set_float(precision)[source]
totim_to_datetime(totim, start='1-1-1970', timeunit='D')[source]
Parameters:
  • totim (list or numpy array) –
  • start (str) – Starting date for simulation. (default is 1-1-1970).
  • timeunit (string) – time unit of the simulation time. Valid values are ‘S’econds, ‘M’inutes, ‘H’ours, ‘D’ays, ‘Y’ears. (default is ‘D’).
Returns:

out – datetime object calculated from start and totim values

Return type:

list