<?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: Edit Raster Function not working in MDCS in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/edit-raster-function-not-working-in-mdcs/m-p/1291337#M69378</link>
    <description>&lt;P&gt;Anything in the source documentation that is applicable?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/mdcs-py" target="_self"&gt;Mosaic Dataset Configuration Script&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2023 08:05:10 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-05-20T08:05:10Z</dc:date>
    <item>
      <title>Edit Raster Function not working in MDCS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-raster-function-not-working-in-mdcs/m-p/1291336#M69377</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I have a python script tool that calls a MDCS. For some reason the edit raster function does not work anymore. I can apply it with the GUI tool and it works. I have tested with other TIFs. It actually worked before, but I cannot remember what I have changed.&lt;/P&gt;&lt;P&gt;extract from config file:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;Application&amp;gt;
  &amp;lt;Name&amp;gt;Amberg1Demo&amp;lt;/Name&amp;gt;
  &amp;lt;Command&amp;gt;CM+SP+AR+ERF&amp;lt;/Command&amp;gt;
  &amp;lt;Workspace&amp;gt;
    &amp;lt;WorkspacePath&amp;gt;C:\Users\Hackenberg\Documents\ArcGIS\Projects\MyProject3&amp;lt;/WorkspacePath&amp;gt;
    &amp;lt;Geodatabase&amp;gt;Amberg&amp;lt;/Geodatabase&amp;gt;
    &amp;lt;MosaicDataset&amp;gt;
      &amp;lt;MosaicDatasetType&amp;gt;Source&amp;lt;/MosaicDatasetType&amp;gt;
      &amp;lt;Name&amp;gt;Amberg1&amp;lt;/Name&amp;gt;
      &amp;lt;SRS&amp;gt;25832&amp;lt;/SRS&amp;gt;
      &amp;lt;num_bands&amp;gt;1&amp;lt;/num_bands&amp;gt;
      &amp;lt;pixel_type&amp;gt;8_BIT_UNSIGNED&amp;lt;/pixel_type&amp;gt;

      &amp;lt;DefaultProperties&amp;gt;
				&amp;lt;allowed_compressions&amp;gt;LZ77;None&amp;lt;/allowed_compressions&amp;gt;
				&amp;lt;default_compression_type&amp;gt;LZ77&amp;lt;/default_compression_type&amp;gt;
				&amp;lt;resampling_type&amp;gt;NEAREST&amp;lt;/resampling_type&amp;gt;
				&amp;lt;clip_to_footprints&amp;gt;CLIP&amp;lt;/clip_to_footprints&amp;gt;
				&amp;lt;clip_to_boundary&amp;gt;CLIP&amp;lt;/clip_to_boundary&amp;gt;
				&amp;lt;footprints_may_contain_nodata&amp;gt;FOOTPRINTS_DO_NOT_CONTAIN_NODATA&amp;lt;/footprints_may_contain_nodata&amp;gt;
				&amp;lt;allowed_mosaic_methods&amp;gt;NorthWest;None&amp;lt;/allowed_mosaic_methods&amp;gt;
				&amp;lt;default_mosaic_method&amp;gt;NorthWest&amp;lt;/default_mosaic_method&amp;gt;
				&amp;lt;cell_size&amp;gt;5&amp;lt;/cell_size&amp;gt;
				&amp;lt;metadata_level&amp;gt;BASIC&amp;lt;/metadata_level&amp;gt;
				&amp;lt;data_source_type&amp;gt;THEMATIC&amp;lt;/data_source_type&amp;gt;
				&amp;lt;max_num_of_download_items&amp;gt;200&amp;lt;/max_num_of_download_items&amp;gt;
				&amp;lt;minimum_pixel_contribution&amp;gt;50&amp;lt;/minimum_pixel_contribution&amp;gt;
			&amp;lt;/DefaultProperties&amp;gt;

      &amp;lt;AddRasters&amp;gt;
        &amp;lt;AddRaster&amp;gt;
          &amp;lt;dataset_id&amp;gt;Amberg&amp;lt;/dataset_id&amp;gt;
          &amp;lt;raster_type&amp;gt;Raster Dataset&amp;lt;/raster_type&amp;gt;
          &amp;lt;Sources&amp;gt;
            &amp;lt;data_path&amp;gt;D:\Praktikanten\Hackenberg_Moritz\DTK-Workflow-test\2022-11-24&amp;lt;/data_path&amp;gt;
          &amp;lt;/Sources&amp;gt;
          &amp;lt;filter&amp;gt;*col.tif&amp;lt;/filter&amp;gt;
          &amp;lt;sub_folder&amp;gt;SUBFOLDERS&amp;lt;/sub_folder&amp;gt;
					&amp;lt;duplicate_items_action&amp;gt;OVERWRITE_DUPLICATES&amp;lt;/duplicate_items_action&amp;gt;
        &amp;lt;/AddRaster&amp;gt;
      &amp;lt;/AddRasters&amp;gt;
      &amp;lt;Processes&amp;gt;
        &amp;lt;EditRasterFunction&amp;gt;
            &amp;lt;edit_mosaic_dataset_item&amp;gt;EDIT_MOSAIC_DATASET&amp;lt;/edit_mosaic_dataset_item&amp;gt;
            &amp;lt;edit_options&amp;gt;INSERT&amp;lt;/edit_options&amp;gt;
            &amp;lt;function_chain_definition&amp;gt;DTK-colormap_PQS1.0.rft.xml&amp;lt;/function_chain_definition&amp;gt;
            &amp;lt;location_function_name&amp;gt;Mosaic Function&amp;lt;/location_function_name&amp;gt;
				&amp;lt;/EditRasterFunction&amp;gt;
      &amp;lt;/Processes&amp;gt;
    &amp;lt;/MosaicDataset&amp;gt;
  &amp;lt;/Workspace&amp;gt;
&amp;lt;/Application&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it maybe have to do with the order of the commands?&lt;/P&gt;&lt;P&gt;The python toolbox only calls the MDCS:&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;MDCS&lt;BR /&gt;MDCS.main(&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;[&lt;SPAN&gt;"x"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;r"-i:C:\Users\Hackenberg\Downloads\mdcs-py-master\mdcs-py-master\Parameter\Config\Amberg1.xml"&lt;/SPAN&gt;])&lt;/PRE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 07:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-raster-function-not-working-in-mdcs/m-p/1291336#M69377</guid>
      <dc:creator>MoritzHackenberg</dc:creator>
      <dc:date>2023-05-20T07:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Raster Function not working in MDCS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/edit-raster-function-not-working-in-mdcs/m-p/1291337#M69378</link>
      <description>&lt;P&gt;Anything in the source documentation that is applicable?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/mdcs-py" target="_self"&gt;Mosaic Dataset Configuration Script&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 08:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/edit-raster-function-not-working-in-mdcs/m-p/1291337#M69378</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-05-20T08:05:10Z</dc:date>
    </item>
  </channel>
</rss>

