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.
-
get_pak_vals_shape
(model, vals)[source]¶ Function to define shape of package input data for Util2d.
Parameters: - model (flopy model object) –
- vals (Package input values (dict of arrays or scalars, or ndarray, or) – single scalar).
Returns: shape – shape of input data for Util2d
Return type: tuple
-
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