Skip to content

Instantly share code, notes, and snippets.

@praeclarum
Created April 7, 2021 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praeclarum/5fb69ceba615c8e248bb944e9a1709a3 to your computer and use it in GitHub Desktop.
Save praeclarum/5fb69ceba615c8e248bb944e9a1709a3 to your computer and use it in GitHub Desktop.
Rainfall using Calca

Rainfall in Gallons

I wonder how much water falls on land throughout the year? We can use a rainfall database to find out how much it rains in Seattle and then use Calca's unit conversion support to help us determine that.

land area = 0.25 acre

avg annual precip = 36.15 inch / year

daily rain accumulation
 = avg annual precip * land area
   in gallon/day
 => 671.90115 gallon/day

Wow, that's a lot of water, but what if we just have a bucket?

land area = 1ft * 1ft

daily rain accumulation => 0.0617 gallon/day

That's not very much... How many cups is that?

daily rain accumulation in cups/day => 0.98718 cups/day

So if I left a 1 ft by 1 ft bucket around I could collect about a cup of water every day. And they say it rains a lot.

Let's see how the rain accumulation changes with respect to the land area:

plot(daily rain accumulation(land area=x) in gallon/day, 0..1acre)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment