Python package for working with ADCIRC input and output files.
Project description
ADCIRCPy
Python library for automating ADCIRC model runs.
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.
tide_gen
plot_mesh
tidal_run
best_track_run
best_track_file
plot_maxele
plot_fort61
fort63
Command line examples:
Generate tidal constituent template from command line
You can quickly create a tidal component table for your your mesh by executing the tide_gen
command and by passing a mesh, a start date and number of run days as arguments.
This functions sources data from the HAMTIDE database by default.
tide_gen \
/path/to/your/fort.14 \
2021-02-26T00:00:00 \
15 \
--mesh-crs='epsg:4326'
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adcircpy-1.0.31.tar.gz
.
File metadata
- Download URL: adcircpy-1.0.31.tar.gz
- Upload date:
- Size: 85.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2146198a3a524caa2682428630bf7b653da2f7543392ad6deee14794980c01 |
|
MD5 | c426e59e8fc09630783f3f8aaf90b561 |
|
BLAKE2b-256 | 54f39b9ec895249a7ea18d5ba76e01a377aec1d6e49048f22d9e95b35ffccc94 |
File details
Details for the file adcircpy-1.0.31-py3-none-any.whl
.
File metadata
- Download URL: adcircpy-1.0.31-py3-none-any.whl
- Upload date:
- Size: 118.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e93005e1a578fe79fed275ab203e515b00eef5cef5da8ebc39d07e3f6cc66b7 |
|
MD5 | 2369de1cddb72023280b0043d0260993 |
|
BLAKE2b-256 | b6deeb5e9bd6bee7a605cd845a7ceaedbd9b8f1a7da53128477c50fa15b3e75e |