Skip to main content
Pipeline status

sea-names

Determine the sea-name of any arbitrary point or shapely geometry.

Copyright 2023-2024 Axiom Data Science, LLC

See LICENSE for details.

Installation

This project relies on conda for installation and managing of the project dependencies.

  1. Download and install miniconda for your operating system https://docs.conda.io/en/latest/miniconda.html.

  2. Clone this project with git.

  3. Once conda is available build the environment for this project with:

    conda env create -f environment.yml

    The above command creates a new conda environment titled sea-names with the necessary project dependencies.

  4. An Additional environment file is present for testing and development environments. The additional developer dependencies can be installed with:

    conda env update -f test-environment.yml
  5. To install the project to the new environment:

    conda activate sea-names
    pip install -e .

Shapefiles and Dataset Usage

Currently we’ve been asked to remove the repository of shapefiles used by this library for licensing reasons. The library will remain publicly accessible but the dataset underlying the library is no longer available for public distribution.

We are trying to adopt the library to use either an open-source dataset or find alternatives for our users, we apologize for the inconvenience.

Running Tests

To run the project’s tests:

pytest -sv --integration

Usage

The package can provide the region name for any given coordinate pair (Longitude, and Latitude).

import sea_names

lon = -81.65
lat = 41.98

name = sea_names.get_sea_name((lon, lat))
assert name == "Lake Erie"

The package also has the ability to provide a set of sea names for a series of points. This capability is still somewhat experimental and can use a lot of memory.

from sea_names.geo import get_sea_names_for_trajectory
lons = [
   -176.54,
   -164.70,
   -143.13,
   -126.09,
   -107.18,
   -91.36,
]
lats = [
   55.64,
   48.74,
   56.57,
   45.58,
   21.39,
   25.15,
]
region_names = get_sea_names_for_trajectory(lons, lats, chunk_size=len(lons))
assert region_names == ['Bering Sea', 'Gulf of Mexico', 'North Pacific Ocean']

Configuration

Building with Docker

To build the docker container:

docker build -t sea-names .

Running with Docker

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.4.0 (2025-05-29)

  • Fixes to accommodate issues with sea bounding boxes with more than one polygon.

0.3.0 (2024-08-08)

  • Updated README with usage examples

  • Updated README to include data license notice

  • Updates to the hash of the dataset

  • Spelling corrections

0.2.0 (2024-06-21)

  • Support for determining sea names for an entire trajectory.

  • Added numpy to strict dependencies

0.1.0 (2023-06-16)

  • First release on PyPI.

Metadata

Release files for sea-names 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sea-names 0.4.0
File Size Uploaded
sea_names-0.4.0.tar.gz 69.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sea-names 0.4.0
File Interpreter ABI Platform
sea_names-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 79.4 kB

Release files / sea_names-0.4.0.tar.gz

Download URL sea_names-0.4.0.tar.gz
Size 69.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6ee1fd638f7c260276a18ef278a12291bec9dd28f62b32daaa0fc610f6097088
BLAKE2b-256 checksum
How to use checksums
a33cc2bbe60bbfb533de7ee3db76f4612b46ad4b007f2cda4201072ac64fa212
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / sea_names-0.4.0-py3-none-any.whl

Download URL sea_names-0.4.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b533311f83133491cf72e6c6803f6c63c7d83f4cbd96a8ebf3ec4719c06025a
BLAKE2b-256 checksum
How to use checksums
ef17993f482a6e3e0f2e16738fb5382f5ba4295882fe7e8683766cbbed67268f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page