<?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 How to use false color composite renderer? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-false-color-composite-renderer/m-p/876158#M4909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From jupyter notebook, I am&amp;nbsp;trying&amp;nbsp;to add a layer&amp;nbsp;"USA NAIP Imagery", which is in color infrared,&amp;nbsp; in my map using the map.add_layer().&amp;nbsp; The image rendered is in natural color and not in false color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine using ArcGIS online&amp;nbsp;when I create a map with the same layer and save it. Also, if I load the saved map in jupyter notebook&amp;nbsp;using MapView the false color renders as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried passing a renderer called&amp;nbsp;FalseColorComposite in the map.add_layer() but still doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions or corrections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMap = gis.map("Sedona, AZ")&lt;BR /&gt;myMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;image_search2_title = "USA NAIP Imagery"&lt;BR /&gt;image_search2 = gis.content.search(image_search2_title, item_type="Imagery Layer", outside_org=True) &lt;BR /&gt;image_search2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for image in image_search2:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if image.title == image_search2_title + ": Color Infrared":&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image_layer2 = gis.content.get(image.id)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;BR /&gt;image_layer2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMap.add_layer(image_layer2, options={'opacity': 1.0, "type": "FeatureLayer", "renderer": "FalseColorComposite", "field_name: "band_indexes"})&lt;BR /&gt;myMap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2020 16:16:34 GMT</pubDate>
    <dc:creator>EdCarlos</dc:creator>
    <dc:date>2020-08-18T16:16:34Z</dc:date>
    <item>
      <title>How to use false color composite renderer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-false-color-composite-renderer/m-p/876158#M4909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From jupyter notebook, I am&amp;nbsp;trying&amp;nbsp;to add a layer&amp;nbsp;"USA NAIP Imagery", which is in color infrared,&amp;nbsp; in my map using the map.add_layer().&amp;nbsp; The image rendered is in natural color and not in false color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine using ArcGIS online&amp;nbsp;when I create a map with the same layer and save it. Also, if I load the saved map in jupyter notebook&amp;nbsp;using MapView the false color renders as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried passing a renderer called&amp;nbsp;FalseColorComposite in the map.add_layer() but still doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions or corrections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMap = gis.map("Sedona, AZ")&lt;BR /&gt;myMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;image_search2_title = "USA NAIP Imagery"&lt;BR /&gt;image_search2 = gis.content.search(image_search2_title, item_type="Imagery Layer", outside_org=True) &lt;BR /&gt;image_search2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for image in image_search2:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if image.title == image_search2_title + ": Color Infrared":&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; image_layer2 = gis.content.get(image.id)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;BR /&gt;image_layer2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myMap.add_layer(image_layer2, options={'opacity': 1.0, "type": "FeatureLayer", "renderer": "FalseColorComposite", "field_name: "band_indexes"})&lt;BR /&gt;myMap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 16:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-false-color-composite-renderer/m-p/876158#M4909</guid>
      <dc:creator>EdCarlos</dc:creator>
      <dc:date>2020-08-18T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use false color composite renderer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-false-color-composite-renderer/m-p/876159#M4910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i figured out how to apply the FalseColorComposite renderer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to use the layer embedded in the map to get the raster functions instead of using the image layer found by the content manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;myMap.layers[0].properties.rasterFunctionInfos ## i only had one layer so I have an index of 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I got the list of raster functions, it was just a matter of passing in the raster function name using the syntax below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;myMap.add_layer(image_layer2, {"imageServiceParameters" :{ "renderingRule": { "rasterFunction": "FalseColorComposite"}}})&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-false-color-composite-renderer/m-p/876159#M4910</guid>
      <dc:creator>EdCarlos</dc:creator>
      <dc:date>2020-08-21T14:40:15Z</dc:date>
    </item>
  </channel>
</rss>

