|
102 | 102 | ], |
103 | 103 | "source": [ |
104 | 104 | "lat_lon = [44.624076,-124.280097]\n", |
105 | | - "region = wave.io.hindcast.region_selection(lat_lon)\n", |
| 105 | + "region = wave.io.hindcast.hindcast.region_selection(lat_lon)\n", |
106 | 106 | "print(region)" |
107 | 107 | ] |
108 | 108 | }, |
|
112 | 112 | "source": [ |
113 | 113 | "### 2. Download WPTO Hindcast Data from a Single Location\n", |
114 | 114 | "\n", |
115 | | - "In this example we will request 3-hour significant wave height for 1995 at the point (44.624076,-124.280097, near the PacWave site). We will speficy each of these as a variable and pass them to the wave IO hindacast function `request_wpto_dataset`. The data type will be a high-spatial-resolution dataset, year(s) will be 1995, latitude/longitude pairs will be for a point near PacWave, and the parameter will be significant wave height." |
| 115 | + "In this example we will request 3-hour significant wave height for 1995 at the point (44.624076,-124.280097, near the PacWave site). We will speficy each of these as a variable and pass them to the wave IO hindcast function `request_wpto_dataset`. The data type will be a high-spatial-resolution dataset, year(s) will be 1995, latitude/longitude pairs will be for a point near PacWave, and the parameter will be significant wave height." |
116 | 116 | ] |
117 | 117 | }, |
118 | 118 | { |
|
126 | 126 | "lat_lon = (44.624076,-124.280097) \n", |
127 | 127 | "parameter = 'significant_wave_height' \n", |
128 | 128 | "\n", |
129 | | - "Hs, metadata= wave.io.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years)" |
| 129 | + "Hs, metadata= wave.io.hindcast.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years)" |
130 | 130 | ] |
131 | 131 | }, |
132 | 132 | { |
|
206 | 206 | "cell_type": "markdown", |
207 | 207 | "metadata": {}, |
208 | 208 | "source": [ |
209 | | - "#### Hindacast Data Returned \n", |
| 209 | + "#### Hindcast Data Returned \n", |
210 | 210 | "\n", |
211 | 211 | "We can also take a look at the first 5 rows of the returned data by call the `head()` method on the returned data. By calling this below we can see that the returned data has a time index and a single column of significant wave height. The siginifcant wave height column has a 0 integer on the end of it refering to the index in the metadata. In out next example the importance of this integer will become more clear as we begin to request multiple locations." |
212 | 212 | ] |
|
382 | 382 | "lat_lon = ((44.624076,-124.280097),\n", |
383 | 383 | " (43.489171,-125.152137)) \n", |
384 | 384 | "\n", |
385 | | - "Te, metadata = wave.io.hindcast.request_wpto_point_data(data_type, parameter, lat_lon, years)\n", |
| 385 | + "Te, metadata = wave.io.hindcast.hindcast.request_wpto_point_data(data_type, parameter, lat_lon, years)\n", |
386 | 386 | "\n", |
387 | 387 | "# View Te from two locations\n", |
388 | 388 | "Te.head()" |
|
586 | 586 | "parameter = 'omni-directional_wave_power'\n", |
587 | 587 | "lat_lon = (44.624076,-124.280097) \n", |
588 | 588 | "\n", |
589 | | - "J, metadata= wave.io.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years) \n", |
| 589 | + "J, metadata= wave.io.hindcast.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years) \n", |
590 | 590 | "\n", |
591 | 591 | "J" |
592 | 592 | ] |
|
675 | 675 | "parameter = ['significant_wave_height','peak_period','mean_wave_direction']\n", |
676 | 676 | "lat_lon = (44.624076,-124.280097) \n", |
677 | 677 | "\n", |
678 | | - "data, metadata= wave.io.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years) " |
| 678 | + "data, metadata= wave.io.hindcast.hindcast.request_wpto_point_data(data_type,parameter,lat_lon,years) " |
679 | 679 | ] |
680 | 680 | }, |
681 | 681 | { |
|
1907 | 1907 | "source": [ |
1908 | 1908 | "year = '1993' # only one year can be passed at a time as a string\n", |
1909 | 1909 | "lat_lon=(43.489171,-125.152137)\n", |
1910 | | - "dir_spectra,meta = wave.io.hindcast.request_wpto_directional_spectrum(lat_lon,year)\n", |
| 1910 | + "dir_spectra,meta = wave.io.hindcast.hindcast.request_wpto_directional_spectrum(lat_lon,year)\n", |
1911 | 1911 | "\n", |
1912 | 1912 | "print(dir_spectra)" |
1913 | 1913 | ] |
|
0 commit comments