servir / climateserv Goto Github PK
View Code? Open in Web Editor NEWhttps://climateserv.servirglobal.net/
https://climateserv.servirglobal.net/
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?
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.
Just curious, it seems like the goals of both projects are the same: download, subset, and visualize summary data all in one web tool that also has an API.
I have created a R package which uses your API client to get CHIRPS data into R. The first version is already available at github https://github.com/agrobioinfoservices/chirps
I think that is important to acknowledge your work on this API, so I added you as co-autor in the package. Let me know whether you agree with this and/or if is someone else who should be acknowledged.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.