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.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
  • 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.5.tar.gz (70.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adcircpy-1.0.5-py3.6.egg (206.2 kB view details)

Uploaded Egg

File details

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

File metadata

  • Download URL: adcircpy-1.0.5.tar.gz
  • Upload date:
  • Size: 70.5 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.5.tar.gz
Algorithm Hash digest
SHA256 525713ab39b1416d466f77ab87896838cb767878bbfc4f9a0fc3a197f31e9418
MD5 1fa850ab7de77b54bc8dfce229e0aeba
BLAKE2b-256 7a5728ef86b4dd40c7e731e2e899d3ede3fb6b72b5896b5a6a4d873b3065784a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adcircpy-1.0.5-py3.6.egg
  • Upload date:
  • Size: 206.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for adcircpy-1.0.5-py3.6.egg
Algorithm Hash digest
SHA256 b342578529826b49c92f1d57c3ff199e4222ff973a7c9ab2a370543aa3e124de
MD5 1faf8cec6a3ad53107bd90808dbcba6d
BLAKE2b-256 7bb3bb095419376030d20a18014e5340a01cf7cbd3dbbe9f710365cfd34e802b

See more details on using hashes here.

Supported by

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