Skip to content

Instantly share code, notes, and snippets.

View mcculley's full-sized avatar

Gene McCulley mcculley

View GitHub Profile
@mcculley
mcculley / NWS2KML.xslt
Created October 15, 2023 14:11
Convert the list of NOAA weather stations to a KML file. (e.g., curl https://w1.weather.gov/xml/current_obs/index.xml | xsltproc nws2kml.xslt - > NWS_stations.kml)
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/wx_station_index">
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>