Message Boards Message Boards

0
|
4833 Views
|
1 Reply
|
2 Total Likes
View groups...
Share
Share this post:

Retrieve the rainfall in a city between 2 dates?

Posted 5 years ago

I am trying to learn a bit about the API Wolfram Alpha offers (to see if it can deliver the data I require to use it as an oracle in a solidity contract) but cant find an answer to the following.

I am able of retrieving the temperature in a city asking for "temperature in CITY".

What I would like to know is, if it is possible to use the API to retrieve something like "the amount of rainfall in CITY between 12 june 1999 5:00 am and 13 june 4:00 am"?

POSTED BY: Ruud Private
Posted 5 years ago

The Wolfram Language function WeatherData has historical rainfall data for many cities. e.g.

DateListPlot[WeatherData["Houston",  "TotalPrecipitation", {{2016, 1}, {2018, 10}, "Month"}], 
 Joined -> True]

enter image description here

Check the documentation.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract