{"id":25476473,"url":"https://github.com/jonsafari/weather-data","last_synced_at":"2025-11-06T00:30:30.724Z","repository":{"id":90546789,"uuid":"58834832","full_name":"jonsafari/weather-data","owner":"jonsafari","description":"Worldwide weather data","archived":false,"fork":false,"pushed_at":"2020-02-04T07:43:13.000Z","size":1734,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-01-29T16:26:00.967Z","etag":null,"topics":["climate-data","climate-science","sql","weather","weather-data","weather-information","wmo"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonsafari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-14T23:26:16.000Z","updated_at":"2020-02-04T07:43:16.000Z","dependencies_parsed_at":"2023-07-19T06:01:07.869Z","dependency_job_id":null,"html_url":"https://github.com/jonsafari/weather-data","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.1428571428571429,"last_synced_commit":"0cb0320d7a98f7a6dcda04c7fa140046c8f3026c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonsafari%2Fweather-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonsafari%2Fweather-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonsafari%2Fweather-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonsafari%2Fweather-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonsafari","download_url":"https://codeload.github.com/jonsafari/weather-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239475944,"owners_count":19645041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["climate-data","climate-science","sql","weather","weather-data","weather-information","wmo"],"created_at":"2025-02-18T12:57:19.150Z","updated_at":"2025-11-06T00:30:30.694Z","avatar_url":"https://github.com/jonsafari.png","language":"Python","readme":"# Weather-data\nWorldwide weather data.  Thirty years of it.\n\nData and scripts are provided to build an SQL database of 30 years of international weather info.\n\n## Building the SQLite Database\nTo build the SQLite3 database, run the following:\n```Bash\npython3 wmo_norms_db.py\n```\nThis builds the file `wmo_norms.db` .\nYou can then use tools like [sqlitebrowser](http://sqlitebrowser.org) or the command-line interface `sqlite3 wmo_norms.db`.\n\n## Example Query\nThe file [example_queries.sql](example_queries.sql) includes sample queries.  For example, to list the sunniest places in the US, and some additional info:\n\n```sql\nselect station_meta.name as \"Place\",\n    an_sun.dec as \"December_Sun\",\n    an_low.jan as \"January_Low_Avg\",\n    an_hi.jul  as \"July_Hi_Avg\",\n    an_hi.jul - an_low.jan as \"Temp_Range\",\n    an_hum.jul as \"July_Humidity_Avg\"\nfrom allnorms an_sun\njoin station_meta on an_sun.station = station_meta.station\njoin allnorms an_low on an_low.station = an_sun.station\njoin allnorms an_hi  on an_hi.station = an_sun.station\njoin allnorms an_hum on an_hum.station = an_sun.station\nwhere station_meta.country_name = 'United States Of America'\n    and an_sun.clim_elem_code = '15' -- sunshine\n    and an_sun.statistic_code = '44' \n    and an_low.clim_elem_code = '03' -- mean low temp (in january)\n    and an_low.statistic_code = '01' \n    and an_low.jan \u003e -10             -- no cold places\n    and an_hi.clim_elem_code  = '02' -- mean hi temp (in july)\n    and an_hi.statistic_code  = '01' \n    and an_hum.clim_elem_code = '11' -- mean humidity (in july)\n    and an_hum.statistic_code = '94' \norder by an_sun.dec desc  limit 11;\n```\nThe result:\n\n|Place|December_Sun|January_Low_Avg|July_Hi_Avg|Temp_Range|July_Humidity_Avg|\n|---|---|---|---|---|---|\n|Yuma/Int'l Ap. AZ|252.7|6.8|41.4|34.6|35.2|\n|El Paso/Int'l TX|246.3|-1.4|35.6|37.0|43.9|\n|Tucson/Int'l AZ|245.8|3.7|37.4|33.7|41.6|\n|Phoenix/Int'l AZ|244.8|5.1|41.1|36.0|31.6|\n|Las Vegas/McC. NV|236.0|0.9|41.1|40.2|21.1|\n|Key West/Int'l FL|234.5|18.3|31.7|13.4|72.2|\n|San Diego/Lind. CA|231.3|9.4|24.6|15.2|74.6|\n|Albuquerque/Int'l NM|223.3|-5.7|33.6|39.3|41.9|\n|Flagstaff/Pulliam AZ|219.8|-9.3|27.7|37.0|51.1|\n|San Juan/Int'l PR|217.4|21.6|31.4|9.8|75.9|\n|Miami/Int'l FL|216.1|15.1|31.7|16.6|74.8|\n\n## Documentation\nDocumentation of the weather data is found in the directory [wmo_norms_1961-1990/doc/](wmo_norms_1961-1990/doc/) .\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonsafari%2Fweather-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonsafari%2Fweather-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonsafari%2Fweather-data/lists"}