{"id":17331748,"url":"https://github.com/alanswx/weathertileexamples","last_synced_at":"2025-04-14T17:31:15.418Z","repository":{"id":82485765,"uuid":"45200052","full_name":"alanswx/WeatherTileExamples","owner":"alanswx","description":"Simple examples to make weather tilesets for your favorite mapping system.","archived":false,"fork":false,"pushed_at":"2020-10-12T01:32:11.000Z","size":4829,"stargazers_count":22,"open_issues_count":2,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-01T05:32:51.915Z","etag":null,"topics":["radar","tilesets","weather","wind"],"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/alanswx.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":"2015-10-29T17:38:38.000Z","updated_at":"2024-03-17T21:13:52.000Z","dependencies_parsed_at":"2023-09-21T20:13:28.780Z","dependency_job_id":null,"html_url":"https://github.com/alanswx/WeatherTileExamples","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.2321428571428571,"last_synced_commit":"583ac5831c699b4d35375517da04e3a20bee3bd7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanswx%2FWeatherTileExamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanswx%2FWeatherTileExamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanswx%2FWeatherTileExamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanswx%2FWeatherTileExamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alanswx","download_url":"https://codeload.github.com/alanswx/WeatherTileExamples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223639403,"owners_count":17177816,"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":["radar","tilesets","weather","wind"],"created_at":"2024-10-15T14:55:32.125Z","updated_at":"2024-11-08T06:04:07.453Z","avatar_url":"https://github.com/alanswx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherTileExamples\nSimple examples to make tilesets for your favorite mapping system.\n\nThis is a simple set of examples that will show you how to take some of the newest, coolest NOAA products and turn them into tile sets for use in a web map mashup, or with WhirlyGlobe-Maply.\n\nThese examples rely on Vagrant and VirtualBox to run a Centos 7 environment which we will use yum to install gdal.  Centos 7 with the epel gives us a reasonable install of gdal (version \u003e= 1.11.2). We need this new of a version to handle opening the MRMS gz file without gzipping them (using a virtual file system) and for the alpha to work correctly with our palette.\n\n\n## About the data\n\n### Multi Radar Multi Sensor (MRMS)\n\n[MRMS](http://www.nssl.noaa.gov/projects/mrms/) is a software product built by the University of Oklahoma that is now being run in real time by the National Weather Service. The data can be retrieved by [LDM](https://docs.google.com/document/d/1LeVcn_taIXZgzZb5JgWqaVr0xVs7GmA6RpHcb8ZGiwk/edit) or [HTTP](http://mrms.ncep.noaa.gov/data/).\n\nThere are a number of interesting data products with MRMS including 3D slices of the atmosphere, lightning, hail, etc. We will show how to plot Reflectivity (Radar).\n\n\n### High Resolution Rapid Refresh (HRRR)\n\n\n[HRRR](http://ruc.noaa.gov/hrrr/) is a high resolution model that is run by NCEP and is updated very often. It can be found via [NCEP NOMADS HTTP](http://nomads.ncep.noaa.gov/). We will look at the wind forecast, and composite reflectivity forecast (simulated Radar)\n\n## Steps to convert the data\n\n\n1. Install [Vagrant](https://docs.vagrantup.com/v2/installation/) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads)\n2. clone this repository\n3. cd into the directory with the VagrantFile and type `vagrant up`\n4. vagrant will load a centos image, and boot it. It will run the shell provisioner noaatiles.sh to install gdal, python bindings, and wgrib2\n5. type `vagrant ssh` to get into the VM\n6. type `cd vagrant_data` - this will put you in the scripts directory\n7. type `./download_latest_hrrr.sh` to download and create 3 tile sets from the latest HRRR model\n8. type `./download_latest_mrms.sh` to download and create a tile set from the latest MRMS\n\nWhat do you end up with?\n\n##### `data` directory\n\n* MRMS and HRRR model files\n\n#### `output` directory\n* hrrr - a directory that has a tileset of the composite reflectivity plotted with alpha, that looks like future radar ![HRR Wind ScreenShot](/examplescreenshots/hrrrradar.png)\n* wind vectors split by component. Take a look at this page for more information: [Wind: u and v Components](http://colaweb.gmu.edu/dev/clim301/lectures/wind/wind-uv)\n* hrrr_u_tiles - a tileset of the u vector of the wind  ![HRR Wind ScreenShot](/examplescreenshots/hrrrwind.png)\n* hrrr_v_tiles - a tileset of the v vector of the wind\n* hrrr_speed_tiles - a tileset of the speed of the wind ![HRR Wind ScreenShot](/examplescreenshots/hrrrwindspeed.png)\n* mrms - a radar tileset from mrms data ![MRMS Radar ScreenShot](/examplescreenshots/mrmsradar.png)\n\n\n## Advanced modifications\n\n### More tile levels\nModify this line in create_hrrr_radar.sh:\n\n ```bash\n\tpython ./gdal2tiles.py -r bilinear -z 0-9 output/hrrr.vrt output/hrrr\n ```\n  z is the number of z levels for the tiles. If you want it to create a higher resolution set of tiles, try this command instead.\n \n####Change the Palettes\nThis is inside `palettes/radar_pal.txt`\n\n\tnv \t\t0 \t\t255  \t0 \t\t0\n\t0% \t\t0 \t\t0 \t\t0 \t\t0\n\t-30     255     255     255  0\n\t-25      0       0       0   255\n \t-20     255     255     255  255\n\t-15     233     204     249  255\n\t-10     207     128     223  255\n\t-05     131     51      147  255\n\t00      58       0      176  255\n\t05      29       0      215  255\n\t10       0       0      255  255\n\t15      3       60      175  255\n\t20      5       119     95  \t255\n \t25      8       179     15  \t255\n \t30      132     217     8  \t\t255\n \t35      255     255      0  \t255\n \t40      255     170      0  \t255\n \t45      255     85       0  \t255\n \t50      255      0       0  \t255\n \t55      179      0       0  \t255\n \t60      102      0       0  \t255\n \t65      51       0       0  \t255\n \t70       0       0       0  \t255\n \t75      250     197     250  \t255\n \t80      255     255     255  \t255\n \t100% \t255 \t255 \t255 \t255\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanswx%2Fweathertileexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanswx%2Fweathertileexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanswx%2Fweathertileexamples/lists"}