Giter Club home page Giter Club logo

Comments (4)

bjorkqvi avatar bjorkqvi commented on August 15, 2024 1

Many thanks, this seems to work like a charm!

I'm thinking about including this as a part of a GEBCO reader in an upcoming version of a downscaling software we are working on (https://github.com/MET-OM/dnora). Is it ok to write our software to use that web address directly?

from gebco.

cywhale avatar cywhale commented on August 15, 2024

Please try polygon mode that specified by GeoJSON in jsonsrc parameter

https://api.odb.ntu.edu.tw/gebco?mode=zonly&sample=1&jsonsrc={"type": "Polygon", "coordinates": [[ [4, 60.0], [6, 60.0], [6, 59.0], [4, 59.0], [4, 60.0]]]}

Here zonly in mode means output z data only, no pairwise distance, optional. In polygon mode, we would not output pairwise distance, so it should speedup processing. Add row in the parameter mode separated by comma if you need this format (i.e., ?mode=zonly,row)
The parameter sample for polygon mode is default 5, means down-sampling 5 times in both x, y direction. That's because the data output is quite huge. But if you just want the 15-arcseconds resolution, adjust sample to 1 in this polygon mode. Default sample is 1 in other normal modes.

Multiple features are allowed:

https://api.odb.ntu.edu.tw/gebco?mode=zonly&jsonsrc={"type": "FeatureCollection", "features": [{ "type": "Feature", "properties": {}, "geometry": { "type": "Polygon", "coordinates": [ [ [4, 60.0], [6, 60.0], [6, 59.0], [4, 59.0], [4, 60.0] ] ] } }]}

from gebco.

cywhale avatar cywhale commented on August 15, 2024

Please. Just use it if it suits your work. Any feedbacks or features required are welcome.
DNORA looks promising. I just think recently I developed my tide API (use TPXO9_altas_v5 model, also in my github) and used one tide data from Norwegian Meteorological Institute to verify. I'm interested in surveying such forcasting tools more. I'm happy if the gebco API can help in this tool.

BTW, If you finally adopt this gebco API, and can give a credit to ODB somewhere in your documentation, please use

Ocean Data Bank, National Science and Technology Council, Taiwan. https://doi.org/10.5281/zenodo.7512112. Accessed from api.odb.ntu.edu.tw/gebco. v1.0.

Never mind if you would not write doc for using it.

from gebco.

cywhale avatar cywhale commented on August 15, 2024

Add the polygon mode in README.md. Close it. Feel free to reopen it if any questions.

from gebco.

Related Issues (1)

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.