<?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: How to put two rasters at the same dimension in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92872#M7274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, in fact i&amp;nbsp;would like to change xcell and ycell with the input cell size of my first&amp;nbsp;raster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 12:27:54 GMT</pubDate>
    <dc:creator>paulbonnard</dc:creator>
    <dc:date>2018-06-12T12:27:54Z</dc:date>
    <item>
      <title>How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92865#M7267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two identical rasters, i use extent to put them on the same lower left corner but they havent the same shape. I want to get the size of my first raster to&amp;nbsp; apply to my second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92865#M7267</guid>
      <dc:creator>paulbonnard</dc:creator>
      <dc:date>2018-06-12T12:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92866#M7268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you have two identical rasters but they don't have the same shape? Sounds like they are not completely identical. Can you explain how the shapes differ? Are the extents the same, but the resolution (cell size and therefore rows and columns) of the rasters different? Why do you want to do this with Python (do you have a number of rasters to process in the same way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92866#M7268</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-06-12T12:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92867#M7269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Xander indicates, they may differ in other ways, like cell size,&lt;/P&gt;&lt;P&gt;The rows and columns must also match.&amp;nbsp; If they don't then you will have to use a Resample to replicate those.&lt;/P&gt;&lt;P&gt;If can get messy with a combination of extent, snap raster and sampling.&lt;/P&gt;&lt;P&gt;Outlining the purpose of what you are doing may lead to alternate procedures (ie using numpy)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92867#M7269</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-12T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92868#M7270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What type of rasters are you working with (i.e. .TIF)?&amp;nbsp; Check to see if the raster that is in the correct location contains a .aux.xml file in File Explorer.&amp;nbsp; You can try copying this file and renaming it the identical raster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:10:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92868#M7270</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2018-06-12T12:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92869#M7271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact this is the same raster, but i&amp;nbsp;did some processing on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;arcpy.RasterToNumPyArray to use it like an array and finally i made the opposit way with&amp;nbsp;arcpy.NumPyArrayToRaster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the default parameter for cell size is 1. I lose the cell size of my first raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/411187_arcmap9.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92869#M7271</guid>
      <dc:creator>paulbonnard</dc:creator>
      <dc:date>2018-06-12T12:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92870#M7272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i find what i was looking for, thank you guys for answering me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="" start="1" style="color: #5c5c5c; background-color: #ffffff; border: none; font-size: 12px; margin: 0px 0px 1px 45px !important;"&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;description&amp;nbsp;=&amp;nbsp;arcpy.Describe(raster)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f6f6f6; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;cellsize&amp;nbsp;=&amp;nbsp;description.children[0].meanCellHeight&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: inherit; background-color: #ffffff; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="color: #5c5c5c; background-color: #f6f6f6; border-top: none; border-bottom: none; border-left: 3px solid #6ce26c; border-right: none; font-weight: inherit; font-size: 12px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"&gt;&lt;SPAN style="color: black; background-color: inherit; border: 0px; font-weight: inherit; font-size: 9pt !important;"&gt;print&amp;nbsp;cellsize&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get 10 with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92870#M7272</guid>
      <dc:creator>paulbonnard</dc:creator>
      <dc:date>2018-06-12T12:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92871#M7273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When converting back you have options for lower left corner, cell size and nodata values&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4d4d4d; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco','Courier New',Courier,monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre-wrap; word-spacing: 0px; word-wrap: break-word;"&gt;NumPyArrayToRaster (in_array, {lower_left_corner}, {x_cell_size}, {y_cell_size}, {value_to_nodata})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/numpyarraytoraster-function.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/numpyarraytoraster-function.htm"&gt;NumPyArrayToRaster—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92871#M7273</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-12T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92872#M7274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, in fact i&amp;nbsp;would like to change xcell and ycell with the input cell size of my first&amp;nbsp;raster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92872#M7274</guid>
      <dc:creator>paulbonnard</dc:creator>
      <dc:date>2018-06-12T12:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to put two rasters at the same dimension</title>
      <link>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92873#M7275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, next time, include the script you are using in your posts to help for provide targeted answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-put-two-rasters-at-the-same-dimension/m-p/92873#M7275</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-12T12:50:39Z</dc:date>
    </item>
  </channel>
</rss>

