<?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: Create a raster of latitude in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203444#M58707</link>
    <description>&lt;P&gt;Thank&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works! But I have an issue: the created raster is in South Africa, but I need it in the United States&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added a couple of codes to yours....&lt;/P&gt;&lt;P&gt;such as&lt;/P&gt;&lt;P&gt;1. arcpy.env.outputCoordinateSystem=arcpy.SpatialReference('NAD 1983')&lt;/P&gt;&lt;P&gt;2. corner=arcpy.Point(40., 26.)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; myRaster=arcpy.NumPyArrayToRaster(gr,corner,x_cell_size=30)&lt;/P&gt;&lt;P&gt;but it does not work! How can I create rasters on a specific location using the above approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Much&lt;/P&gt;&lt;P&gt;Jaslam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 19:13:48 GMT</pubDate>
    <dc:creator>Jaslam</dc:creator>
    <dc:date>2022-08-16T19:13:48Z</dc:date>
    <item>
      <title>Create a raster of latitude</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203095#M58659</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone suggest the best way to create a grid from a large DEM (30M, Columns_and_Rows -208667, 88412&amp;nbsp; ) where the cell value is simply its latitude?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Raster to Point -&amp;gt; Calculate Geometry approach requiring a significant amount of time&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.esri.com/en/technical-article/000018247" target="_blank" rel="noopener"&gt;https://support.esri.com/en/technical-article/000018247&lt;/A&gt;&amp;nbsp;. Looking for the best alternative option &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 00:19:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203095#M58659</guid>
      <dc:creator>Jaslam</dc:creator>
      <dc:date>2022-08-16T00:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a raster of latitude</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203102#M58661</link>
      <description>&lt;P&gt;It might bail due to the size, but you can use numpy, then arcpy's NumPyArrayToRaster to convert it to a raster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -- make some latitude values, then repeat
# example is for 10 degree increments to test

lat = np.arange(90., -100., -10.)  # make a row of latitudes
lat2 = lat.reshape([lat.shape[0], -1])  # rotate it to a column
np.repeat(lat2, 37, 1)
gr = np.repeat(lat2, 37, 1)
# -- results
lat2 
array([[ 90.00],
       [ 80.00],
       [ 70.00],
       [ 60.00],
       [ 50.00],
       [ 40.00],
       [ 30.00],
       [ 20.00],
       [ 10.00],
       [  0.00],
       [-10.00],
       [-20.00],
       [-30.00],
       [-40.00],
       [-50.00],
       [-60.00],
       [-70.00],
       [-80.00],
       [-90.00]])

gr
array([[ 90.00,  90.00,  90.00, ...,  90.00,  90.00,  90.00],
       [ 80.00,  80.00,  80.00, ...,  80.00,  80.00,  80.00],
       [ 70.00,  70.00,  70.00, ...,  70.00,  70.00,  70.00],
       ...,
       [-70.00, -70.00, -70.00, ..., -70.00, -70.00, -70.00],
       [-80.00, -80.00, -80.00, ..., -80.00, -80.00, -80.00],
       [-90.00, -90.00, -90.00, ..., -90.00, -90.00, -90.00]])

gr.shape  # -- rows and columns, 90 to -90 and -180 to 180
(19, 37)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Aug 2022 00:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203102#M58661</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-16T00:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a raster of latitude</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203444#M58707</link>
      <description>&lt;P&gt;Thank&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works! But I have an issue: the created raster is in South Africa, but I need it in the United States&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added a couple of codes to yours....&lt;/P&gt;&lt;P&gt;such as&lt;/P&gt;&lt;P&gt;1. arcpy.env.outputCoordinateSystem=arcpy.SpatialReference('NAD 1983')&lt;/P&gt;&lt;P&gt;2. corner=arcpy.Point(40., 26.)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; myRaster=arcpy.NumPyArrayToRaster(gr,corner,x_cell_size=30)&lt;/P&gt;&lt;P&gt;but it does not work! How can I create rasters on a specific location using the above approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Much&lt;/P&gt;&lt;P&gt;Jaslam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203444#M58707</guid>
      <dc:creator>Jaslam</dc:creator>
      <dc:date>2022-08-16T19:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a raster of latitude</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203514#M58714</link>
      <description>&lt;P&gt;The one I created was for the world.&lt;/P&gt;&lt;P&gt;You simply need to specify the latitude range that you want with the increment that you want and repeat it for the number of longitude increments that you need.&amp;nbsp; Specifying the lower left corner would correspond to the minimum of the latitude range as noted above.&lt;/P&gt;&lt;P&gt;Note that your cell size should be denoted in the units of the data, which is decimal degrees, not meters.&amp;nbsp; you need to project the resultant raster if you want a planar raster.&amp;nbsp; Your spatial reference should be something like an ellipsoidal wgs84 or similar&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 21:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/create-a-raster-of-latitude/m-p/1203514#M58714</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-16T21:39:28Z</dc:date>
    </item>
  </channel>
</rss>

