Skip to main content

NOAA National Bathymetric Source data download, mosaic, and status tools

Project description

NOAA
National Bathymetric Source


BackgroundRequirementsInstallationQuickstartCLIData SourcesContact

Overview

Point this package at your area of interest and get the latest and best public bathymetric data from NOAA.

For most use cases, the quickstart below is all you need.

For more detailed guides, API reference, and troubleshooting, see the full documentation.

For a browser-based user interface to this repository, please consider trying this.

Background

NOAA's National Bathymetric Source builds and publishes the best available high-resolution bathymetric data of U.S. waters. The program's workflow is designed for continuous throughput, ensuring the best bathymetric data is always available to professionals and the public. This data provides depth measurements nationwide, along with vertical uncertainty estimates and information on the originating survey source. It is available in multiple formats (GeoTIFF compilations like BlueTopo and Modeling, BAG, and IHO S-102) hosted on a public S3 bucket.

This package simplifies downloading bathymetric data from NOAA and optionally assembling it into per-UTM-zone GDAL Virtual Rasters for use in GIS applications. It supports six data sources (BlueTopo, Modeling, BAG, S-102 v2.1/v2.2/v3.0).

Requirements

This package requires Python and the following dependencies, which are handled by the installation guide below:

  • GDAL
  • boto3
  • tqdm

Installation

Install conda (If you have not already): conda installation

In the command line, create an environment with the required packages:

conda create -n noaabathymetry_env -c conda-forge 'gdal>=3.9'  # add libgdal-hdf5 for BAG/S-102 support
conda activate noaabathymetry_env
pip install noaabathymetry   # installs boto3 and tqdm automatically

Quickstart

After installation, the package provides a Python API and a CLI. You can use fetch for downloading tiles and mosaic for assembling them together.

See the Python API and CLI sections below to get started. You can also use the Quickstart Helper to draw your area of interest on a map and generate usage examples.

Python API

Define your area of interest using any of the geometry formats listed below. You can then use the following in a Python shell or script.

To download files in your area of interest (default data source is BlueTopo):

from nbs.noaabathymetry import fetch_tiles
result = fetch_tiles('/path/to/project', geometry='area_of_interest.gpkg')

To mosaic the downloaded files:

from nbs.noaabathymetry import mosaic_tiles 
result = mosaic_tiles('/path/to/project')

CLI

You can also use the command line. Confirm the environment we created during installation is activated.

To fetch the latest data (default data source is BlueTopo), pass a directory path and a geometry input of your area of interest:

nbs fetch -d /path/to/project -g area_of_interest.gpkg

Pass the same directory path to nbs mosaic to mosaic the fetched data:

nbs mosaic -d /path/to/project

Use -h for help and to see additional arguments.

For most use cases, reusing the commands above to stay up to date in your area of interest is adequate.

Geometry formats

The geometry parameter accepts four formats. File inputs use the CRS defined in the file. All other formats assume EPSG:4326 (WGS 84).

File — any GDAL-compatible vector file (shapefile, geopackage, GeoJSON file, etc.):

result = fetch_tiles('/path/to/project', geometry='/path/to/area_of_interest.gpkg')

Bounding boxxmin,ymin,xmax,ymax as longitude/latitude:

result = fetch_tiles('/path/to/project', geometry='-76.1,36.9,-75.9,37.1')

WKT — Well-Known Text geometry:

result = fetch_tiles('/path/to/project', geometry='POLYGON((-76.1 36.9, -75.9 36.9, -75.9 37.1, -76.1 37.1, -76.1 36.9))')

GeoJSON — geometry or Feature object:

result = fetch_tiles('/path/to/project', geometry='{"type":"Polygon","coordinates":[[[-76.1,36.9],[-75.9,36.9],[-75.9,37.1],[-76.1,37.1],[-76.1,36.9]]]}')

Data Sources

BlueTopo, Modeling, and various S-102 versioned data are available as data sources. You can work with these using the data_source argument (e.g. data_source='modeling'). When not specified, data_source defaults to BlueTopo.

The primary difference between BlueTopo and Modeling data is the vertical datum. Modeling data is on a low water datum.

Please note that these S-102 data are for test and evaluation and should not be used for navigation. For official S-102 please see the data available from Precision Marine Navigation.

Authors

License

This work, as a whole, falls under Creative Commons Zero (see LICENSE).

Disclaimer

This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an 'as is' basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.

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

noaabathymetry-0.8.2.tar.gz (84.7 kB view details)

Uploaded Source

Built Distribution

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

noaabathymetry-0.8.2-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

Details for the file noaabathymetry-0.8.2.tar.gz.

File metadata

  • Download URL: noaabathymetry-0.8.2.tar.gz
  • Upload date:
  • Size: 84.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for noaabathymetry-0.8.2.tar.gz
Algorithm Hash digest
SHA256 e271ab0d5198b98871449e8b068d318c5ebd2720e341b6cf3de64513fdc43fbc
MD5 01a85d36f57f5da5c087aa1d7da354cf
BLAKE2b-256 182229daf9c3b96330e5824471de2753aef6d5d786c71720f07a33b007550823

See more details on using hashes here.

Provenance

The following attestation bundles were made for noaabathymetry-0.8.2.tar.gz:

Publisher: pypi.yaml on noaa-ocs-hydrography/noaabathymetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file noaabathymetry-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: noaabathymetry-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 92.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for noaabathymetry-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7464e77a241f748b599a9a90f09fdf7a33e712bbdd9bd0dee5ac7e9cfb49d381
MD5 2c5d7761f0faf32c59c0ab5b86a348f5
BLAKE2b-256 29dbf808b6e032de6c6e4e26e5e40882a38b6310cc8e975070e60e14df5ee9f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for noaabathymetry-0.8.2-py3-none-any.whl:

Publisher: pypi.yaml on noaa-ocs-hydrography/noaabathymetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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