Skip to main content

A GUI tool for computing slope angles along depth contours from NetCDF bathymetry data

Project description

isobath

A GUI tool for computing slope angles along depth contours (isobaths) from NetCDF bathymetry data.

Features

  • Load NetCDF bathymetry files and interactively select a region of interest
  • Visualise depth contours on a map
  • Compute slope angles at each coordinate interval along a chosen isobath using linear regression
  • Step through intervals with Previous / Next navigation
  • Remove outlier points using a lasso selector and recompute
  • Export results as a two-column text file (coordinate, angle)

Installation

pip install isobath

Usage

Launch the GUI from the terminal:

isobath

Or run as a module:

python -m isobath

Workflow

  1. Click Open to load a NetCDF file, or Sample File to load the bundled example dataset.
  2. In the Area Selector window, choose the variable and its latitude/longitude dimensions, then draw a rectangle to subset the region of interest.
  3. In the Settings panel (right dock), set the Contour Depth and adjust the coordinate axis, start/end points, averaging interval, and coordinate interval.
  4. Click Compute Angle to perform the first linear regression and view the slope angle.
  5. Use Next / Previous to step through coordinate intervals.
  6. Use Lasso to select outlier points, then Delete to remove them and recompute. Undo restores the previous point set.
  7. Click Save or Save As to export the results.

Output

Results are saved as a plain text file with two columns:

coordinate   angle (degrees)
8.0000       127.4396
9.0000       125.5481
...

Dependencies

License

MIT License. See LICENSE for details.

Note

Claude (Anthropic) was used to assist with refactoring, bug fixing, and packaging of this project.

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

isobath-0.1.0.tar.gz (319.0 kB view details)

Uploaded Source

Built Distribution

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

isobath-0.1.0-py3-none-any.whl (333.7 kB view details)

Uploaded Python 3

File details

Details for the file isobath-0.1.0.tar.gz.

File metadata

  • Download URL: isobath-0.1.0.tar.gz
  • Upload date:
  • Size: 319.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for isobath-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b7cbb62476da9d27f21fa70a1f3fe4eca99e4b0781b8d4a91d719905f55ef1bd
MD5 f5320d78c5ea9915e512a6d9b08cf359
BLAKE2b-256 5fba69c136ada8a8e0db2abd7f8220aca9e846368330095a07e1710280ea32a5

See more details on using hashes here.

File details

Details for the file isobath-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: isobath-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 333.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for isobath-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5dff4f62cf7faccd8111d47400e0ec8c4b0c47199cb0c7e8bf88ad897973add0
MD5 924098f40443e355b10358ea2cde2e67
BLAKE2b-256 87a029b0c380c830af6ae94fe73ca18500beebdd62271faab409b4d74e1cadfa

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