<?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 add color map to image service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-map-to-image-service/m-p/1012117#M71183</link>
    <description>&lt;P&gt;I have an image service created from a mosaic dataset with a pixel type of float and 32 bit depth. Evidently it isn't possible to add a color map function (I tried) to a raster that has greater than 16bit pixel depth, so I am trying to render the color map to the image service from the javascript (client side). I have tried the following script, but it's not working. I can see the image, but it shows on the map as black to white stretch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let remapRF = new RasterFunction();
        remapRF.functionName = "remap";
        remapRF.functionArguments = {
            "InputRanges": [-0.072164394,0.040707171,0.040707171,0.118849024, 
                     0.118849024,0.223038161, 0.223038161,0.361957011, 
                     0.361957011,0.544288001, 0.544288001,0.752666275, 
                     0.752666275,1.026162761],
            "OutputValues": [1,2,3,4,5,6,7],
            "Raster": "$$"
        }
        remapRF.variableName = "biovolume";
        remapRF.outputPixelType = "F32";

let colorRF = new RasterFunction();
        colorRF.functionName = "Colormap";
        colorRF.variableName = "biovolume";
        colorRF.functionArguments = {
             "Colormap": [[1, 11,44,122], [2, 30,144,148], [3, 14,196,65], 
                   [4, 123,237,0], [5, 247,215,7], [6, 230,142,28], 
                   [7, 194,82,60]],
            "Raster": remapRF
        };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 18:08:23 GMT</pubDate>
    <dc:creator>FranklinAlexander</dc:creator>
    <dc:date>2020-12-23T18:08:23Z</dc:date>
    <item>
      <title>How to add color map to image service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-map-to-image-service/m-p/1012117#M71183</link>
      <description>&lt;P&gt;I have an image service created from a mosaic dataset with a pixel type of float and 32 bit depth. Evidently it isn't possible to add a color map function (I tried) to a raster that has greater than 16bit pixel depth, so I am trying to render the color map to the image service from the javascript (client side). I have tried the following script, but it's not working. I can see the image, but it shows on the map as black to white stretch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let remapRF = new RasterFunction();
        remapRF.functionName = "remap";
        remapRF.functionArguments = {
            "InputRanges": [-0.072164394,0.040707171,0.040707171,0.118849024, 
                     0.118849024,0.223038161, 0.223038161,0.361957011, 
                     0.361957011,0.544288001, 0.544288001,0.752666275, 
                     0.752666275,1.026162761],
            "OutputValues": [1,2,3,4,5,6,7],
            "Raster": "$$"
        }
        remapRF.variableName = "biovolume";
        remapRF.outputPixelType = "F32";

let colorRF = new RasterFunction();
        colorRF.functionName = "Colormap";
        colorRF.variableName = "biovolume";
        colorRF.functionArguments = {
             "Colormap": [[1, 11,44,122], [2, 30,144,148], [3, 14,196,65], 
                   [4, 123,237,0], [5, 247,215,7], [6, 230,142,28], 
                   [7, 194,82,60]],
            "Raster": remapRF
        };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-map-to-image-service/m-p/1012117#M71183</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2020-12-23T18:08:23Z</dc:date>
    </item>
  </channel>
</rss>

