{"id":153,"date":"2019-02-17T01:25:22","date_gmt":"2019-02-17T00:25:22","guid":{"rendered":"http:\/\/blog.tomasbrincil.cz\/?p=153"},"modified":"2019-03-28T14:06:44","modified_gmt":"2019-03-28T13:06:44","slug":"maidenhead-locator-system","status":"publish","type":"post","link":"https:\/\/blog.tomasbrincil.cz\/?p=153","title":{"rendered":"Maidenhead Locator System"},"content":{"rendered":"\n<p>Have you ever wondered how the so-called QTH Locator or WW locator is calculated and what is behind it?<\/p>\n\n\n\n<p>Many HAMs and radioamateurs use it but ask them where their locator came from and not many can tell you. There are plenty of web based applications which overlay Google maps with a locator grid and many of them provide a calculator for conversion from other geographic coordinates to Maidenhead Locator System.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"matlab\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">clear all;\nclose all;\nclc;\n\nm = mobiledev();\nm.Logging = 1;\npause(2)\n\nlat = 50.2727514;\nlon = 14.2518494;\n\nalphabet = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','R','S'];\n\nlocator = [];\nlen = 4;\n\nlon = lon + 180;\nlat = lat + 90;\n\nlon = lon \/ 20;\nlat = lat \/ 10;\n\nfor i = 1:len\n    \n    lon_tmp = floor(lon);\n    lat_tmp = floor(lat);\n    \n    if mod(i,2) == 0\n        \n        locator = [locator int2str(lon_tmp) int2str(lat_tmp)];\n        lon = (lon - lon_tmp) * 24;\n        lat = (lat - lat_tmp) * 24;\n        \n    else\n        \n        locator = [locator alphabet(lon_tmp+1) alphabet(lat_tmp+1)];\n        lon = (lon - lon_tmp) * 10;\n        lat = (lat - lat_tmp) * 10;\n        \n    end\nend\n\nlocator<\/pre>\n\n\n\n<p>Corresponding output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"matlab\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">locator =\n\n    'JO70DG05'<\/pre>\n\n\n\n<p>And the most amazing aspect is executing .m files on your iPhone. The disadvantage is that an internet connection is necessary for computing via the application.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"http:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n-1024x1024.jpg\" alt=\"\" class=\"wp-image-175\" width=\"600\" srcset=\"https:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n-1024x1024.jpg 1024w, https:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n-150x150.jpg 150w, https:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n-300x300.jpg 300w, https:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n-768x768.jpg 768w, https:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n-1200x1200.jpg 1200w, https:\/\/blog.tomasbrincil.cz\/wp-content\/uploads\/2019\/02\/53005036_1493030604160572_3358566508807585792_n.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wondered how the so-called QTH Locator or WW locator is calculated and what is behind it? Many HAMs and radioamateurs use it but ask them where their locator came from and not many can tell you. There are plenty of web based applications which overlay Google maps with a locator grid and &hellip; <a href=\"https:\/\/blog.tomasbrincil.cz\/?p=153\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Maidenhead Locator System<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6,5,7],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-blog","tag-ham","tag-matlab","tag-programming"],"_links":{"self":[{"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=153"}],"version-history":[{"count":13,"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tomasbrincil.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}