MT3DMS file .ucn

979 views
Skip to first unread message

Mat

unread,
Apr 10, 2014, 9:48:24 AM4/10/14
to mod...@googlegroups.com
Hello to everybody!

I'm using ModelMuse to realize a transport model. I have applyied Mt3dms and it creates a binary file, .ucn, with the concentration values.
Is it possible with ModelMuse create a different extension file for concentrations? or is it possible read .ucn file as a .txt file?

Thank you in advance for your help!


Mike Toews

unread,
Apr 10, 2014, 8:03:24 PM4/10/14
to mod...@googlegroups.com
Hi Mat,

There are a few options. You can modify the Basic Transport Package (.btn file), A15 Record to use a non-zero IFMTCN value to print concentrations to the standard output text file. See MT3DMS_manual.pdf, page 122 for these details.

Another method is to read the unformatted concentration (.ucn file) using a programming environment to process and/or output the array data into other custom formats. Flopy (a Python package) can read these:

from flopy.utils import UcnFile
ucn = UcnFile(r'C:\path\to\file.ucn')
concs = ucn.get_alldata()
concs[0].shape  # (16L, 500L, 335L)
concs[0].max()  # 0.013222964
...

There is plenty more that you can do with the NumPy arrays from here.

-Mike

Chris Russoniello

unread,
Apr 14, 2014, 12:29:26 PM4/14/14
to mod...@googlegroups.com
I might be a bit late chiming in, but thought I'd give another option. MFLab is a free set of scripts offered by UDelft, that we've been using to read ucn and other binary and text files. You need Matlab or one of its free clones, but it's quite handy. Once the field are read into Matlab arrays, they'e quite easy to plot.

Lester Zhang

unread,
Apr 14, 2014, 2:17:53 PM4/14/14
to mod...@googlegroups.com
Dr. Zheng, the author of MT3DMS has a utility program called PM, it is included in the distribution package of MT3DMS. The package can be downloaded from the following link http://hydro.geo.ua.edu/mt3d/.

The utility program can be used to extract the concentration data from UCN file. The utility is written using FORTRAN, and the source code is available if you want to make change to the program.



 


--
You received this message because you are subscribed to the Google Groups "MODFLOW Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modflow+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modflow.
For more options, visit https://groups.google.com/d/optout.

Asha Farsana M.

unread,
Dec 6, 2021, 7:29:48 AM12/6/21
to MODFLOW Users Group

Hi ,
I tried usinf MFLAb taking the suggestion from this conversation. .ucn was read into matlab succesfully. and the data has been stored in structure. can anyone tell me how to plot concentration contour from structure. 
Reply all
Reply to author
Forward
0 new messages