Giter VIP home page Giter VIP logo

climateserv's People

Contributors

billyz313 avatar sarvapulla avatar servirglobal avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

climateserv's Issues

Fetch data from regions using API service

Hi @billyz313, there is any possibility to adjust the API service to fetch the CHIRPS data for all the cells in the inputted geojson POLYGON? This will help a large number of CHIRPS users that mostly work with this data for large geographical coverage, mainly in agriculture and ecology.

So, instead of returning the average (or max, min, mean) value for the provided geojson POLYGON the call would return the values for each p05 cell in the given POLYGON and dates. This could reduce the traffic in the server and return the data for large areas a bit faster in a single call.

What do you think?

Examples of getDataFromRequest and getDataRequestProgress

I've followed the docs, and performed a seemingly successfull call to submitDataRequest. I got the response:

[
"5b099a99-6d0d-45f2-ada1-26bcba60df61"
]

When submitting a getDataFromRequest like this: http://climateserv.servirglobal.net/chirps/getDataFromRequest/?id=5b099a99-6d0d-45f2-ada1-26bcba60df61

... the service returns 200 OK but with the message "need to send id". An error message [-1] is returned when using the getDataRequestProgress in a similar way.

I suppose there's some kind of peculiarity that I've missed. Examples of correct requests would be highly appreciated.

Order for raw CHIRPS data over large region is stuck

I'm curious if the job is going through, since the job ID keeps changing each second. The area is a large portion of France and a bit of Switzerland spanning the Rhone river. When I try to submit the job with the programmatic API I get a 500 internal server error. Here's my code:

import requests as r

poly = {"type":"Polygon",
        "coordinates":[[[4.3121337890625,43.393073720674415],
                        [6.2347412109375,43.393073720674415],
                        [6.2347412109375,46.20644812194458],
                        [4.3121337890625,46.20644812194458],
                        [4.3121337890625,43.393073720674415]
                       ]
                      ]
       }
start_time = "01/01/1981"
end_time = "07/27/2020"

request_str = f"https://climateserv.servirglobal.net/chirps/submitDataRequest/?datatype=0&begintime={start_time}&endtime={end_time}&intervaltype=0&operationtype=5&callback=successCallback&dateType_Category=default&isZip_CurrentDataType=false&geometry={poly}"

response = r.get(request_str)

response.text

And the GUI response
Selection_105

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.