<?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 Select rasters in Mosaic Dataset in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554055#M31374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have a question about selecting rasters in a Mosaic Dataset and do processing on those.&lt;/P&gt;&lt;P&gt;I need to calculate a basic image ratio on two rasters in a mosaic dataset (Ex: Raster1/ Raster2) using Python. I know about the &lt;A class="link-titled" href="https://github.com/Esri/raster-functions" title="https://github.com/Esri/raster-functions"&gt;GitHub - Esri/raster-functions: A curated set of lightweight but powerful tools for on-the-fly image processing and rast…&lt;/A&gt; , but all the functions apply on the entire Mosaic Dataset, and I did not find any on how to process rasters separately. While I can do the work with the Image Analysis window in ArcGIS Desktop, I did not find any way to automate this in Python/arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;Alin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 06:36:23 GMT</pubDate>
    <dc:creator>AlinPlesoianu</dc:creator>
    <dc:date>2016-10-26T06:36:23Z</dc:date>
    <item>
      <title>Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554055#M31374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have a question about selecting rasters in a Mosaic Dataset and do processing on those.&lt;/P&gt;&lt;P&gt;I need to calculate a basic image ratio on two rasters in a mosaic dataset (Ex: Raster1/ Raster2) using Python. I know about the &lt;A class="link-titled" href="https://github.com/Esri/raster-functions" title="https://github.com/Esri/raster-functions"&gt;GitHub - Esri/raster-functions: A curated set of lightweight but powerful tools for on-the-fly image processing and rast…&lt;/A&gt; , but all the functions apply on the entire Mosaic Dataset, and I did not find any on how to process rasters separately. While I can do the work with the Image Analysis window in ArcGIS Desktop, I did not find any way to automate this in Python/arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;Alin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 06:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554055#M31374</guid>
      <dc:creator>AlinPlesoianu</dc:creator>
      <dc:date>2016-10-26T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554056#M31375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the sections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Accessing a raster function chain within the mosaic dataset&lt;/H2&gt;&lt;H2&gt;Editing function chains for multiple rasters at one time&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the following help document:&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/manage-data/raster-and-images/editing-function-chains-in-md.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/raster-and-images/editing-function-chains-in-md.htm"&gt;Editing function chains in a mosaic dataset—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 11:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554056#M31375</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-10-26T11:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554057#M31376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, Jake!&lt;/P&gt;&lt;P&gt;I know about that section, but my problem is a little bit different. While I can insert raster functions to the separate rasters in the Footprint (say NDVI), I cannot create a general function (at the Mosaic Dataset level) that takes as input same rasters from the mosaic dataset and do an arithmetic operation for example.&lt;/P&gt;&lt;P&gt;Below I attached screenshots of the mosaic, and the Arithmetic Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the rasters inside the mosaic dataset. They are a separate 1-Band Mosaic Datasets of different years. (Crated with:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/wkflw-creating-a-md-from-multiple-dates.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/wkflw-creating-a-md-from-multiple-dates.htm"&gt;Creating a mosaic dataset containing raster data from multiple dates—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="The rasters in the Mosaic Dataset" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/252030_Rasters_Footprint.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On them, I need to apply the difference "Raster_Change_Detection_1_1" / "Raster_Change_Detection_2_2" on-the-fly.&lt;/P&gt;&lt;P&gt;If i go to the Mosaic Functions tab, I cannot choose those two rasters.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/252031_Mosaic_Dataset.PNG" style="width: 620px; height: 558px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this? Suppose there is a way with raster functions, I can further use arcpy to automatically do this analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Alin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:01:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554057#M31376</guid>
      <dc:creator>AlinPlesoianu</dc:creator>
      <dc:date>2016-10-26T13:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554058#M31377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing you can do is to create two mosaic datasets, one for each Raster_Change_Detection.&amp;nbsp; You can then apply this Arithmetic function to one of the mosaic datasets.&amp;nbsp; You will have the option to select the 2nd mosaic dataset for 'Input Raster 2'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554058#M31377</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-10-26T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554059#M31378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did this, but it only processes the Mosaic Dataset on which the function is applied:&lt;/P&gt;&lt;P&gt;This is the raster function inserted. The first Mosaic Dataset is a one-band NDVI. I added the second one (Raster_Change_Detection_2_2) by browsing to the location on the GDB.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/252049_Screen_MD.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The processing result is not correct. The function divides the values of the same first Mosaic Dataset, and I only get a value of 1, as below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/252065_Process_Result.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Alin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554059#M31378</guid>
      <dc:creator>AlinPlesoianu</dc:creator>
      <dc:date>2016-10-26T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554060#M31379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could not reproduce this.&amp;nbsp; I have two mosaic datasets (Stadium_2010 &amp;amp; Stadium_2008).&amp;nbsp; I first ran the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/3d-analyst-toolbox/divide.htm"&gt;Divide &lt;/A&gt;tool on the two mosaic datasets to see the result.&amp;nbsp; I then applied the Arithmetic function to the Stadium_2010 mosaic dataset specifying the Stadium_2008 mosaic dataset as the second raster.&amp;nbsp; When identifying and comparing the Divide tool result with the Stadium_2010 mosaic dataset, the results are the same.&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/252070_Screen1.PNG" style="width: 620px; height: 315px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554060#M31379</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-10-26T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select rasters in Mosaic Dataset</title>
      <link>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554061#M31380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did the full workflow again, and it works like that, but the main difficulty was to get it done with arcpy (&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/edit-raster-function.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/edit-raster-function.htm"&gt;Edit Raster Function—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt; ), as I have many datasets like those. If I export the function chain as a template, it will refer to the same two mosaics, right? How can I make the template apply for any inputs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Alin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 06:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/select-rasters-in-mosaic-dataset/m-p/554061#M31380</guid>
      <dc:creator>AlinPlesoianu</dc:creator>
      <dc:date>2016-10-27T06:11:42Z</dc:date>
    </item>
  </channel>
</rss>

