{"id":20933,"date":"2024-03-01T22:49:46","date_gmt":"2024-03-02T03:49:46","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=20933"},"modified":"2024-03-01T22:55:49","modified_gmt":"2024-03-02T03:55:49","slug":"amateur-radio-contesting-time-lapse-map","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=20933","title":{"rendered":"Amateur radio contesting time-lapse map"},"content":{"rendered":"<p>Mapping geocoded\u00a0 contest log data using node.js and openlayers.<\/p>\n<p><iframe loading=\"lazy\" title=\"amateur radio dx contest time lapse map\" width=\"525\" height=\"295\" src=\"https:\/\/www.youtube.com\/embed\/OudtnD7wv2I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>The goal was to make something that looks like the Reverse Beacon Network map, only for contest log files. I use RBN for testing antennas now. That map display gives you a pretty good idea of your actual antenna pattern.<\/p>\n<p>Code is written in node.js (javascript) and html.<\/p>\n<p>Part 1: Read a Cabrillo log file containing QSO: records. Look up each callsign, get latitude and longitude, and rewrite the file as json data, tagged with geo coordinates. I originally tried getting the data from hamQTH but it was not current, so ended up using the qrz.com xml callsign lookup. For callsigns &#8220;not found&#8221; I used the qrz.com dxcc prefix lookup to get general coordinates for the country. There are still a few bad\/missing data issues to resolve. Like European stations with coordinates at the South Pole.<\/p>\n<p>Part 2: Tried various mapping frameworks &#8211; like leaflet, arcgis, and openlayers. Wanted to use a great-circle projection (azimuthal equidistant) like the big ARRL world map. And may still figure this out. But working with map projections and coordinate transforms is way worse than doing a Smith Chart.\u00a0 I ended up hacking a flight tracking example from openlayers.org and basically replacing airplanes with QSO&#8217;s. That is why the lines are animated from source to destination.\u00a0 Also added a layer for day\/night, and QSO\/time status display.<\/p>\n<p>It probably makes sense to get rid of the flight animation and just display the entire path in sync with the QSO data &#8211; with color code for each band (K1KP) &#8211; and speed control on the time lapse, etc., So you can get a better sense of rate and propagation.<\/p>\n<p>It would be cool to have a website where you could upload a log file and generate maps.<\/p>\n<p>Note: this project is not yet available<\/p>\n<h3>Files<\/h3>\n<p>local files:<\/p>\n<h4>generating data:<\/h4>\n<p>internetsensors\/cabrillomap<\/p>\n<p>put the cabrillo data in testdata.cbr (use QSO: records only for now) should be sorted chronologically.<\/p>\n<p>run:\u00a0 node index.js<\/p>\n<p>the output file will be: geocab.json (which is used as input to the mapping program)<\/p>\n<h4>mapping<\/h4>\n<p>internetsensors\/oltest<\/p>\n<p>main.js = node source with ol mapping and data processing<\/p>\n<p>index.html = web page for map<\/p>\n<p>geocab.json = geocoded cabrillo json test data<\/p>\n<p>to run, type: npm start<\/p>\n<p>Then open: http:\/\/localhost:5173\/ in a browser<\/p>\n<h3>Additional work \/ current issues<\/h3>\n<p>Some of the qrz.com callsign data has bad geo coordinates. In particular some of the records show a latitude of -89 and longitute -179 &#8211; need to check for these numbers and replace with dxcc coordinates.<\/p>\n<p>There should be an argument on the node program to pass in the datafile. Also the program should clean up any non QSO: records, like the file header info and any X-QSO recs.<\/p>\n<p>Also need to clean up the async\/await stuff &#8211; currently there are several methods for handling state transitions.<\/p>\n<h4>mapping ideas:<\/h4>\n<p>As mentioned above, its probably a good idea to make a version of the code without the flight animation, and have various controls to stop\/start the data playback to look at individual qso&#8217;s do speed control, etc.,<\/p>\n<p>azimuthal equidistant projection: there are some links to examples in leaflet, and arcgis to handle complex projections. In documents, look at:\u00a0 &#8220;map links for projection stuff.txt&#8221;<\/p>\n<h4>leaflet test version:<\/h4>\n<p>in the internetsensors\/cabrillomap folder there&#8217;s a test file: cbworld1.html that works using websockets when you run the index.js file to generate test data. It uses a leaflet map, but the lines don&#8217;t adapt to great circle polar paths.<\/p>\n<h4>arcgis<\/h4>\n<p>I believe the arcgis examples are in internetsensors\/projected geometries<\/p>\n<p>And: internetsensors\/pe-gs-projection<\/p>\n<p>The former is a a very nice world projection with some point markers. The latter is an example that shows how to switch out various projections in realtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mapping geocoded\u00a0 contest log data using node.js and openlayers. The goal was to make something that looks like the Reverse Beacon Network map, only for contest log files. I use RBN for testing antennas now. That map display gives you a pretty good idea of your actual antenna pattern. Code is written in node.js (javascript) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=20933\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Amateur radio contesting time-lapse map&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[230,142,143,275,332],"tags":[161,191,6,168,190,57,12],"class_list":["post-20933","post","type-post","status-publish","format-standard","hentry","category-development","category-ideas","category-interactive-media-art","category-internet-sensors","category-radio-2","tag-api","tag-favorites","tag-interactive-media","tag-javascript","tag-portfolio","tag-radio","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Amateur radio contesting time-lapse map - reactive music<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/reactivemusic.net\/?p=20933\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Amateur radio contesting time-lapse map - reactive music\" \/>\n<meta property=\"og:description\" content=\"Mapping geocoded\u00a0 contest log data using node.js and openlayers. The goal was to make something that looks like the Reverse Beacon Network map, only for contest log files. I use RBN for testing antennas now. That map display gives you a pretty good idea of your actual antenna pattern. Code is written in node.js (javascript) &hellip; Continue reading &quot;Amateur radio contesting time-lapse map&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=20933\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-02T03:49:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-02T03:55:49+00:00\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Amateur radio contesting time-lapse map\",\"datePublished\":\"2024-03-02T03:49:46+00:00\",\"dateModified\":\"2024-03-02T03:55:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933\"},\"wordCount\":661,\"keywords\":[\"API\",\"favorites\",\"interactive media\",\"javascript\",\"portfolio\",\"radio\",\"web development\"],\"articleSection\":[\"development\",\"ideas\",\"interactive media art\",\"internet-sensors\",\"Radio\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933\",\"name\":\"Amateur radio contesting time-lapse map - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2024-03-02T03:49:46+00:00\",\"dateModified\":\"2024-03-02T03:55:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=20933\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20933#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Amateur radio contesting time-lapse map\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Amateur radio contesting time-lapse map - reactive music","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/reactivemusic.net\/?p=20933","og_locale":"en_US","og_type":"article","og_title":"Amateur radio contesting time-lapse map - reactive music","og_description":"Mapping geocoded\u00a0 contest log data using node.js and openlayers. The goal was to make something that looks like the Reverse Beacon Network map, only for contest log files. I use RBN for testing antennas now. That map display gives you a pretty good idea of your actual antenna pattern. Code is written in node.js (javascript) &hellip; Continue reading \"Amateur radio contesting time-lapse map\"","og_url":"https:\/\/reactivemusic.net\/?p=20933","og_site_name":"reactive music","article_published_time":"2024-03-02T03:49:46+00:00","article_modified_time":"2024-03-02T03:55:49+00:00","author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=20933#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=20933"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Amateur radio contesting time-lapse map","datePublished":"2024-03-02T03:49:46+00:00","dateModified":"2024-03-02T03:55:49+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20933"},"wordCount":661,"keywords":["API","favorites","interactive media","javascript","portfolio","radio","web development"],"articleSection":["development","ideas","interactive media art","internet-sensors","Radio"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=20933","url":"https:\/\/reactivemusic.net\/?p=20933","name":"Amateur radio contesting time-lapse map - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2024-03-02T03:49:46+00:00","dateModified":"2024-03-02T03:55:49+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=20933#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=20933"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=20933#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Amateur radio contesting time-lapse map"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20933"}],"version-history":[{"count":3,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20933\/revisions"}],"predecessor-version":[{"id":20936,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20933\/revisions\/20936"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}