Coder Social home page Coder Social logo

gebco's Introduction

FastAPI of GEBCO bathymetry

DOI

Swagger API doc

GEBCO API manual/online try-out

Usage

  1. Records-output (in JSON) of z-profile (and distances) between longitude/latitude points with 15-arcsec resolutions

    e.g: https://api.odb.ntu.edu.tw/gebco?lon=120,120.1,120.1&lat=25.0,25.1,24.9&mode=row

  2. Output only endpoints: &mode=row,point

  3. Polygon mode by jsonsrc parameter (default down-sampling every 5 points, see sample parameter in manual) e.g

   https://api.odb.ntu.edu.tw/gebco?mode=zonly&jsonsrc={"type": "Polygon", "coordinates": [[[121, 22.5], [121, 23.5], [122, 23.5], [122, 22.5], [121, 22.5]]]}
  • Parmeter mode=zonly means pairwise distance evaluation/output is disabled, only evaluates z data. Multiple values separated by comma in mode is allowed.
  • Multiple features are allowed:
   https://api.odb.ntu.edu.tw/gebco?mode=zonly&jsonsrc={"type": "FeatureCollection", "features": [{"type": "Feature", "properties": {}, "geometry": { "type": "Polygon", "coordinates": [[[121, 22.5], [121, 23.5], [122, 23.5], [122, 22.5], [121, 22.5]]]}}]}

Demo polygon-mode data by plotly on Ocean APIverse

Polygon-mode data by GEBCO API

Given the polygon in GeoJSON, the 15 arc-seconds gridded GEBCO data can be obtained to present the 3D terrain of this area.

Attribution

Citation

gebco's People

Contributors

cywhale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gebco's Issues

Getting gridded data

I have been needing a python friendly way to read in GEBCO bathymetry data, and this seems to be really close to what I need.

As I see it, this command ('https://api.odb.ntu.edu.tw/gebco?lon=4,6&lat=60.0,59.0&mode=row') gives me a NE-SW slice with 15-arcsec resolution. Is there a way to get the data gridded for that area with the same 15-arcsec resolution in both lon and lat direction?

I could trivially read a lot of slices, but then I need to specify the resolution, and it seems like a bit of a hack.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.