Giter VIP home page Giter VIP logo

Comments (10)

billyz313 avatar billyz313 commented on September 2, 2024 2

@kauedesousa We just added that as a requirement for the new version that is being developed. We are overhauling the entire back end to make it more stable and flexible. Development has already begun and we hope for it to be available within the next two months. It will maintain all current API calls and returns as well as add some additional useful features including the netCDF for y'all.

from climateserv.

billyz313 avatar billyz313 commented on September 2, 2024 1

I have passed on the request to the team that is currently working on the new version of the API, i'll let you know when I get some feedback.

from climateserv.

billyz313 avatar billyz313 commented on September 2, 2024

Currently the API has a Download option which will download the all of the tif files in the date range clipped to the bounding box of the polygon. The new version that is being developed may be able to offer a better solution. Would a netCDF file with the gridded data subset to a minimum bounding box that covers the requested polygon with a binary mask applied based on the desired polygon work?

Alternatives to the netCDF would be to return a series of subset and masked GeoTiffs, or to return a CSV file with [lat,lon,time,value] for all gridded data points that fall within the polygon. The latter sounds most like what the stated request above is for but for polygons that are large relative to the grid resolution, subsetting, creating and transferring a lot of points in an ASCII/CSV format could get out-of-hand. It could also be really slow if the data files from which we are grabbing are not optimized for point extractions ...

from climateserv.

kauedesousa avatar kauedesousa commented on September 2, 2024

I think that @adamhsparks has a method to do this. What do you think @adamhsparks?

from climateserv.

adamhsparks avatar adamhsparks commented on September 2, 2024

We could work with a netCDF format. Understandably that's the easiest on your end, shouldn't create issues for us to write a client, I don't think.

from climateserv.

kauedesousa avatar kauedesousa commented on September 2, 2024

Hi @billyz313 can you show the documentation to fetch the netCDF files? I can't see it in the API docs.

from climateserv.

kauedesousa avatar kauedesousa commented on September 2, 2024

Ah I see. Thanks @billyz313!

from climateserv.

kauedesousa avatar kauedesousa commented on September 2, 2024

Hi @billyz313 , I hope you are doing fine

Just checking if you managed to develop the new version to allow calls for a bounding box.

Cheers!

from climateserv.

billyz313 avatar billyz313 commented on September 2, 2024

@kauedesousa Unfortunately we had a delay in the development, we are currently in a regrouping stage and trying to work out an ETA. I will keep you updated as I find out more.

from climateserv.

billyz313 avatar billyz313 commented on September 2, 2024

@kauedesousa You can now use operationtype=7 in the data request, this will return the jobID which you can poll for progress, when 100% you can make the request for the data https://climateserv.servirglobal.net/api/getFileForJobID/?id={jobID} This will return a zipped NetCDF which is masked to the polygon sent in the request.

from climateserv.

Related Issues (5)

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.