Skip to main content

Python package for working with ADCIRC input and output files.

Project description

AdcircPy

Installation notes:

Please use a virtual environment with >=Python3.8. 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
  • plot_fort63

Command line examples:

Hurricane Sandy (AL182012)

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

best_track_run \
    /path/to/your/fort.14 \
    AL182012 \
    --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.4.tar.gz (70.7 kB view details)

Uploaded Source

Built Distributions

adcircpy-1.0.4-py3.8.egg (207.0 kB view details)

Uploaded Source

adcircpy-1.0.4-py3.6.egg (205.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: adcircpy-1.0.4.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for adcircpy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2e43b5ff226facf9312ef7e4edcd0eea6cc0a1c1106eddc74a01fd29fda5c139
MD5 465dcbbfa944f6436e848956a74f1254
BLAKE2b-256 67f76542f36dae91011f6b0df7fcd14965a07fb150bd7ecd3b070c0214db2c48

See more details on using hashes here.

File details

Details for the file adcircpy-1.0.4-py3.8.egg.

File metadata

  • Download URL: adcircpy-1.0.4-py3.8.egg
  • Upload date:
  • Size: 207.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for adcircpy-1.0.4-py3.8.egg
Algorithm Hash digest
SHA256 8e13c9d5c5ad0d60b68d0dfb98c882e66f9a162279b639d3c33e5d07a2e22af2
MD5 3136cfc52c6939531dab46c531042279
BLAKE2b-256 487098f112da8345198dc25c37a6d9631013a058fe2b1fe4294ff9654fc3baf1

See more details on using hashes here.

File details

Details for the file adcircpy-1.0.4-py3.6.egg.

File metadata

  • Download URL: adcircpy-1.0.4-py3.6.egg
  • Upload date:
  • Size: 205.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for adcircpy-1.0.4-py3.6.egg
Algorithm Hash digest
SHA256 ec68b13b0ce4cd6466538f30bdc5a92655f16f8eedc01150a019330929b51152
MD5 29b347594bc12969473e3b52a1a8046c
BLAKE2b-256 3f1469b133c143595e144b9b1ba4eb2acb2632b1073e1dc363a0f587fe1ff5f9

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