Skip to main content

Python package for working with ADCIRC input and output files.

Project description

ADCIRCPy

Python library for automating ADCIRC model runs.

tests build coverage version license

Installation notes:

Please use a virtual environment with Python>=3.6. You may use conda or the OS's Python to provide a virtual environment for the application.

You may install the application though pip. This will install the latest tagged version.

pip install adcircpy

Alternatively, you many manually install the repo by cloning it and then running

pip install .

Examples:

See the examples directory for usage examples.

Command Line:

This program exposes a few commands available from the command line interface. You may pass the -h flag to any of this commands to explore their functionality.

  • plot_mesh
  • tidal_run
  • best_track_run
  • best_track_file
  • plot_maxele
  • plot_fort61
  • fort63

Command line examples:

Hurricane Sandy (AL182012)

To create the ADCIRC input files includes both tides and storm data for Hurricane Sandy:

best_track_run \
    /path/to/your/fort.14 \
    Sandy2012 \
    --fort13=/path/to/your/fort.13 \
    --crs=EPSG:4326 \
    --output-directory=/path/where/you/want/the/files \
    --constituents=all \
    --spinup-days=15.0 \
    --elev=30. \
    --mete=30. \
    --velo=30. \
    --skip-run

Note that the --crs flag is required due to the fort.14 not containing Coordinate Reference System information which is required for correct operation. EPSG:4326 means that the mesh is in WGS84 (lat/lon). Note that the backlash represents "continue on next line" for the shell. You may write the command above on a single line after excluding the backslashes.

Quick plots

These are two examples for doing quick plots with the package. These are given here as illustrative examples only. There is support for more file types than this examples, but the program does not yet support every output input/output file type. As a user, you are encouraged to explore what's available and suggest and contribute your improvements.

plot_fort61 /path/to/fort.61.nc MSL --show --coops-only
plot_mesh /path/to/fort.14 --show-elements

Contact

For questions comments and suggestions, please email me at jreniel@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adcircpy-1.0.15.tar.gz (87.6 kB view details)

Uploaded Source

Built Distribution

adcircpy-1.0.15-py3-none-any.whl (118.4 kB view details)

Uploaded Python 3

File details

Details for the file adcircpy-1.0.15.tar.gz.

File metadata

  • Download URL: adcircpy-1.0.15.tar.gz
  • Upload date:
  • Size: 87.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for adcircpy-1.0.15.tar.gz
Algorithm Hash digest
SHA256 6e457b1c52483f6406ee76bad9ee568a5057d5e37ef691535512b7e525323a43
MD5 bfbb742a8bf150a79c9726c9a3aa1ca9
BLAKE2b-256 066fc0dcfeab4cc18561a1b6dff8c532bc795b4b4a0884fe524a82e1909a6b58

See more details on using hashes here.

File details

Details for the file adcircpy-1.0.15-py3-none-any.whl.

File metadata

  • Download URL: adcircpy-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 118.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for adcircpy-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 44c1c1cece9abc4f6937b16848527105058cd2a02c900bf63a73a502dfc778b7
MD5 aa11c03da1f7cf7939eb7ed5ea7ea374
BLAKE2b-256 8bdca86021e56cba4c73a20a7463d98d75c1e0a09f187cdf89e2b7eda2dfeb17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page