# Hawaii weather stations list

**URL:** <https://community.wolfram.com/t/hawaii-weather-stations-list/17970>\
**Category:** Questions\
**Tags:** data-science, mathematica, curated-data\
**Created:** [April 14, 2021, 8:20pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970 "2021-04-14T20:20:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliteimor](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@aliteimor](https://community.wolfram.com/u/aliteimor)\
**Post date:** [April 14, 2021, 8:20pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/1 "2021-04-14T20:20:42Z")

</div>

Dear all,

I need a list of weather stations in Hawaii. Is it possible to extract that with Mathematica?

Thank you in advance for your kind support.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [April 15, 2021, 3:50pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/2 "2021-04-15T15:50:09Z")

</div>

Hi Alex,

Here is one way to do it

```
hawaiiStations = 
 GeoNearest["WeatherStation", 
   Entity["AdministrativeDivision", {"Hawaii", "UnitedStates"}], 13]

```

Why 13? I experimented with different values and 13 excluded stations that looked too far from the Hawaiian islands. Depending on how you intend to use the data you may want to include or exclude more stations.

```
EntityValue[hawaiiStations, {"Position", "Name"}] //  
  Apply[Labeled, #, {1}] & //
  GeoListPlot[#, PlotRangePadding -> Scaled[.1]] &

```

 ![1955plot.png](https://global.discourse-cdn.com/wolfram/original/2X/4/493a441e27e82a86995bb7958339a854a85663e3.png)

---

<div class="post-metadata">

**Author:** ![hmichel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hmichel/32/31351_2.png) [@hmichel](https://community.wolfram.com/u/hmichel)\
**Post date:** [April 15, 2021, 4:07pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/3 "2021-04-15T16:07:49Z")

</div>

Please try:

```
Map[#["Dataset"]&,GeoNearest["WeatherStation",Entity["AdministrativeDivision",List["Hawaii","UnitedStates"]]] ]

```

So the result is the Weather Stations in Hawaii that Wolfram Language is utilizing as part of current curated data.

The Hawaii entity subdivides to

```
AdministrativeDivisionData[Entity["AdministrativeDivision",List["Hawaii","UnitedStates"]], "Subdivisions"] 

```

Weather data information is a mixed of government, citizen, and coorporate (private) data what WRI chooses to curate may not be all available stations in a area, as some are private. See some links

[https://www.faa.gov/air\_traffic/weather/asos/?state=HI](https://www.faa.gov/air_traffic/weather/asos/?state=HI)

> **[CO-OPS Map - NOAA Tides & Currents](https://tidesandcurrents.noaa.gov/map/index.html?region=Hawaii)**

> **[APRSWXNET members](http://www.wxqa.com/states/HI.html)**

> **[Weather Observations | PacIOOS](http://www.pacioos.hawaii.edu/weather-category/obs/)**
>
> Get the latest observations from weather stations around the Pacific, including air temperature, wind, rainfall, and other conditions.

[https://www.ndbc.noaa.gov/radial\_search.php?lat1=21.019N&lon1=156.422W&uom=E&dist=250](https://www.ndbc.noaa.gov/radial_search.php?lat1=21.019N&lon1=156.422W&uom=E&dist=250)

> **[CO-OPS Map - NOAA Tides & Currents](https://tidesandcurrents.noaa.gov/map/index.html)**

> **[Hilo, HI Weather History | Weather Underground](https://www.wunderground.com/history/daily/PHTO/date/2021-4-15)**
>
> Hilo Weather Forecasts. Weather Underground provides local & long-range weather forecasts, weather reports, maps & tropical weather conditions for the Hilo area.

---

<div class="post-metadata">

**Author:** ![aliteimor](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@aliteimor](https://community.wolfram.com/u/aliteimor)\
**Post date:** [April 15, 2021, 5:30pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/4 "2021-04-15T17:30:10Z")

</div>

Rohit and Hans,

Thank you so much. It helped me a lot.

Is it possible to know which two stations have the longest air temperature records?

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [April 15, 2021, 6:01pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/5 "2021-04-15T18:01:13Z")

</div>

Query for the data over a long range and see which station returns the most values.

```
hawaiiStations //
  AssociationMap[WeatherData[Entity["WeatherStation", #], 
    "MeanTemperature", {{1900, 1, 1}, Today, "Day"}] &, #] & //
  DeleteMissing //
  ReverseSortBy[#["PathLength"] &]

```

---

<div class="post-metadata">

**Author:** ![ghorbani](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@ghorbani](https://community.wolfram.com/u/ghorbani)\
**Post date:** [April 17, 2021, 7:06pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/6 "2021-04-17T19:06:23Z")

</div>

Dear Rohit,

For a sample, I considered the “PHMK” weather station.

As list “data1” has missing data, I decided to fill up the gaps.

Unfortunately, after filling the final data series still has some missing elements.

Thank you for your help:)

```
(*main data with missing data*)

data0 = WeatherData["PHMK", 
   "TotalPrecipitation", {{1950, 1, 1}, {2020, 12, 31}, "Day"}];

data1 = QuantityMagnitude[data0["Values"]];

(*Filling the gaps in the main data*)

data2 = TimeSeriesResample[data0, 
  ResamplingMethod -> {"Interpolation", InterpolationOrder -> 1}]

data3 = QuantityMagnitude[data2["Values"]];

ListLinePlot /@ {data1, data3}

```

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [April 19, 2021, 11:46pm UTC](https://community.wolfram.com/t/hawaii-weather-stations-list/17970/7 "2021-04-19T23:46:28Z")

</div>

Hi Mohammad,

At first I thought that the problem was caused by

```
data1 = QuantityMagnitude[data0["Values"]]

```

The values are not `Quantity` objects so `QuantityMagnitude` is not needed. `QuantityMagnitude` is `Identity` unless the value is `Missing["NotAvailable"]`. In that case the result is `QuantityMagnitude[Missing["NotAvailable"]]`. I though that was interfering with the interpolation.

The interpolation is working just fine, what look like gaps are cause by zero values, not missing values.

```
data0 = WeatherData["PHMK", "TotalPrecipitation", {{1950, 1, 1}, {2020, 12, 31}, "Day"}];
ts0 = TimeSeries[data0, MissingDataMethod -> {"Interpolation", 1}]

```

If you look at the following sample you will see that all missing values have been correctly interpolated.

```
data0["Values"][[2200 ;; 2500]]
ts0["Values"][[2200 ;; 2500]]

```

Zero precipitation for many consecutive days is not unusual.

The question you asked me via email is a more complex and will take some time to figure out.
