NeptuneProjects / BathyReq

A Python package for querying public bathymetric data sources.

Home Page:https://neptuneprojects.github.io/BathyReq/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BathyReq

DOI

A Python package for querying public bathymetric data sources. Currently only digital elevation model (DEM) data from the NOAA National Centers for Environmental Information (NCEI) database is supported. Future development will focus on implementing other sources, such as the General Bathymetric Chart of the Oceans (GEBCO) and NOAA's new Blue Topo project.

Installation

pip install bathyreq

Usage

Download bathymetric data for a given area:

import bathyreq

req = bathyreq.BathyRequest()
data, lonvec, latvec = req.get_area(
    longitude=[-117.43, -117.23], latitude=[32.55, 32.75]
)

Download bathymetric data for a single longitude/latitude pair:

import bathyreq

req = bathyreq.BathyRequest()
data = req.get_point(
    longitude=-117.43, latitude=32.75
)

Methods not yet implemented

Download bathymetric data for a given set of longitude/latitude pairs:

import bathyreq

req = bathyreq.BathyRequest()
data = req.get_points(
    longitude=[-117.43, -117.23], latitude=[32.55, 32.75]
)

Download bathymetric data for a given profile between two longitude/latitude pairs:

import bathyreq

req = bathyreq.BathyRequest()
data = req.get_profile(
    longitude=[-117.43, -117.23], latitude=[32.55, 32.75]
)

About

A Python package for querying public bathymetric data sources.

https://neptuneprojects.github.io/BathyReq/

License:MIT License


Languages

Language:Python 100.0%