Skip to content
Discussion options

You must be logged in to vote

Found the answer here: #374
here is a generalization of that solution that dumps the whole mess to a 4d dataframe

'''
process concentrations
'''
print('processing concentrations...')

def get_all_concentrations(ucnobj, nlay, ncpl):
    """
    Returns a 4D array of concentration data from a MODFLOW USG Transport binary output file.
    
    Dimensions: (ncomp, ntimes, nlay, nnodes)
    
    Parameters
    ----------
    ucnobj : flopy.utils.binaryfile.HeadUFile
        A MF USG Transport binary file object containing concentration data.
    Returns
    -------
    conc_data : ndarray
        4D array of shape (ncomp, ntimes, nlay, nnodes)
    text_labels : list
        List of component t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RyanConway91
Comment options

Comment options

You must be logged in to vote
1 reply
@mwtoews
Comment options

mwtoews Jul 27, 2025
Collaborator

Answer selected by RyanConway91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants