Module Expr Str Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr body Return NameLoad Print Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad NameLoad Return NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareNotEq Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str body AugAssignAdd NameStore Str Assign NameStore Call NameLoad If NameLoad body Print Call AttributeLoad Str attr NameLoad Print Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareEq Call NameLoad NameLoad Num body Continue If CompareNotIn Str SubscriptLoad NameLoad Index Num body If Call NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Num If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Str If CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign NameStore Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler body If NameLoad body Print Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr If CompareIn NameLoad NameLoad body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index NameLoad attr orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
mfreadnam module.  Contains the NamData class. Note that the user can access
the NamData class as `flopy.modflow.NamData`.

Additional information about the MODFLOW name file can be found at the `Online
MODFLOW Guide
<http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/name_file.htm>`_.

 N/A os NamData N/A object N/A N/A 
    MODFLOW Namefile Class.

    Parameters
    ----------
    pkgtype : string
        String identifying the type of MODFLOW package. See the
        mfnam_packages dictionary keys in the model object for a list
        of supported packages. This dictionary is also passed in as packages.
    name : string
        Filename of the package file identified in the name file
    handle : file handle
        File handle referring to the file identified by `name`
    packages : dictionary
        Dictionary of package objects as defined in the
        `mfnam_packages` attribute of :class:`flopy.modflow.mf.Modflow`.

    Attributes
    ----------
    filehandle : file handle
        File handle to the package file. Read from `handle`.
    filename : string
        Filename of the package file identified in the name file.
        Read from `name`.
    filetype : string
        String identifying the type of MODFLOW package. Read from
        `pkgtype`.
    package : string
        Package type. Only assigned if `pkgtype` is found in the keys
        of `packages`

    Methods
    -------

    See Also
    --------

    Notes
    -----

    Examples
    --------

     __init__ N/A N/A self pkgtype name handle packages N/A N/A N/A N/A self filehandle handle N/A N/A self filename name N/A N/A self filetype pkgtype N/A N/A self package None N/A N/A N/A N/A N/A self filetype lower packages N/A N/A N/A self package N/A packages N/A N/A N/A N/A self filetype lower N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A filename:{0}, filetype:{1} format N/A self filename N/A self filetype N/A N/A getfiletypeunit N/A N/A nf filetype N/A N/A N/A 
    Method to return unit number of a package from a NamData instance

    Parameters
    ----------
    nf : NamData instance
    filetype : string, name of package seeking information for

    Returns
    -------
    cunit : int, unit number corresponding to the package type

     N/A N/A cunit cvals N/A N/A nf items N/A N/A N/A N/A N/A N/A cvals filetype lower N/A N/A filetype lower N/A N/A cunit N/A N/A N/A Name file does not contain file of type "{0}" format filetype N/A None N/A testint N/A N/A cval N/A N/A N/A N/A N/A N/A int cval N/A True N/A N/A N/A N/A False N/A parsenamefile N/A N/A namfilename packages verbose N/A True N/A N/A 
    Function to parse the nam file and return a dictionary with types,
    names, units and handles

    Parameters
    ----------
    namefilename : string
        Name of the MODFLOW namefile to parse.
    packages : dictionary
        Dictionary of package objects as defined in the `mfnam_packages`
        attribute of :class:`flopy.modflow.mf.Modflow`.
    verbose : logical
        Print messages to screen.  Default is True.

    Returns
    ----------
    ext_unit_dict : dictionary
        For each file listed in the name file, a
        :class:`flopy.utils.mfreadnam.NamData` instance
        is stored in the ext_unit_dict dictionary keyed by unit number
     N/A N/A N/A N/A N/A os path isfile namfilename N/A N/A N/A N/A N/A N/A namfilename N/A -4 lower .nam N/A N/A namfilename .nam N/A ext_unit_dict N/A dict N/A verbose N/A N/A N/A N/A Parsing the namefile --> {0:s} format namfilename N/A Setting filehandles: N/A N/A N/A N/A N/A os path isfile namfilename N/A N/A dn N/A N/A N/A os path dirname namfilename N/A s N/A N/A Could not find {} in path {} with files 
 {} format namfilename dn N/A N/A os listdir dn N/A N/A Exception s N/A indata N/A N/A N/A open namfilename r readlines N/A line indata N/A N/A tmp N/A N/A N/A N/A line strip split N/A N/A N/A len tmp 0 N/A N/A N/A N/A # N/A tmp N/A 0 N/A N/A N/A testint N/A tmp N/A 1 N/A N/A fname N/A N/A N/A os path join N/A N/A N/A os path dirname namfilename N/A tmp N/A 2 N/A N/A N/A N/A N/A os path isfile fname N/A N/A dn N/A N/A N/A os path dirname fname N/A fls N/A N/A os listdir dn N/A lownams N/A N/A N/A f lower N/A f fls N/A bname N/A N/A N/A os path basename fname N/A N/A N/A N/A bname lower lownams N/A N/A idx N/A N/A lownams index N/A N/A bname lower N/A fname N/A N/A N/A os path join dn N/A fls N/A idx N/A openmode r N/A N/A N/A N/A N/A tmp N/A 0 upper DATA(BINARY) N/A N/A openmode rb N/A N/A N/A filehandle N/A open fname openmode N/A N/A N/A N/A verbose N/A N/A N/A N/A could not set filehandle for {0:s} format N/A tmp N/A 2 N/A filehandle None N/A key N/A int N/A tmp N/A 1 N/A N/A key 0 N/A N/A ftype N/A N/A N/A tmp N/A 0 lower N/A N/A ftype packages N/A N/A key N/A N/A packages N/A ftype unitnumber N/A N/A key N/A tmp N/A 0 N/A N/A ext_unit_dict N/A key N/A NamData N/A N/A N/A tmp N/A 0 upper fname filehandle packages N/A ext_unit_dict N/A