Navigation:  Numerical Modeling Workflow - Finite Difference Grids >


Print this Topic Previous page Return to chapter overview Next page

Visual MODFLOW Flex allows you to export some raw data and most of the numerical model inputs and outputs to shapefiles for external analysis.


Data Objects

Points, Polygons and Polylines can be exported to *.SHP, *.CSV

Surfaces, Horizons exported to *.CSV)


To export a data object:


From the Data Explorer, right-click on the desired data object, and select Export from the pop-up menu.

A Save As dialog box will display on your screen

Specify a file Name and Folder location, and the File Type for the exported file, and then click the [Save] button.

Click the [OK] button from the Export dialog box.


Model Explorer Objects

You can export you Model Layers to .CSV or .TXT by right clicking on the grid in the Model Explorer and selecting Export Layers...

Then you can provide the location and select if you want .CSV or .TXT.

Once you select Save you will be notified that the layers have been exported and given the option to open the exported file.




The resulting file will contain Layer, Row, Column, X, Y, Z, Top, Bottom, and Thickness information.




Export to points or polygon shapefile is currently available for the following:


Numerical Grid

Properties: Conductivity, Storativity, Initial Heads

Boundaries: All types including wells




To export, right click on the desired item on the model explorer (eg. Conductivity), and select Export.... as shown below.




The following dialog will appear; note at the bottom you have the option to choose Points Shapefile or Polygon Shapefile format.




Click OK.  Depending on the type of data, you may have additional settings. The following options are available for Properties:





Choose which attributes you want to be generated and what layers should be included.


Click OK and the shapefile will be created.


The following options are available for Heads:




Choose which attributes you want to be generated and what layers should be included.


If your model has transient heads, you have an option to include Heads from multiple times as separate attributes in the shapefile .DBF file. Choose specific times or 'Select Heads at All Times' to include all heads.


You are also able to export your flux data for Boundary Condition cell zones. After you have run your model you will find Fluxes in the Output of the model explorer - right click and select export and the Export fluxes dialog will appear.




You must specify the location of the file. Then select which boundary condition group - and the specific boundary conditions.

You can specify to export:

Base Flow Rate

In Flow Rate

Out Flow Rate



There are some restrictions on attribute names in DBF files; the length is restricted to 10 characters, and certain characters cannot be used, including decimal (.), hyphens (-), and plus sign (+).  As such, Visual MODFLOW Flex uses the following notation:


For transient heads, the attribute name notation is HT (head at time) followed by the time value - an underscore is used in place of a decimal, M is used in place of hyphen, and is used in place of plus.


For example:

Calculated head times

Notation in DBF file










Page url: