<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Plot a map location using Maidenhead Grid Square in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344518#M33278</link>
    <description>&lt;P&gt;Thank you for your reply Sandylscream,&lt;BR /&gt;
I am looking for an opposite formula of what you posted. The posted formula gets latitude/longitude as input and converts it into Maidenhead where I am looking for one to input Maidenhead and provides me with latitude/longitude&lt;BR /&gt;
\&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 10:53:28 GMT</pubDate>
    <dc:creator>kashifqau</dc:creator>
    <dc:date>2017-12-13T10:53:28Z</dc:date>
    <item>
      <title>Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344516#M33276</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am working with Radio data, which contains location in Maidenhead Grid Square format rather then latitude and longitude.&lt;/P&gt;
&lt;P&gt;I want to know about how can I plot maps by using Maidenhead Grid Square&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;How can I convert Maidenhead Grid Square to latitude and longitude using formula? (If I make the transformation into latitude and longitude that can be plotted further using Splunk)&lt;/P&gt;
&lt;P&gt;Muhammad Kashhif&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344516#M33276</guid>
      <dc:creator>kashifqau</dc:creator>
      <dc:date>2020-06-08T21:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344517#M33277</link>
      <description>&lt;P&gt;I am guessing you want the formula to conver Maidenhead Grid square to latitude and longitude. if yes then you can go to the below link and check for it. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://ham.stackexchange.com/questions/221/how-can-one-convert-from-lat-long-to-grid-square"&gt;https://ham.stackexchange.com/questions/221/how-can-one-convert-from-lat-long-to-grid-square&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I believe this will help you convert them to latitude and longitude. Then save this formula as macro in your search head, so you don't need to write it again n again for future purpose. You just have to call the macro.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 10:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344517#M33277</guid>
      <dc:creator>sandyIscream</dc:creator>
      <dc:date>2017-12-13T10:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344518#M33278</link>
      <description>&lt;P&gt;Thank you for your reply Sandylscream,&lt;BR /&gt;
I am looking for an opposite formula of what you posted. The posted formula gets latitude/longitude as input and converts it into Maidenhead where I am looking for one to input Maidenhead and provides me with latitude/longitude&lt;BR /&gt;
\&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 10:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344518#M33278</guid>
      <dc:creator>kashifqau</dc:creator>
      <dc:date>2017-12-13T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344519#M33279</link>
      <description>&lt;P&gt;I found a python library with name "pyhamtools", from where I extracted the formula for the conversion of Maidenhead Grid Square to latitude longitude and have implemented in Splunk as below&lt;/P&gt;

&lt;P&gt;index="wsprindex" sourcetype="wsprsourcetype" | eval first=substr(grid,1,1) | eval second=substr(grid,2,1) | eval third=substr(grid,3,1) | eval fourth=substr(grid,4,1) | lookup asciitable.csv symbol As first OUTPUTNEW code as firstcode |eval valueA = "A" | eval value0 = "0"| lookup asciitable.csv symbol As second OUTPUTNEW code as secondcode | lookup asciitable.csv symbol As third OUTPUTNEW code as thirdcode | lookup asciitable.csv symbol As fourth OUTPUTNEW code as fourthcode | lookup asciitable.csv symbol As valueA OUTPUTNEW code as codeofA | lookup asciitable.csv symbol As value0 OUTPUTNEW code as codeof0 | eval longitude = ((((firstcode - codeofA) * 20) - 180) + ((thirdcode - codeof0) * 2))  | eval latitude = ((((secondcode - codeofA) * 10) - 90) + (fourthcode -codeof0)) | geostats longfield=longitude, latfield=latitude count by grid&lt;/P&gt;

&lt;P&gt;(grid is the field, which contains Maidenhead Grid Square values and asciitable.csv is a lookup table which contains ascii values of alphabets and letters)&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2017 07:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344519#M33279</guid>
      <dc:creator>kashifqau</dc:creator>
      <dc:date>2017-12-17T07:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344520#M33280</link>
      <description>&lt;P&gt;@kashifqau, please accept your own answer to mark this question as answered!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2017 08:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344520#M33280</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-17T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344521#M33281</link>
      <description>&lt;P&gt;What is ascitable.csv?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 16:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344521#M33281</guid>
      <dc:creator>crofrog</dc:creator>
      <dc:date>2020-04-05T16:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Plot a map location using Maidenhead Grid Square</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344522#M33282</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;{
            locator = locator.Trim().ToUpper();
            if (Regex.IsMatch(locator, "^[A-R]{2}[0-9]{2}$"))
            {
                LatLng ll = new LatLng();
                ll.Long = (locator[0] - 'A') * 20 + (locator[2] - '0' + 0.5) * 2 - 180;
                ll.Lat = (locator[1] - 'A') * 10 + (locator[3] - '0' + 0.5) - 90;
                return ll;
            }
            else if (Regex.IsMatch(locator, "^[A-R]{2}[0-9]{2}[A-X]{2}$"))
            {
                LatLng ll = new LatLng();
                ll.Long = (locator[0] - 'A') * 20 + (locator[2] - '0') * 2 + (locator[4] - 'A' + 0.5) / 12 - 180;
                ll.Lat = (locator[1] - 'A') * 10 + (locator[3] - '0') + (locator[5] - 'A' + 0.5) / 24 - 90;
                return ll;
            }
            else if (Regex.IsMatch(locator, "^[A-R]{2}[0-9]{2}[A-X]{2}[0-9]{2}$"))
            {
                LatLng ll = new LatLng();
                ll.Long = (locator[0] - 'A') * 20 + (locator[2] - '0') * 2 + (locator[4] - 'A' + 0.0) / 12 + (locator[6] - '0' + 0.5) / 120 - 180;
                ll.Lat = (locator[1] - 'A') * 10 + (locator[3] - '0') + (locator[5] - 'A' + 0.0) / 24 + (locator[7] - '0' + 0.5) / 240 - 90;
                return ll;
            }
            else if (Regex.IsMatch(locator, "^[A-R]{2}[0-9]{2}[A-X]{2}[0-9]{2}[A-X]{2}$"))
            {
                LatLng ll = new LatLng();
                ll.Long = (locator[0] - 'A') * 20 + (locator[2] - '0') * 2 + (locator[4] - 'A' + 0.0) / 12 + (locator[6] - '0' + 0.0) / 120 + (locator[8] - 'A' + 0.5) / 120 / 24 - 180;
                ll.Lat = (locator[1] - 'A') * 10 + (locator[3] - '0') + (locator[5] - 'A' + 0.0) / 24 + (locator[7] - '0' + 0.0) / 240 + (locator[9] - 'A' + 0.5) / 240 / 24 - 90;
                return ll;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://unclassified.software/files/source/MaidenheadLocator.cs"&gt;https://unclassified.software/files/source/MaidenheadLocator.cs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can calculate&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 20:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Plot-a-map-location-using-Maidenhead-Grid-Square/m-p/344522#M33282</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-05T20:29:40Z</dc:date>
    </item>
  </channel>
</rss>

