diff --git a/src/assets/data/weather-stations.json b/src/assets/data/weather-stations.json index 62d32f3..c5bf074 100644 --- a/src/assets/data/weather-stations.json +++ b/src/assets/data/weather-stations.json @@ -2779,168 +2779,6 @@ ], "ghcndID": "US1COBO0402" }, - { - "country": "US", - "state": "CO", - "latitude": 40.017, - "longitude": -105.05, - "name": "ERIE MUNICIPAL AIRPORT", - "elevation": "+1564.2", - "ICAO": "KEIK", - "mindate": "2003-02-01", - "maxdate": "2024-07-21", - "isdID": "72053400161,72053499999", - "ranges": [ - { - "mindate": "2014-07-01", - "maxdate": "2024-07-21", - "latitude": 40.017, - "longitude": -105.05, - "name": "ERIE MUNICIPAL AIRPORT", - "elevation": "+1564.2", - "ids": [ - { - "type": "USAF", - "id": "720534" - }, - { - "type": "WBAN", - "id": "00161" - }, - { - "type": "ICAO", - "id": "KEIK" - }, - { - "type": "isdID", - "id": "72053400161" - } - ] - }, - { - "mindate": "2010-02-18", - "maxdate": "2014-06-30", - "latitude": 40.017, - "longitude": -105.05, - "name": "ERIE MUNI", - "elevation": "+1564.0", - "ids": [ - { - "type": "USAF", - "id": "720534" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KEIK" - }, - { - "type": "isdID", - "id": "72053499999" - } - ] - }, - { - "mindate": "2003-02-01", - "maxdate": "2005-02-01", - "latitude": 40.0125, - "longitude": -105.0455, - "name": "ERIE 2.6 S, CO US", - "elevation": 1555.1, - "ids": [ - { - "type": "GHCND", - "id": "US1COWE0186" - } - ] - } - ], - "ghcndID": "US1COWE0186" - }, - { - "country": "US", - "state": "CA", - "latitude": 38.533, - "longitude": -121.783, - "name": "UNIVERSITY AIRPORT", - "elevation": "+0021.0", - "ICAO": "KEDU", - "mindate": "1893-01-01", - "maxdate": "2024-07-21", - "isdID": "72057600174,72057699999", - "ranges": [ - { - "mindate": "2009-01-02", - "maxdate": "2024-07-21", - "latitude": 38.533, - "longitude": -121.783, - "name": "UNIVERSITY AIRPORT", - "elevation": "+0021.0", - "ids": [ - { - "type": "USAF", - "id": "720576" - }, - { - "type": "WBAN", - "id": "00174" - }, - { - "type": "ICAO", - "id": "KEDU" - }, - { - "type": "isdID", - "id": "72057600174" - } - ] - }, - { - "mindate": "2008-07-21", - "maxdate": "2008-11-06", - "latitude": 38.533, - "longitude": -121.783, - "name": "DAVIS", - "elevation": "+0021.0", - "ids": [ - { - "type": "USAF", - "id": "720576" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KEDU" - }, - { - "type": "isdID", - "id": "72057699999" - } - ] - }, - { - "mindate": "1893-01-01", - "maxdate": "2024-06-01", - "latitude": 38.5349, - "longitude": -121.7761, - "name": "DAVIS 2 WSW EXPERIMENTAL FARM, CA US", - "elevation": 18.3, - "ids": [ - { - "type": "GHCND", - "id": "USC00042294" - } - ] - } - ], - "ghcndID": "USC00042294" - }, { "country": "US", "state": "MN", @@ -7394,113 +7232,6 @@ ], "ghcndID": "US1AZCH0069" }, - { - "country": "US", - "state": "CA", - "latitude": 33.933, - "longitude": -116.967, - "name": "BEAUMONT", - "elevation": "+0692.0", - "ICAO": "KBUO", - "mindate": "1906-03-01", - "maxdate": "2001-09-01", - "isdID": "72286723156,72286799999,99999923156", - "ranges": [ - { - "mindate": "1973-01-01", - "maxdate": "1997-12-31", - "latitude": 33.933, - "longitude": -116.967, - "name": "BEAUMONT", - "elevation": "+0692.0", - "ids": [ - { - "type": "USAF", - "id": "722867" - }, - { - "type": "WBAN", - "id": "23156" - }, - { - "type": "ICAO", - "id": "KBUO" - }, - { - "type": "isdID", - "id": "72286723156" - } - ] - }, - { - "mindate": "2000-01-01", - "maxdate": "2001-09-01", - "latitude": 33.933, - "longitude": -116.967, - "name": "BEAUMONT", - "elevation": "+0692.0", - "ids": [ - { - "type": "USAF", - "id": "722867" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KBUO" - }, - { - "type": "isdID", - "id": "72286799999" - } - ] - }, - { - "mindate": "1948-01-01", - "maxdate": "1953-08-26", - "latitude": 33.933, - "longitude": -116.967, - "name": "BEAUMONT 1 E", - "elevation": "+0794.0", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "23156" - }, - { - "type": "ICAO", - "id": "BUO" - }, - { - "type": "isdID", - "id": "99999923156" - } - ] - }, - { - "mindate": "1906-03-01", - "maxdate": "1971-10-01", - "latitude": 33.9291, - "longitude": -116.975, - "name": "BEAUMONT, CA US", - "elevation": 796.4, - "ids": [ - { - "type": "GHCND", - "id": "USC00040606" - } - ] - } - ], - "ghcndID": "USC00040606" - }, { "country": "US", "state": "CA", @@ -9254,87 +8985,6 @@ ], "ghcndID": "USC00229004" }, - { - "country": "US", - "state": "AR", - "latitude": 36.372, - "longitude": -94.107, - "name": "ROGERS MUNI-CARTER FLD APT", - "elevation": "+0412.4", - "ICAO": "KROG", - "mindate": "1892-01-01", - "maxdate": "2024-07-21", - "isdID": "72344953954,72344999999", - "ranges": [ - { - "mindate": "2006-01-01", - "maxdate": "2024-07-21", - "latitude": 36.372, - "longitude": -94.107, - "name": "ROGERS MUNI-CARTER FLD APT", - "elevation": "+0412.4", - "ids": [ - { - "type": "USAF", - "id": "723449" - }, - { - "type": "WBAN", - "id": "53954" - }, - { - "type": "ICAO", - "id": "KROG" - }, - { - "type": "isdID", - "id": "72344953954" - } - ] - }, - { - "mindate": "1992-05-06", - "maxdate": "1997-12-31", - "latitude": 36.372, - "longitude": -94.107, - "name": "ROGERS MUNI CARTER F", - "elevation": "+0414.0", - "ids": [ - { - "type": "USAF", - "id": "723449" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KROG" - }, - { - "type": "isdID", - "id": "72344999999" - } - ] - }, - { - "mindate": "1892-01-01", - "maxdate": "1975-02-01", - "latitude": 36.36667, - "longitude": -94.1, - "name": "ROGERS, AR US", - "elevation": 415.1, - "ids": [ - { - "type": "GHCND", - "id": "USC00036248" - } - ] - } - ], - "ghcndID": "USC00036248" - }, { "country": "US", "state": "OK", @@ -10223,7 +9873,7 @@ "name": "PAGE MUNICIPAL AIRPORT", "elevation": "+1307.0", "ICAO": "KPGA", - "mindate": "1957-11-01", + "mindate": "1977-08-27", "maxdate": "2024-07-21", "isdID": "72371003162,72371099999", "ranges": [ @@ -10292,23 +9942,9 @@ "id": "US1AZCN0069" } ] - }, - { - "mindate": "1957-11-01", - "maxdate": "2012-05-01", - "latitude": 36.9211, - "longitude": -111.4488, - "name": "PAGE AIRPORT, AZ US", - "elevation": 1301.5, - "ids": [ - { - "type": "GHCND", - "id": "USC00026180" - } - ] } ], - "ghcndID": "US1AZCN0069,USC00026180" + "ghcndID": "US1AZCN0069" }, { "country": "US", @@ -10501,133 +10137,38 @@ { "country": "US", "state": "AZ", - "latitude": 34.264, - "longitude": -110.008, - "name": "SHOW LOW MUNICIPAL AIRPORT", - "elevation": "+1954.1", - "ICAO": "KSOW", - "mindate": "1893-01-01", + "latitude": 34.85, + "longitude": -111.783, + "name": "SEDONA AIRPORT", + "elevation": "+1471.3", + "ICAO": "KSEZ", + "mindate": "1992-04-08", "maxdate": "2024-07-21", - "isdID": "72374703101,72374799999", + "isdID": "72375600375,72375699999", "ranges": [ { - "mindate": "2006-01-01", + "mindate": "2009-03-02", "maxdate": "2024-07-21", - "latitude": 34.264, - "longitude": -110.008, - "name": "SHOW LOW MUNICIPAL AIRPORT", - "elevation": "+1954.1", + "latitude": 34.85, + "longitude": -111.783, + "name": "SEDONA AIRPORT", + "elevation": "+1471.3", "ids": [ { "type": "USAF", - "id": "723747" + "id": "723756" }, { "type": "WBAN", - "id": "03101" + "id": "00375" }, { "type": "ICAO", - "id": "KSOW" + "id": "KSEZ" }, { "type": "isdID", - "id": "72374703101" - } - ] - }, - { - "mindate": "1985-01-17", - "maxdate": "1997-12-31", - "latitude": 34.267, - "longitude": -110, - "name": "SHOW LOW RGNL", - "elevation": "+1955.0", - "ids": [ - { - "type": "USAF", - "id": "723747" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KSOW" - }, - { - "type": "isdID", - "id": "72374799999" - } - ] - }, - { - "mindate": "1893-01-01", - "maxdate": "1965-11-01", - "latitude": 34.26667, - "longitude": -110, - "name": "SHOW LOW, AZ US", - "elevation": 1955, - "ids": [ - { - "type": "GHCND", - "id": "USC00027849" - } - ] - }, - { - "mindate": "1965-12-01", - "maxdate": "2024-06-01", - "latitude": 34.2639, - "longitude": -110.0075, - "name": "SHOW LOW AIRPORT, AZ US", - "elevation": 1954.1, - "ids": [ - { - "type": "GHCND", - "id": "USC00027855" - } - ] - } - ], - "ghcndID": "USC00027849,USC00027855" - }, - { - "country": "US", - "state": "AZ", - "latitude": 34.85, - "longitude": -111.783, - "name": "SEDONA AIRPORT", - "elevation": "+1471.3", - "ICAO": "KSEZ", - "mindate": "1992-04-08", - "maxdate": "2024-07-21", - "isdID": "72375600375,72375699999", - "ranges": [ - { - "mindate": "2009-03-02", - "maxdate": "2024-07-21", - "latitude": 34.85, - "longitude": -111.783, - "name": "SEDONA AIRPORT", - "elevation": "+1471.3", - "ids": [ - { - "type": "USAF", - "id": "723756" - }, - { - "type": "WBAN", - "id": "00375" - }, - { - "type": "ICAO", - "id": "KSEZ" - }, - { - "type": "isdID", - "id": "72375600375" + "id": "72375600375" } ] }, @@ -12287,223 +11828,6 @@ ], "ghcndID": "USC00142432" }, - { - "country": "US", - "state": "CO", - "latitude": 38.049, - "longitude": -103.513, - "name": "LA JUNTA MUNICIPAL AIRPORT", - "elevation": "+1278.7", - "ICAO": "KLHX", - "mindate": "1942-11-01", - "maxdate": "2024-07-21", - "isdID": "72463523067,99999923067", - "ranges": [ - { - "mindate": "1942-11-01", - "maxdate": "2024-07-21", - "latitude": 38.049, - "longitude": -103.513, - "name": "LA JUNTA MUNICIPAL AIRPORT", - "elevation": "+1278.7", - "ids": [ - { - "type": "USAF", - "id": "724635" - }, - { - "type": "WBAN", - "id": "23067" - }, - { - "type": "ICAO", - "id": "KLHX" - }, - { - "type": "isdID", - "id": "72463523067" - } - ] - }, - { - "mindate": "1948-01-01", - "maxdate": "1965-01-01", - "latitude": 38.049, - "longitude": -103.512, - "name": "LA JUNTA MUNICIPAL AP", - "elevation": "+1284.7", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "23067" - }, - { - "type": "ICAO", - "id": "KLHX" - }, - { - "type": "isdID", - "id": "99999923067" - } - ] - }, - { - "mindate": "2004-09-01", - "maxdate": "2006-03-01", - "latitude": 38.05, - "longitude": -103.5166, - "name": "LA JUNTA AIRPORT MSWS, CO US", - "elevation": 1282, - "ids": [ - { - "type": "GHCND", - "id": "US1COOT0019" - } - ] - } - ], - "ghcndID": "US1COOT0019" - }, - { - "country": "US", - "state": "CO", - "latitude": 38.072, - "longitude": -102.687, - "name": "LAMAR MUNICIPAL AIRPORT", - "elevation": "+1124.0", - "ICAO": "KLAA", - "mindate": "1995-11-28", - "maxdate": "2024-07-21", - "isdID": "72463603013,72463699999", - "ranges": [ - { - "mindate": "2006-01-01", - "maxdate": "2024-07-21", - "latitude": 38.072, - "longitude": -102.687, - "name": "LAMAR MUNICIPAL AIRPORT", - "elevation": "+1124.0", - "ids": [ - { - "type": "USAF", - "id": "724636" - }, - { - "type": "WBAN", - "id": "03013" - }, - { - "type": "ICAO", - "id": "KLAA" - }, - { - "type": "isdID", - "id": "72463603013" - } - ] - }, - { - "mindate": "1995-11-28", - "maxdate": "1997-12-31", - "latitude": 38.07, - "longitude": -102.688, - "name": "LAMAR MUNI", - "elevation": "+1130.0", - "ids": [ - { - "type": "USAF", - "id": "724636" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KLAA" - }, - { - "type": "isdID", - "id": "72463699999" - } - ] - }, - { - "mindate": "2004-09-01", - "maxdate": "2006-03-01", - "latitude": 38.0666, - "longitude": -102.6833, - "name": "LAMAR AIRPORT MSWS, CO US", - "elevation": 1136.9, - "ids": [ - { - "type": "GHCND", - "id": "US1COPW0011" - } - ] - } - ], - "ghcndID": "US1COPW0011" - }, - { - "country": "US", - "state": "CO", - "latitude": 38.289, - "longitude": -104.506, - "name": "PUEBLO MEMORIAL AIRPORT", - "elevation": "+1424.5", - "ICAO": "KPUB", - "mindate": "1942-10-01", - "maxdate": "2024-07-22", - "isdID": "72464093058", - "ranges": [ - { - "mindate": "1942-10-01", - "maxdate": "2024-07-22", - "latitude": 38.289, - "longitude": -104.506, - "name": "PUEBLO MEMORIAL AIRPORT", - "elevation": "+1424.5", - "ids": [ - { - "type": "USAF", - "id": "724640" - }, - { - "type": "WBAN", - "id": "93058" - }, - { - "type": "ICAO", - "id": "KPUB" - }, - { - "type": "isdID", - "id": "72464093058" - } - ] - }, - { - "mindate": "2004-09-01", - "maxdate": "2006-03-01", - "latitude": 38.2833, - "longitude": -104.4999, - "name": "PUEBLO AIRPORT, CO US", - "elevation": 1417, - "ids": [ - { - "type": "GHCND", - "id": "US1COPU0037" - } - ] - } - ], - "ghcndID": "US1COPU0037" - }, { "country": "US", "state": "CO", @@ -13292,152 +12616,31 @@ "maxdate": "1974-05-01", "latitude": 39.95, "longitude": -105.83333, - "name": "FRASER, CO US", - "elevation": 2609.1, - "ids": [ - { - "type": "GHCND", - "id": "USC00053113" - } - ] - }, - { - "mindate": "2016-09-01", - "maxdate": "2017-07-01", - "latitude": 39.957397, - "longitude": -105.829247, - "name": "FRASER 2.3 NW, CO US", - "elevation": 2624.6, - "ids": [ - { - "type": "GHCND", - "id": "US1COGR0072" - } - ] - } - ], - "ghcndID": "USC00053113,US1COGR0072" - }, - { - "country": "US", - "state": "CO", - "latitude": 40.174, - "longitude": -103.215, - "name": "COLORADO PLAINS RGNL ARPT", - "elevation": "+1428.0", - "ICAO": "KAKO", - "mindate": "1948-01-01", - "maxdate": "2024-07-21", - "isdID": "72469824015,72469899999,99999924015", - "ranges": [ - { - "mindate": "1973-01-01", - "maxdate": "2024-07-21", - "latitude": 40.174, - "longitude": -103.215, - "name": "COLORADO PLAINS RGNL ARPT", - "elevation": "+1428.0", - "ids": [ - { - "type": "USAF", - "id": "724698" - }, - { - "type": "WBAN", - "id": "24015" - }, - { - "type": "ICAO", - "id": "KAKO" - }, - { - "type": "isdID", - "id": "72469824015" - } - ] - }, - { - "mindate": "2000-01-01", - "maxdate": "2003-12-31", - "latitude": 40.183, - "longitude": -103.217, - "name": "COLORADO PLAINS RGNL", - "elevation": "+1437.0", - "ids": [ - { - "type": "USAF", - "id": "724698" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KAKO" - }, - { - "type": "isdID", - "id": "72469899999" - } - ] - }, - { - "mindate": "1948-01-01", - "maxdate": "1955-01-01", - "latitude": 40.167, - "longitude": -103.217, - "name": "AKRON WASHINGTON CO AP", - "elevation": "+1408.5", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "24015" - }, - { - "type": "ICAO", - "id": "KAKO" - }, - { - "type": "isdID", - "id": "99999924015" - } - ] - }, - { - "mindate": "2001-11-01", - "maxdate": "2006-03-01", - "latitude": 40.1708, - "longitude": -103.2203, - "name": "AKRON 1.0 NW, CO US", - "elevation": 1431, + "name": "FRASER, CO US", + "elevation": 2609.1, "ids": [ { "type": "GHCND", - "id": "US1COWA0010" + "id": "USC00053113" } ] }, { - "mindate": "2017-06-01", - "maxdate": "2019-07-01", - "latitude": 40.168303, - "longitude": -103.219294, - "name": "AKRON 0.6 NW, CO US", - "elevation": 1428.6, + "mindate": "2016-09-01", + "maxdate": "2017-07-01", + "latitude": 39.957397, + "longitude": -105.829247, + "name": "FRASER 2.3 NW, CO US", + "elevation": 2624.6, "ids": [ { "type": "GHCND", - "id": "US1COWA0077" + "id": "US1COGR0072" } ] } ], - "ghcndID": "US1COWA0010,US1COWA0077" + "ghcndID": "USC00053113,US1COGR0072" }, { "country": "US", @@ -13575,87 +12778,6 @@ ], "ghcndID": "US1FLCT0045" }, - { - "country": "US", - "state": "CO", - "latitude": 40.436, - "longitude": -104.632, - "name": "GREELEY-WELD COUNTY ARPT", - "elevation": "+1431.7", - "ICAO": "KGXY", - "mindate": "1988-01-05", - "maxdate": "2024-07-21", - "isdID": "72476824051,72476899999", - "ranges": [ - { - "mindate": "2006-01-01", - "maxdate": "2024-07-21", - "latitude": 40.436, - "longitude": -104.632, - "name": "GREELEY-WELD COUNTY ARPT", - "elevation": "+1431.7", - "ids": [ - { - "type": "USAF", - "id": "724768" - }, - { - "type": "WBAN", - "id": "24051" - }, - { - "type": "ICAO", - "id": "KGXY" - }, - { - "type": "isdID", - "id": "72476824051" - } - ] - }, - { - "mindate": "1988-01-05", - "maxdate": "1997-12-31", - "latitude": 40.437, - "longitude": -104.633, - "name": "GREELEY WELD CO", - "elevation": "+1432.0", - "ids": [ - { - "type": "USAF", - "id": "724768" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KGXY" - }, - { - "type": "isdID", - "id": "72476899999" - } - ] - }, - { - "mindate": "1999-10-01", - "maxdate": "2006-03-01", - "latitude": 40.428, - "longitude": -104.6325, - "name": "GLY 3.0 NE, CO US", - "elevation": 1414.9, - "ids": [ - { - "type": "GHCND", - "id": "US1COWE0079" - } - ] - } - ], - "ghcndID": "US1COWE0079" - }, { "country": "US", "state": "CO", @@ -13737,87 +12859,6 @@ ], "ghcndID": "US1COLR0516" }, - { - "country": "US", - "state": "CA", - "latitude": 37.371, - "longitude": -118.359, - "name": "BISHOP AIRPORT", - "elevation": "+1252.9", - "ICAO": "KBIH", - "mindate": "1943-01-16", - "maxdate": "2024-07-21", - "isdID": "72480023157,99999923157", - "ranges": [ - { - "mindate": "1943-01-16", - "maxdate": "2024-07-21", - "latitude": 37.371, - "longitude": -118.359, - "name": "BISHOP AIRPORT", - "elevation": "+1252.9", - "ids": [ - { - "type": "USAF", - "id": "724800" - }, - { - "type": "WBAN", - "id": "23157" - }, - { - "type": "ICAO", - "id": "KBIH" - }, - { - "type": "isdID", - "id": "72480023157" - } - ] - }, - { - "mindate": "1948-01-04", - "maxdate": "1972-12-31", - "latitude": 37.371, - "longitude": -118.358, - "name": "BISHOP AIRPORT", - "elevation": "+1263.4", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "23157" - }, - { - "type": "ICAO", - "id": "KBIH" - }, - { - "type": "isdID", - "id": "99999923157" - } - ] - }, - { - "mindate": "1996-12-01", - "maxdate": "2024-06-01", - "latitude": 37.37081, - "longitude": -118.36729, - "name": "BISHOP, CA US", - "elevation": 1251.5, - "ids": [ - { - "type": "GHCND", - "id": "USC00040823" - } - ] - } - ], - "ghcndID": "USC00040823" - }, { "country": "US", "state": "CA", @@ -21874,87 +20915,6 @@ ], "ghcndID": "USC00291918" }, - { - "country": "US", - "state": "CA", - "latitude": 32.6263, - "longitude": -116.4699, - "name": "CAMPO, CA US", - "elevation": 801.6, - "ICAO": "KCZZ", - "mindate": "1948-07-01", - "maxdate": "2024-06-01", - "isdID": "74718603164,74718699999", - "ranges": [ - { - "mindate": "2006-01-01", - "maxdate": "2020-10-27", - "latitude": 32.626, - "longitude": -116.468, - "name": "CAMPO", - "elevation": "+0805.0", - "ids": [ - { - "type": "USAF", - "id": "747186" - }, - { - "type": "WBAN", - "id": "03164" - }, - { - "type": "ICAO", - "id": "KCZZ" - }, - { - "type": "isdID", - "id": "74718603164" - } - ] - }, - { - "mindate": "1973-01-01", - "maxdate": "1997-12-31", - "latitude": 32.633, - "longitude": -116.467, - "name": "CAMPO", - "elevation": "+0807.0", - "ids": [ - { - "type": "USAF", - "id": "747186" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "KCZZ" - }, - { - "type": "isdID", - "id": "74718699999" - } - ] - }, - { - "mindate": "1948-07-01", - "maxdate": "2024-06-01", - "latitude": 32.6263, - "longitude": -116.4699, - "name": "CAMPO, CA US", - "elevation": 801.6, - "ids": [ - { - "type": "GHCND", - "id": "USC00041424" - } - ] - } - ], - "ghcndID": "USC00041424" - }, { "country": "US", "state": "GA", @@ -22415,61 +21375,6 @@ ], "ghcndID": "US1NCPS0007" }, - { - "country": "US", - "state": "AR", - "latitude": 35.63333, - "longitude": -91.16667, - "name": "NEWPORT MUNICIPAL AIRPORT, AR US", - "elevation": 72.8, - "ICAO": "EWP", - "mindate": "1943-01-01", - "maxdate": "2024-07-01", - "isdID": "74909599999", - "ranges": [ - { - "mindate": "1943-01-01", - "maxdate": "1944-07-26", - "latitude": 35.633, - "longitude": -91.166, - "name": "NEWPORT ARKANSAS AAF", - "elevation": "+0074.0", - "ids": [ - { - "type": "USAF", - "id": "749095" - }, - { - "type": "WBAN", - "id": "99999" - }, - { - "type": "ICAO", - "id": "EWP" - }, - { - "type": "isdID", - "id": "74909599999" - } - ] - }, - { - "mindate": "2012-09-01", - "maxdate": "2024-07-01", - "latitude": 35.63333, - "longitude": -91.16667, - "name": "NEWPORT MUNICIPAL AIRPORT, AR US", - "elevation": 72.8, - "ids": [ - { - "type": "GHCND", - "id": "USC00035189" - } - ] - } - ], - "ghcndID": "USC00035189" - }, { "country": "US", "state": "NY", @@ -24429,76 +23334,7 @@ "latitude": 33.715, "longitude": -108.777, "name": "RESERVE 1 W", - "elevation": "+1780.6", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "03080" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999903080" - } - ] - }, - { - "mindate": "1906-12-01", - "maxdate": "1954-03-01", - "latitude": 33.7158, - "longitude": -108.7769, - "name": "RESERVE RANGER STATION, NM US", - "elevation": 1782.2, - "ids": [ - { - "type": "GHCND", - "id": "USC00294101" - } - ] - }, - { - "mindate": "1954-04-01", - "maxdate": "2024-06-01", - "latitude": 33.7158, - "longitude": -108.7769, - "name": "RESERVE RANGER STATION, NM US", - "elevation": 1782.2, - "ids": [ - { - "type": "GHCND", - "id": "USC00297386" - } - ] - } - ], - "ghcndID": "USC00294101,USC00297386" - }, - { - "country": "US", - "state": "CO", - "latitude": 39.655, - "longitude": -102.622, - "name": "STRATTON 24 N", - "elevation": "+1283.8", - "ICAO": "", - "mindate": "2000-06-01", - "maxdate": "2014-06-01", - "isdID": "99999903083", - "ranges": [ - { - "mindate": "2009-06-14", - "maxdate": "2014-06-01", - "latitude": 39.655, - "longitude": -102.622, - "name": "STRATTON 24 N", - "elevation": "+1283.8", + "elevation": "+1780.6", "ids": [ { "type": "USAF", @@ -24506,7 +23342,7 @@ }, { "type": "WBAN", - "id": "03083" + "id": "03080" }, { "type": "ICAO", @@ -24514,26 +23350,40 @@ }, { "type": "isdID", - "id": "99999903083" + "id": "99999903080" } ] }, { - "mindate": "2000-06-01", - "maxdate": "2006-02-01", - "latitude": 39.6549, - "longitude": -102.6259, - "name": "LIBERTY 0.1 SE, CO US", - "elevation": 1289.9, + "mindate": "1906-12-01", + "maxdate": "1954-03-01", + "latitude": 33.7158, + "longitude": -108.7769, + "name": "RESERVE RANGER STATION, NM US", + "elevation": 1782.2, + "ids": [ + { + "type": "GHCND", + "id": "USC00294101" + } + ] + }, + { + "mindate": "1954-04-01", + "maxdate": "2024-06-01", + "latitude": 33.7158, + "longitude": -108.7769, + "name": "RESERVE RANGER STATION, NM US", + "elevation": 1782.2, "ids": [ { "type": "GHCND", - "id": "US1COYU0010" + "id": "USC00297386" } ] } ], - "ghcndID": "US1COYU0010" + "ghcndID": "USC00294101,USC00297386" }, { "country": "US", @@ -25689,61 +24539,6 @@ ], "ghcndID": "US1NMLU0058" }, - { - "country": "US", - "state": "CO", - "latitude": 38.239913, - "longitude": -104.634648, - "name": "PUEBLO 4.1 SSW, CO US", - "elevation": 1463, - "ICAO": "", - "mindate": "1948-01-01", - "maxdate": "2012-09-01", - "isdID": "99999923068", - "ranges": [ - { - "mindate": "1948-01-01", - "maxdate": "1954-07-01", - "latitude": 38.233, - "longitude": -104.633, - "name": "PUEBLO WB AIRPORT", - "elevation": "+1464.9", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "23068" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999923068" - } - ] - }, - { - "mindate": "2006-08-01", - "maxdate": "2012-09-01", - "latitude": 38.239913, - "longitude": -104.634648, - "name": "PUEBLO 4.1 SSW, CO US", - "elevation": 1463, - "ids": [ - { - "type": "GHCND", - "id": "US1COPU0047" - } - ] - } - ], - "ghcndID": "US1COPU0047" - }, { "country": "US", "state": "CA", @@ -25854,61 +24649,6 @@ ], "ghcndID": "USC00224173" }, - { - "country": "US", - "state": "AR", - "latitude": 35.82, - "longitude": -91.781, - "name": "BATESVILLE 8 WNW", - "elevation": "+0138.7", - "ICAO": "", - "mindate": "1940-01-01", - "maxdate": "2024-07-21", - "isdID": "99999923904", - "ranges": [ - { - "mindate": "2006-12-19", - "maxdate": "2024-07-21", - "latitude": 35.82, - "longitude": -91.781, - "name": "BATESVILLE 8 WNW", - "elevation": "+0138.7", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "23904" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999923904" - } - ] - }, - { - "mindate": "1940-01-01", - "maxdate": "1949-06-01", - "latitude": 35.81667, - "longitude": -91.78333, - "name": "BETHESDA, AR US", - "elevation": 153, - "ids": [ - { - "type": "GHCND", - "id": "USC00030644" - } - ] - } - ], - "ghcndID": "USC00030644" - }, { "country": "US", "state": "TX", @@ -26074,61 +24814,6 @@ ], "ghcndID": "US1NVHT0005" }, - { - "country": "US", - "state": "AZ", - "latitude": 34.6106, - "longitude": -111.8382, - "name": "MONTEZUMA CASTLE NATIONAL MONUMENT, AZ US", - "elevation": 969.3, - "ICAO": "", - "mindate": "1938-11-01", - "maxdate": "2024-05-01", - "isdID": "99999953160", - "ranges": [ - { - "mindate": "2010-03-02", - "maxdate": "2014-06-01", - "latitude": 34.614, - "longitude": -111.843, - "name": "CAMP VERDE 3 N", - "elevation": "+1046.7", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "53160" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999953160" - } - ] - }, - { - "mindate": "1938-11-01", - "maxdate": "2024-05-01", - "latitude": 34.6106, - "longitude": -111.8382, - "name": "MONTEZUMA CASTLE NATIONAL MONUMENT, AZ US", - "elevation": 969.3, - "ids": [ - { - "type": "GHCND", - "id": "USC00025635" - } - ] - } - ], - "ghcndID": "USC00025635" - }, { "country": "US", "state": "AZ", @@ -26184,116 +24869,6 @@ ], "ghcndID": "USC00021314" }, - { - "country": "US", - "state": "AZ", - "latitude": 36.864, - "longitude": -111.601, - "name": "PAGE 9 WSW", - "elevation": "+0991.8", - "ICAO": "", - "mindate": "1916-04-01", - "maxdate": "2014-06-01", - "isdID": "99999953164", - "ranges": [ - { - "mindate": "2010-08-03", - "maxdate": "2014-06-01", - "latitude": 36.864, - "longitude": -111.601, - "name": "PAGE 9 WSW", - "elevation": "+0991.8", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "53164" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999953164" - } - ] - }, - { - "mindate": "1916-04-01", - "maxdate": "2011-12-01", - "latitude": 36.8644, - "longitude": -111.6022, - "name": "LEES FERRY, AZ US", - "elevation": 978.4, - "ids": [ - { - "type": "GHCND", - "id": "USC00024849" - } - ] - } - ], - "ghcndID": "USC00024849" - }, - { - "country": "US", - "state": "AZ", - "latitude": 31.9555, - "longitude": -112.8002, - "name": "ORGAN PIPE CACTUS NM, AZ US", - "elevation": 511.5, - "ICAO": "", - "mindate": "1944-01-01", - "maxdate": "2024-06-01", - "isdID": "99999953168", - "ranges": [ - { - "mindate": "2010-09-27", - "maxdate": "2014-06-01", - "latitude": 31.95, - "longitude": -112.801, - "name": "AJO 29 S", - "elevation": "+0506.3", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "53168" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999953168" - } - ] - }, - { - "mindate": "1944-01-01", - "maxdate": "2024-06-01", - "latitude": 31.9555, - "longitude": -112.8002, - "name": "ORGAN PIPE CACTUS NM, AZ US", - "elevation": 511.5, - "ids": [ - { - "type": "GHCND", - "id": "USC00026132" - } - ] - } - ], - "ghcndID": "USC00026132" - }, { "country": "US", "state": "AZ", @@ -26349,61 +24924,6 @@ ], "ghcndID": "USC00020750" }, - { - "country": "US", - "state": "AZ", - "latitude": 34.3925, - "longitude": -110.558, - "name": "HEBER BLACK MESA RANGER STATION, AZ US", - "elevation": 2008.6, - "ICAO": "", - "mindate": "1950-08-01", - "maxdate": "2024-05-01", - "isdID": "99999953170", - "ranges": [ - { - "mindate": "2009-12-17", - "maxdate": "2014-06-01", - "latitude": 34.398, - "longitude": -110.566, - "name": "HEBER 3 SE", - "elevation": "+2019.3", - "ids": [ - { - "type": "USAF", - "id": "999999" - }, - { - "type": "WBAN", - "id": "53170" - }, - { - "type": "ICAO", - "id": "" - }, - { - "type": "isdID", - "id": "99999953170" - } - ] - }, - { - "mindate": "1950-08-01", - "maxdate": "2024-05-01", - "latitude": 34.3925, - "longitude": -110.558, - "name": "HEBER BLACK MESA RANGER STATION, AZ US", - "elevation": 2008.6, - "ids": [ - { - "type": "GHCND", - "id": "USC00023961" - } - ] - } - ], - "ghcndID": "USC00023961" - }, { "country": "US", "state": "NM", @@ -26497,20 +25017,6 @@ } ] }, - { - "mindate": "1961-05-01", - "maxdate": "2024-06-01", - "latitude": 36.46263, - "longitude": -116.8672, - "name": "DEATH VALLEY NATIONAL PARK, CA US", - "elevation": -59.1, - "ids": [ - { - "type": "GHCND", - "id": "USC00042319" - } - ] - }, { "mindate": "1911-06-01", "maxdate": "1961-04-01", @@ -26526,7 +25032,7 @@ ] } ], - "ghcndID": "USC00042319,USC00043603" + "ghcndID": "USC00043603" }, { "country": "US", @@ -27666,23 +26172,9 @@ "id": "USC00050109" } ] - }, - { - "mindate": "2000-05-01", - "maxdate": "2000-09-01", - "latitude": 40.1551, - "longitude": -103.1439, - "name": "AKRON 4 E, CO US", - "elevation": 1386.8, - "ids": [ - { - "type": "GHCND", - "id": "US1COWA0007" - } - ] } ], - "ghcndID": "USC00050109,US1COWA0007" + "ghcndID": "USC00050109" }, { "country": "US", diff --git a/src/bin/noaa-cdo-station-list-all b/src/bin/noaa-cdo-station-list-all index 9719b25..04044b7 100755 --- a/src/bin/noaa-cdo-station-list-all +++ b/src/bin/noaa-cdo-station-list-all @@ -5,65 +5,40 @@ # Requires a CDO Token obtainable through the CDO website. # CDO Token should be placed in ~/.noaa_rc # - PROGNAME=$(basename $0) DIRNAME=$(dirname $0) +USAGE="$PROGNAME lat long" + . $DIRNAME/.noaa_rc . ~/.noaa_rc +#if [ $# != 2 ]; then +# echo usage: $USAGE +# exit 1 +#fi + TOKEN_PHRASE="token: $CDO_TOKEN" URL="$CDO_URL$CDO_ENDPOINT_STATIONS" function getSample() { - # curl -H "$TOKEN_PHRASE" "$URL?datasetid=GSOM&FIPS=50&locationid=FIPS:US&limit=1000&offset=$1" > $2 - local retries=0 - local success=false - local max_retries=5 - local backoff_time=2 # Initial backoff time in seconds - - # Sometimes these curl requests return empty files or html error pages - # After a failure, we wait increasingly long amounts of time before retrying (until we hit max_retries) - # This has been effective to get the data to load (without it we get a lot of empty files, and breakage) - while [ $retries -lt $max_retries ] && [ "$success" = false ]; do - echo "curl for batch $1 ..." - curl -H "$TOKEN_PHRASE" "$URL?datasetid=GSOM&FIPS=50&locationid=FIPS:US&limit=1000&offset=$1" > $2 - if [ -s $2 ] && (head -c 1 $2 | grep -qE '\{|\['); then - if jq empty $2 >/dev/null 2>&1; then - success=true - break - fi - fi - echo "Attempt $((retries+1)) failed. Retrying in $backoff_time seconds..." - sleep $backoff_time - backoff_time=$((backoff_time * 2)) # Exponential backoff - retries=$((retries + 1)) - done - - if [ "$success" = false ]; then - echo "Error: Failed to fetch valid JSON after $max_retries attempts." - exit 1 - fi + curl -H "$TOKEN_PHRASE" "$URL?datasetid=GSOM&FIPS=50&locationid=FIPS:US&limit=1000&offset=$1" > $2 } mkdir /tmp/${PROGNAME}_$$ i=1 offset=$i while [ $i -lt 59 ] ; do - f=/tmp/${PROGNAME}_$$/stations_${i}.json - echo $offset $f - getSample $offset $f - i=$(expr $i + 1) - offset=$(expr $i \* 1000 + 1) +f=/tmp/${PROGNAME}_$$/stations_${i}.json +echo $offset $f +getSample $offset $f +i=$(expr $i + 1) +offset=$(expr $i \* 1000 + 1) done -echo "All JSON files downloaded and verified." - -combined_json="/tmp/combined_${PROGNAME}_$$.json" -jq -s '.' /tmp/${PROGNAME}_$$/*.json > "$combined_json" && echo "Combined JSON saved to $combined_json" +echo 'DONE, run manual concat script next' -processed_json="/tmp/processed_${PROGNAME}_$$.json" -jq '[.[].results[]]' "$combined_json" > "$processed_json" && echo "Processed JSON (flattened results) saved to $processed_json" +# jq -s '.' /tmp/${PROGNAME}_$$/*.json | jq [.[].results[]] # rm -r /tmp/${PROGNAME}_$$ diff --git a/src/bin/noaa-manual-cdo-concat b/src/bin/noaa-manual-cdo-concat new file mode 100755 index 0000000..8459504 --- /dev/null +++ b/src/bin/noaa-manual-cdo-concat @@ -0,0 +1,19 @@ +#!/bin/bash +# This script processes JSON files in a specified directory and outputs the concatenated results. +# Usage: my-concat-script my-directory-of-json-files > myoutputfile.json + +if [ $# -ne 1 ]; then + echo "Usage: $0 directory-of-json-files" + exit 1 +fi + +INPUT_DIR=$1 + +if [ ! -d "$INPUT_DIR" ]; then + echo "Error: Directory $INPUT_DIR does not exist." + exit 1 +fi + +# Concatenating JSON files in $INPUT_DIR... and sending to jq... output via > to supplied output file" + +jq -s '.' "$INPUT_DIR"/*.json | jq [.[].results[]] \ No newline at end of file