Skip to content

This set of scripts will create subgrid input files for subgrid enabled ADCIRC.

Notifications You must be signed in to change notification settings

ccht-ncsu/subgridADCIRCUtility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subgridADCIRCUtility

This set of scripts will create subgrid input files for subgrid enabled ADCIRC.

Example:

The following link will take you to a data repository (need to figure out where to put this) where you will find an example folder containing a text control file and a python script used to call the subgrid calculator for a ADCIRC mesh of Galveston Bay, TX along with several other datafiles needed to perform the subgrid calulations.

  1. The control file lists:
  • The outputfile name for the subgrid lookup table.
  • The ADCIRC mesh file.
  • A flag saying whether or not you are using default mannings n values.
  • If not using default mannings n values you need to add a line with the filename of the non-defualt table.
  • The minimum and maximum water surface elevations over which to calculate the subgrid.
  • The discretization step of the water surface elevations.
  • The number of DEMs used in the calulation.
  • The DEM file(s) used in the subgrid calulation.
  • The number of landcover files used in the calulation.
  • The landcover file(s) used in the calulation.
  1. The python script reads the control file, calls the subgrid calulator and then simplifies the lookup table.
  • To call the subgrid calculator you will need to use the calculateSubgridCorrection command. The code should begin running and print what element and DEM it is looping through to keep you updated on the process.
  • At the end it will create a NetCDF file in the directory given by the control file.
  1. Other files contained within the data repo include:
  • 10 m resolution DEM and Landcover .tif files of Galevston Bay.
  • A relatively coarse ADCIRC mesh file, nodal attribute file, and fort.15 file for use with subgrid ADCIRC.
  • Some visualizations of subgrid ADCIRC and Conventional ADCIRC run on this domain.
  • Fully completed subgrid NetCDF lookup files to compare your results to.
  • A mannings n table with non-default values.

PYTHON MODULES NEEDED

  1. pandas
  2. numpy
  3. matplotlib
  4. gdal
  5. time
  6. netCDF4
  7. cmocean (if you want to visualize stuff)

Gallery

This is an example of the vertex averaged variables produced for Galveston Bay, Texas. new GBAY image

About

This set of scripts will create subgrid input files for subgrid enabled ADCIRC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages