Module Expr Str Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num ListLoad ListLoad Num Num Num Num ListLoad ListLoad Num Num Num Num ListLoad Str Str Str Str ListLoad Num Num Num Num NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore Str If CompareIsNot NameLoad NameLoad body Assign NameStore Str If CompareIsNot NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ListLoad Str NameLoad NameLoad Str NameLoad keyword ListLoad Str Str Str Str Assign AttributeStore NameLoad attr BinOpAdd Str Str If CompareIsNot NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr Str AugAssignAdd AttributeStore NameLoad attr Str Print Str Print Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If BoolOpAnd CompareIn Str NameLoad CompareNotEq NameLoad Num body Assign NameStore NameLoad If BoolOpAnd CompareIn Str NameLoad CompareNotEq NameLoad Num body Assign NameStore NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad body If CompareEq BinOpMod NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpAdd NameLoad Num BinOpAdd NameLoad Num For NameStore NameLoad body If CompareIn Str Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If CompareIn Str Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore ListLoad Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad For NameStore NameLoad body If CompareIn Str Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse If CompareIn Str Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str If CompareNotIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Assert CompareEq Call NameLoad NameLoad Num NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Assert CompareEq Call NameLoad NameLoad Num NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Num BinOpAdd SubscriptLoad NameLoad Index NameLoad Num body If CompareEq BinOpMod NameLoad NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num Num Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Num For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad body If CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num If CompareGt SubscriptLoad NameLoad Index Num Num body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad BinOpMod Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore ListLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Str For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareEq SubscriptLoad NameLoad Index Num Str body Continue If CompareEq NameLoad ListLoad body Continue orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse If CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore NameLoad orelse If CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore ListLoad NameLoad NameLoad orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpAnd CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr CompareIn Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Expr Call AttributeLoad NameLoad attr Str orelse Print Str Print Str Return Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Num Num Num Num If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword ListLoad Str Str Str Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A N/A 
mfoc module.  Contains the ModflowOc class. Note that the user can access
the ModflowOc class as `flopy.modflow.ModflowOc`.

Additional information for this MODFLOW package can be found at the `Online
MODFLOW Guide
<http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/index.html?oc.htm>`_.

 N/A sys pakbase Package ModflowOc88 N/A Package N/A N/A 
    MODFLOW Output Control Package Class.

    Parameters
    ----------
    model : model object
        The model object (of type :class:`flopy.modflow.mf.Modflow`) to which
        this package will be added.
    ihedfm : int
        is a code for the format in which heads will be printed.
        (default is 0).
    iddnfm : int
        is a code for the format in which heads will be printed.
        (default is 0).
    item2 : list of ints
        [incode, ihddfl, ibudfl, icbcfl], where incode is the code for reading
        Item 3. ihddfl is a head and drawdown output flag. This flag allows
        Item 3 flags to be specified in an early time step and then used or not
        used in subsequent time steps. Thus, it may be possible to use IHDDFL
        to avoid resetting Item 3 flags every time step.  ibudfl is a budget
        print flag. icbcfl is a flag for writing cell-by-cell flow data.
        (default is [[0, 1, 0, 1]]).
    item3 : list of ints
        [hdpr, ddpr, hdsv, ddsv]
        hdpr is the output flag for head printout.
        ddpr is the output flag for drawdown printout.
        hdsv is the output flag for head save.
        ddsv is the output flag for drawdown save.
        (default is [[0, 0, 1, 0]]).
    extension : list of strings
        (default is ['oc','hds','ddn','cbc']).
    unitnumber : list of ints
        (default is [14, 51, 52, 53]).
    save_head_every : int
        Time step interval for printing and/or saving results
        (default is None).
    words : list of instructions
        Can be specified as a 2d list of the following form::

            [[per,stp,'head','drawdown','budget','pbudget', 'phead']]

        In this 2d form, phead, pbudget will print the head and budget.
        Words can also be a 1d list of data items, such as::

            ['head','drawdown','budget'].

        With a 1d list, the save_head_every option is used to determine the
        output frequency.
        (default is None).
    compact : boolean
        Save results in compact budget form. (default is False).
    chedfm : string
        is a character value that specifies the format for saving heads, and
        can only be specified if the word method of output control is used.
        The format must contain 20 characters or less and must be a valid
        Fortran format that is enclosed in parentheses. The format must be
        enclosed in apostrophes if it contains one or more blanks or commas.
        The optional word LABEL after the format is used to indicate that
        each layer of output should be preceded with a line that defines the
        output (simulation time, the layer being output, and so forth). If
        there is no record specifying CHEDFM, then heads are written to a
        binary (unformatted) file. Binary files are usually more compact than
        text files, but they are not generally transportable among different
        computer operating systems or different Fortran compilers.
    cddnfm : string
        is a character value that specifies the format for saving drawdown, and
        can only be specified if the word method of output control is used.
        The format must contain 20 characters or less and must be a valid
        Fortran format that is enclosed in parentheses. The format must be
        enclosed in apostrophes if it contains one or more blanks or commas.
        The optional word LABEL after the format is used to indicate that
        each layer of output should be preceded with a line that defines the
        output (simulation time, the layer being output, and so forth). If
        there is no record specifying CDDNFM, then drawdowns are written to a
        binary (unformatted) file. Binary files are usually more compact than
        text files, but they are not generally transportable among different
        computer operating systems or different Fortran compilers.

    Attributes
    ----------

    Methods
    -------

    See Also
    --------

    Notes
    -----
    The "words" method for specifying output control is preferred in most
    cases.  Also, the "compact" budget should normally be used as it produces
    files that are typically much smaller.  The compact budget form is also
    a requirement for using the MODPATH particle tracking program.

    Examples
    --------

    >>> import flopy
    >>> m = flopy.modflow.Modflow()
    >>> oc = flopy.modflow.ModflowOc88(m, words=['head'], save_head_every=1)

     __init__ N/A N/A self model ihedfm iddnfm item2 item3 extension unitnumber save_head_every words compact chedfm cddnfm N/A 0 0 N/A N/A 0 1 0 1 N/A N/A 0 0 1 0 N/A oc hds ddn cbc N/A 14 51 52 53 None None False None None N/A N/A hds_fmt DATA(BINARY) N/A ddn_fmt DATA(BINARY) N/A N/A chedfm None N/A N/A hds_fmt DATA N/A N/A cddnfm None N/A N/A ddn_fmt DATA N/A N/A N/A Package __init__ self model extension N/A OC hds_fmt ddn_fmt DATA(BINARY) unitnumber extra N/A REPLACE REPLACE REPLACE N/A N/A self heading N/A # Output control package file  for MODFLOW, generated by Flopy. N/A N/A words None N/A N/A N/A self heading  Output control by words option N/A N/A self heading 
# Deprecated flopy OC class N/A Warning: ModflowOc88 flopy class is deprecated N/A          Please use ModflowOc class N/A N/A self url oc.htm N/A N/A self ihedfm ihedfm N/A N/A self iddnfm iddnfm N/A N/A self chedfm chedfm N/A N/A self cddnfm cddnfm N/A N/A words None N/A N/A N/A hflag dflag N/A False False N/A N/A N/A head words N/A ihedfm 0 N/A N/A hflag True N/A N/A N/A drawdown words N/A iddnfm 0 N/A N/A dflag True N/A N/A self words N/A N/A N/A self compact compact N/A N/A N/A w words N/A N/A N/A N/A N/A self words append N/A N/A w upper N/A word_list N/A N/A N/A save_head_every None N/A N/A N/A TypeError to use the 1d words OC option, save_head_every must be used N/A nstp N/A N/A N/A N/A self parent get_package DIS nstp N/A p N/A range N/A len nstp N/A N/A s N/A range N/A nstp N/A p N/A N/A N/A N/A s save_head_every 0 N/A N/A N/A N/A word_list append N/A N/A PERIOD {0:5.0f} STEP {1:5.0f}
 format N/A p 1 N/A s 1 N/A w words N/A N/A N/A PBUDGET N/A N/A w upper N/A N/A N/A N/A word_list append   PRINT BUDGET
 N/A N/A N/A PHEAD N/A N/A w upper N/A N/A N/A N/A word_list append   PRINT HEAD
 N/A N/A N/A N/A word_list append N/A N/A   SAVE  N/A N/A w upper N/A hflag N/A N/A N/A N/A word_list append   PRINT HEAD
 N/A dflag N/A N/A N/A N/A word_list append   PRINT DRAWDOWN
 N/A N/A N/A word_list append N/A N/A self word_list word_list N/A N/A N/A N/A word_list N/A N/A N/A self words N/A N/A i words N/A N/A N/A p s N/A N/A int N/A i N/A 0 N/A int N/A i N/A 1 N/A wwords N/A i N/A 2 N/A N/A N/A word_list append N/A N/A PERIOD {0:5.0f} STEP {1:45.0f}
 format p s N/A w wwords N/A N/A N/A PBUDGET N/A N/A w upper N/A N/A N/A N/A word_list append   PRINT BUDGET
 N/A N/A N/A PHEAD N/A N/A w upper N/A N/A N/A N/A word_list append   PRINT HEAD
 N/A N/A N/A N/A word_list append N/A N/A   SAVE  N/A N/A w upper N/A N/A N/A N/A w upper N/A self words N/A N/A N/A N/A N/A self words append N/A N/A w upper N/A hflag N/A N/A N/A N/A word_list append   PRINT HEAD
 N/A dflag N/A N/A N/A N/A word_list append   PRINT DRAWDOWN
 N/A N/A N/A word_list append N/A N/A self word_list word_list N/A N/A N/A self words None N/A N/A item2 None N/A N/A error_message item2 must have 4 columns N/A N/A N/A isinstance item2 list N/A N/A item2 N/A item2 N/A a item2 N/A N/A N/A N/A len a 4 error_message N/A N/A self item2 item2 N/A N/A item3 None N/A N/A error_message item3 must have 4 columns N/A N/A N/A isinstance item3 list N/A N/A item3 N/A item3 N/A a item3 N/A N/A N/A N/A len a 4 error_message N/A N/A self item3 item3 N/A N/A save_head_every None N/A N/A nstp N/A N/A N/A N/A self parent get_package DIS nstp N/A N/A self item3 N/A N/A p N/A range N/A len nstp N/A N/A s N/A range 1 N/A N/A nstp N/A p 1 N/A N/A N/A N/A s save_head_every 0 N/A N/A N/A N/A N/A self item3 append N/A 0 0 1 0 N/A N/A N/A N/A N/A self item3 append N/A 0 0 0 0 N/A N/A N/A N/A self parent add_package self N/A write_file N/A N/A self N/A N/A N/A 
        Write the package file.

        Returns
        -------
        None

         N/A f_oc N/A open N/A self fn_path w N/A N/A N/A f_oc write N/A %s
 N/A self heading N/A nstp N/A N/A N/A N/A self parent get_package DIS nstp N/A N/A N/A self words None N/A N/A N/A N/A f_oc write N/A N/A HEAD PRINT FORMAT {0:3.0f}
 format N/A self ihedfm N/A N/A N/A self chedfm None N/A N/A N/A N/A f_oc write N/A N/A HEAD SAVE FORMAT {0:20s} LABEL
 format N/A self chedfm N/A N/A N/A f_oc write N/A N/A HEAD SAVE UNIT {0:5.0f}
 format N/A N/A self unit_number N/A 1 N/A N/A N/A f_oc write N/A N/A DRAWDOWN PRINT FORMAT {0:3.0f}
 format N/A self iddnfm N/A N/A N/A self cddnfm None N/A N/A N/A N/A f_oc write N/A N/A DRAWDOWN SAVE FORMAT {0:20s} LABEL
 format N/A self cddnfm N/A N/A N/A f_oc write N/A N/A DRAWDOWN SAVE UNIT {0:5.0f}
 format N/A N/A self unit_number N/A 2 N/A N/A self compact N/A N/A N/A N/A f_oc write COMPACT BUDGET FILES N/A N/A N/A f_oc write N/A i N/A self word_list N/A N/A N/A N/A f_oc write i N/A N/A N/A N/A f_oc write N/A %3i%3i%5i%5i
 N/A N/A self ihedfm N/A self iddnfm N/A N/A self unit_number N/A 1 N/A N/A self unit_number N/A 2 N/A ss 0 N/A p N/A range N/A len nstp N/A N/A s N/A range N/A nstp N/A p N/A N/A N/A ss N/A len N/A self item2 N/A N/A a N/A N/A self item2 N/A ss N/A N/A a N/A N/A self item2 N/A -1 N/A N/A ss N/A len N/A self item3 N/A N/A b N/A N/A self item3 N/A ss N/A N/A b N/A N/A self item3 N/A -1 N/A N/A N/A f_oc write N/A %3i%3i%3i%3i  Period %3i, step %3i
 N/A N/A a N/A 0 N/A a N/A 1 N/A a N/A 2 N/A a N/A 3 N/A p 1 N/A s 1 N/A N/A N/A a N/A 0 0 N/A N/A N/A nr nc N/A b shape N/A N/A nr nlay N/A item3 must have {0:1d} rows when incode > 0  nlay N/A bb b N/A N/A N/A N/A f_oc write N/A %3i%3i%3i%3i
 N/A N/A bb N/A 0 N/A bb N/A 1 N/A bb N/A 2 N/A bb N/A 3 N/A N/A N/A N/A f_oc write N/A %3i%3i%3i%3i
 N/A N/A b N/A 0 N/A b N/A 1 N/A b N/A 2 N/A b N/A 3 N/A ss N/A ss 1 N/A N/A N/A f_oc close N/A load N/A N/A f model nper ext_unit_dict N/A None None N/A N/A 
        Load an existing package.

        Parameters
        ----------
        f : filename or file handle
            File to load.
        model : model object
            The model object (of type :class:`flopy.modflow.mf.Modflow`) to
            which this package will be added.
        nper : int
            The number of stress periods.  If nper is None, then nper will be
            obtained from the model object. (default is None).
        ext_unit_dict : dictionary, optional
            If the arrays in the file are specified using EXTERNAL,
            or older style array control records, then `f` should be a file
            handle.  In this case ext_unit_dict is required, which can be
            constructed using the function
            :class:`flopy.utils.mfreadnam.parsenamefile`.

        Returns
        -------
        oc : ModflowOc object
            ModflowOc object.

        Examples
        --------

        >>> import flopy
        >>> m = flopy.modflow.Modflow()
        >>> oc = flopy.modflow.ModflowOc.load('test.oc', m)

         N/A N/A model verbose N/A N/A N/A N/A N/A sys stdout write loading oc package file...
 N/A N/A nper None N/A N/A N/A nrow ncol nlay nper N/A N/A model get_nrow_ncol_nlay_nper N/A ihedfm 0 N/A iddnfm 0 N/A ihedun 0 N/A iddnun 0 N/A compact False N/A chedfm None N/A cddnfm None N/A words N/A N/A wordrec N/A N/A N/A N/A hasattr f read N/A N/A filename f N/A f N/A open filename r N/A line f N/A N/A lnlst N/A N/A N/A N/A line strip split N/A N/A N/A line N/A 0 # N/A N/A N/A N/A lnlst N/A N/A N/A N/A N/A N/A N/A HEAD N/A N/A N/A lnlst N/A 0 upper N/A PRINT N/A N/A N/A lnlst N/A 1 upper N/A FORMAT N/A N/A N/A lnlst N/A 2 upper N/A N/A ihedfm N/A int N/A lnlst N/A 3 N/A N/A N/A N/A HEAD N/A N/A N/A lnlst N/A 0 upper N/A SAVE N/A N/A N/A lnlst N/A 1 upper N/A FORMAT N/A N/A N/A lnlst N/A 2 upper N/A N/A chedfm N/A lnlst N/A 3 N/A N/A N/A N/A HEAD N/A N/A N/A lnlst N/A 0 upper N/A SAVE N/A N/A N/A lnlst N/A 1 upper N/A UNIT N/A N/A N/A lnlst N/A 2 upper N/A N/A ihedun N/A int N/A lnlst N/A 3 N/A N/A N/A N/A DRAWDOWN N/A N/A N/A lnlst N/A 0 upper N/A PRINT N/A N/A N/A lnlst N/A 1 upper N/A FORMAT N/A N/A N/A lnlst N/A 2 upper N/A N/A iddnfm N/A int N/A lnlst N/A 3 N/A N/A N/A N/A DRAWDOWN N/A N/A N/A lnlst N/A 0 upper N/A SAVE N/A N/A N/A lnlst N/A 1 upper N/A FORMAT N/A N/A N/A lnlst N/A 2 upper N/A N/A cddnfm N/A lnlst N/A 3 N/A N/A N/A N/A DRAWDOWN N/A N/A N/A lnlst N/A 0 upper N/A SAVE N/A N/A N/A lnlst N/A 1 upper N/A UNIT N/A N/A N/A lnlst N/A 2 upper N/A N/A iddnun N/A int N/A lnlst N/A 3 N/A N/A N/A N/A IBOUND N/A N/A N/A lnlst N/A 0 upper N/A SAVE N/A N/A N/A lnlst N/A 1 upper N/A FORMAT N/A N/A N/A lnlst N/A 2 upper N/A N/A cboufm N/A lnlst N/A 3 N/A N/A N/A N/A IBOUND N/A N/A N/A lnlst N/A 0 upper N/A SAVE N/A N/A N/A lnlst N/A 1 upper N/A UNIT N/A N/A N/A lnlst N/A 2 upper N/A N/A ibouun N/A int N/A lnlst N/A 3 N/A N/A N/A COMPACT N/A N/A N/A lnlst N/A 0 upper N/A N/A compact True N/A N/A N/A PERIOD N/A N/A N/A lnlst N/A 0 upper N/A N/A N/A N/A len wordrec 3 N/A N/A N/A N/A words append wordrec N/A iperoc N/A int N/A lnlst N/A 1 N/A itsoc N/A int N/A lnlst N/A 3 N/A wordrec N/A iperoc itsoc N/A N/A N/A N/A PRINT N/A N/A N/A lnlst N/A 0 upper N/A HEAD N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append PHEAD N/A N/A N/A N/A PRINT N/A N/A N/A lnlst N/A 0 upper N/A DRAWDOWN N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append PDRAWDOWN N/A N/A N/A N/A PRINT N/A N/A N/A lnlst N/A 0 upper N/A BUDGET N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append PBUDGET N/A N/A N/A N/A SAVE N/A N/A N/A lnlst N/A 0 upper N/A HEAD N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append HEAD N/A N/A N/A N/A SAVE N/A N/A N/A lnlst N/A 0 upper N/A DRAWDOWN N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append DRAWDOWN N/A N/A N/A N/A SAVE N/A N/A N/A lnlst N/A 0 upper N/A IBOUND N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append IBOUND N/A N/A N/A N/A SAVE N/A N/A N/A lnlst N/A 0 upper N/A BUDGET N/A N/A N/A lnlst N/A 1 upper N/A N/A N/A N/A wordrec append BUDGET N/A N/A Old style oc files not supported for import. N/A Convert to words. N/A N/A ModflowOc88 model N/A N/A N/A len wordrec 3 N/A N/A N/A N/A words append wordrec N/A unitnumber N/A 14 51 52 53 N/A N/A ihedun 0 N/A N/A N/A N/A model add_pop_key_list ihedun N/A N/A iddnun 0 N/A N/A N/A N/A model add_pop_key_list iddnun N/A oc N/A ModflowOc88 model ihedfm ihedfm iddnfm iddnfm extension N/A oc hds ddn cbc unitnumber unitnumber words words compact compact chedfm chedfm cddnfm cddnfm N/A oc N/A staticmethod N/A