<?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: Help with code to convert latitude longitude coordonates to cartesian and then back again in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-code-to-convert-latitude-longitude-coordonates-to/m-p/944477#M370045</link>
    <description>&lt;P&gt;Purpose?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How large of a geographic region are you dealing with? For most purposes if the area is less than several hundred square miles or kilometers the lat/long behave like Cartesian coordinates for most purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 17:41:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-09-18T17:41:44Z</dc:date>
    <item>
      <title>Help with code to convert latitude longitude coordonates to cartesian and then back again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-code-to-convert-latitude-longitude-coordonates-to/m-p/944473#M370041</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I've read it is improper to average a series of latitude-longitude coordinates without first converting to Cartesian coordinates.&lt;/P&gt;&lt;P&gt;If someone could provide sas code to process the example data below, I'd appreciate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;data a; input location lat lon;&lt;BR /&gt;cards;&lt;BR /&gt;1&amp;nbsp; 27.7970&amp;nbsp; &amp;nbsp;-93.6191&lt;BR /&gt;2&amp;nbsp; 28.0290 -93.6310&lt;BR /&gt;3&amp;nbsp; 28.3661&amp;nbsp; -91.1429&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;*Code to convert above spherical coordinates to Cartesian coordinates;&lt;/P&gt;&lt;P&gt;proc print; var location cart_lat cart_lon; run;&lt;/P&gt;&lt;P&gt;* Code to convert the Cartesian coordinates back to spherical coordinates;&lt;BR /&gt;proc print; var location lat lon; run;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-code-to-convert-latitude-longitude-coordonates-to/m-p/944473#M370041</guid>
      <dc:creator>jserafy</dc:creator>
      <dc:date>2024-09-18T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with code to convert latitude longitude coordonates to cartesian and then back again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-code-to-convert-latitude-longitude-coordonates-to/m-p/944477#M370045</link>
      <description>&lt;P&gt;Purpose?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How large of a geographic region are you dealing with? For most purposes if the area is less than several hundred square miles or kilometers the lat/long behave like Cartesian coordinates for most purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-code-to-convert-latitude-longitude-coordonates-to/m-p/944477#M370045</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-18T17:41:44Z</dc:date>
    </item>
  </channel>
</rss>

