[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:19.68,0:00:24.96,Default,,0000,0000,0000,,This lesson is called For Loop Fun. In this\Nlesson, we'll use a number line to play a dice game. Dialogue: 0,0:00:26.66,0:00:30.40,Default,,0000,0000,0000,,Each player will roll three times\Nto assign a starting value, Dialogue: 0,0:00:30.40,0:00:32.40,Default,,0000,0000,0000,,a stopping value, and our interval. Dialogue: 0,0:00:33.88,0:00:37.72,Default,,0000,0000,0000,,During each turn, we circle\Nour starting value, and every value that is Dialogue: 0,0:00:37.72,0:00:40.50,Default,,0000,0000,0000,,the same number of steps forward as our interval\Nvalue. Dialogue: 0,0:00:41.50,0:00:43.50,Default,,0000,0000,0000,,We stop circling when we get to our stopping value. Dialogue: 0,0:00:45.00,0:00:46.90,Default,,0000,0000,0000,,The person with the highest\Nscore wins! Dialogue: 0,0:00:47.82,0:00:50.14,Default,,0000,0000,0000,,For loops can come in handy in a lot of places. Dialogue: 0,0:00:51.44,0:00:54.40,Default,,0000,0000,0000,,If you were a\Nmeteorologist, you would use for loops all the time. Dialogue: 0,0:01:03.42,0:01:10.68,Default,,0000,0000,0000,,Hi, I'm Becky. I work at Able Driller\NRenewables as a wind meteorologist. Dialogue: 0,0:01:12.22,0:01:18.62,Default,,0000,0000,0000,,I forecast wind speeds for the Columbia River Gorge area, where the company owns wind farms. Dialogue: 0,0:01:19.96,0:01:23.24,Default,,0000,0000,0000,,We're trying to understand how much wind is going to be there, Dialogue: 0,0:01:23.90,0:01:26.58,Default,,0000,0000,0000,,so that we know how much power is going to be outputted. Dialogue: 0,0:01:27.00,0:01:31.38,Default,,0000,0000,0000,,We give that information to real time energy traders. They buy and sell power, Dialogue: 0,0:01:32.28,0:01:36.42,Default,,0000,0000,0000,,based on how much power we tell\Nthem is going to be there, in order to make sure Dialogue: 0,0:01:36.64,0:01:39.40,Default,,0000,0000,0000,,the power grid is balanced, your lights stay on, Dialogue: 0,0:01:39.40,0:01:44.36,Default,,0000,0000,0000,,and that we maximize energy we get out of our wind farms. Dialogue: 0,0:01:47.92,0:01:50.66,Default,,0000,0000,0000,,We're at the national control center for Eber Troller Renewables here in Portland, Dialogue: 0,0:01:50.66,0:01:56.00,Default,,0000,0000,0000,,and this is where we have information coming in from all our farms across the country. Dialogue: 0,0:01:57.98,0:02:03.42,Default,,0000,0000,0000,,Even the highest power computers\Ntoday can't simulate the atmosphere everywhere. Dialogue: 0,0:02:04.06,0:02:10.84,Default,,0000,0000,0000,,In computer forecasting models, we have what\Nwe call a grid. Each grid point is a latitude, Dialogue: 0,0:02:10.84,0:02:15.60,Default,,0000,0000,0000,,and a longitude. We have to calculate the physics, Dialogue: 0,0:02:15.60,0:02:20.44,Default,,0000,0000,0000,,and try to figure out wind speeds, temperature, pressure, that sort of thing. Dialogue: 0,0:02:21.18,0:02:23.84,Default,,0000,0000,0000,,Since these are fairly big grids and we're doing this in a lot of points, Dialogue: 0,0:02:23.94,0:02:28.50,Default,,0000,0000,0000,,we're looping over these\Nthings millions and millions of times. Dialogue: 0,0:02:29.40,0:02:35.82,Default,,0000,0000,0000,,Everything I do, I'll use for loops. Here for example\Nis a for loop right there. Dialogue: 0,0:02:38.22,0:02:44.22,Default,,0000,0000,0000,,When you're forecasting wind, there's so many different parameters that go into it, Dialogue: 0,0:02:44.24,0:02:48.92,Default,,0000,0000,0000,,that go into it it would be impossible for a human to sit down and do all those calculations. Dialogue: 0,0:02:51.78,0:02:55.66,Default,,0000,0000,0000,,There's so many different aspects to what's going to be affecting the wind Dialogue: 0,0:02:55.66,0:02:59.68,Default,,0000,0000,0000,,that we need a computer model in order to forecast it.