<?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: Controling bit depth of raster in FGDB format in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125859#M1777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Dan and Chris, I should have clarified, but bit depth promotion is &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; what is going on here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example... a value of 34.5678 * 3.2808 would not result in an output value &amp;gt;= 3.402823466e+38 (which according to the documentation would be the max of the 32-bit threshold), but regardless the resulting raster is output as a 64-bit float... even though there is no reason to warrant that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was trying to resolve 3.402823465e+38 * 3.2808 I would of course expect (and want!) the result promoted to a 64-bit depth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what I'm look for (wishing for!) is either a envr setting or a map algebra function that would ignore the unwarranted bit depth promotion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My feeling is that ESRI probably just hard coded it so that if a float type operand was used with an input 32-bit float datasets it would just auto-promote, regardless if the output values exceeded the limit of the 32-bit max/min. A more elegant algorithm would test the max values of the rasters, the operations, and operands then resolve if promotion was necessary. More code for sure, but certainly more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worth noting that multiplying a 32-bit float raster by an integer (34.5678 * 3) retains the original 32-bit float depth in the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 23:27:47 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2015-02-17T23:27:47Z</dc:date>
    <item>
      <title>Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125850#M1768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've noticed an annoying issue that when I do raster math on a 32-bit float raster datasets , the output (if in FGDB format) has the bit depth get upped to 64-bit. Other than using the CopyRaster tool to copy it back to a 32-bit float format, is there any way to control the bit depth? As far as I know there is no geoprocessing envr setting or spatial analyst function that does this... but seems like there should be!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 00:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125850#M1768</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2015-02-13T00:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125851#M1769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there should be, especially if it can be set within the Raster properties in the Environments tab for SA tools.&amp;nbsp; This thread on &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009t0000002s000000"&gt;bit depth&lt;/A&gt; suggests that Esri grids may be the solution, or that rasters with a full range of classes already occupied and contain nodata cells will be upscaled automatically.&amp;nbsp; I somewhat doubt that the latter is the case, but have you tried saving the results to Esri grid format to see if the problem persists?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 01:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125851#M1769</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-13T01:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125852#M1770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GRID only supports up to a 32-bit float (64-bit isn't even an option!), so yes that would work. I actually prefer GRID format usually, but indeed some things are faster/more efficient with FGDB format. One thing in particular is that the FGDB format offers (over GRID, .img, etc). is compression support for 32-bit floats. This comes into play especially for rasters with sparse data coverage (the NoData values compress!). Otherwise your 7.2GB LiDAR raster in FGDB format ends up being a 120GB GRID format raster!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, a bit depth environment setting or spatial analyst function sure would be nice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 02:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125852#M1770</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2015-02-13T02:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125853#M1771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmmmm and it appears that &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/NumPyArrayToRaster/03q30000007q000000/"&gt;RasterToNumpyArray&lt;/A&gt; and its &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/NumPyArrayToRaster/03q30000007q000000/"&gt;reverse&lt;/A&gt; only support certain environment settings as well, although I haven't played with changing the array data type to a lower floating point representation prior to output back to raster.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 03:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125853#M1771</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-13T03:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125854#M1772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying the NoData value will allow you to control the pixel depth and the value that will store NoData. If a NoData value is not specified, the program will find an empty value to use as the NoData placeholder, which may not be desired or expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what you could try before running Raster Math.&lt;/P&gt;&lt;P&gt;1. Check your input rasters (grayscale bands). Note the values of NoData pixels (e.g. the dark background).&lt;/P&gt;&lt;P&gt;2. Open &lt;STRONG&gt;Reclassify (Spatial Analyst)&lt;/STRONG&gt;. Change the background value (e.g. 0 in my case) to &lt;STRONG&gt;NoData&lt;/STRONG&gt;. Remove all other entries.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/61466_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;You could use ModelBuilder/ArcPy to batch process it.&lt;/P&gt;&lt;P&gt;3. Use these output raster for Raster Math.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 07:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125854#M1772</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-02-13T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125855#M1773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay - Not sure what you mean here... your explanation of the process is not very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have a 32-bit float input raster in FGDB format, and I want to do some simple math involving&amp;nbsp; some floating point numbers. For example: myRst * 3.2808. I want the output raster to remain in FGDB format. Currently when this process is executed the output raster (in FGDB format) is pumped out as a 64-bit raster. Is there a direct way to "force" the output to remain a 32-bit float?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what it's worth, I did try the following w/ no success:&lt;/P&gt;&lt;P&gt;1. Created a 32-bit raster (a copy of the input), and used that as the output (aka I overwrote the copy with the output). Result: 64-bit.&lt;/P&gt;&lt;P&gt;2. Altered the NoData envr setting (under Raster Storage heading) to 'MINIMUM'. Result: 64-bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 21:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125855#M1773</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2015-02-17T21:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125856#M1774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you may be running into is sometimes termed "Bit Depth Promotion":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Esri's products contain all the designations of unknown values within their raster datasets. The unknown values are NoData. Internally, a real value must be used to store the NoData cells. Accordingly, when NoData is added to a raster that already has a full bit range (meaning that there is at least one cell in the raster extent occupying all the values in the bit range, for example, when 0 to 255 are all represented), &lt;STRONG&gt;it is promoted to the next higher bit depth.&lt;/STRONG&gt; For example, a hillshade grid with cell values of 0 to 255 (which would otherwise fit within the 8 bit range), that also contains some NoData cells, is represented as unsigned 16 bit.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009t0000002s000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//009t0000002s000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 21:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125856#M1774</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-02-17T21:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125857#M1775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, that is the same link I sent him 5 days ago and he seems to have ruled that out as a possibility.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 21:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125857#M1775</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-17T21:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125858#M1776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mentioned it as from Chris' response I wasn't sure if he had evaluated that specific point.&amp;nbsp; And, as of a short while ago he was still looking for a solution.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Knowledge is power, use it well&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 22:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125858#M1776</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2015-02-17T22:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125859#M1777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Dan and Chris, I should have clarified, but bit depth promotion is &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; what is going on here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example... a value of 34.5678 * 3.2808 would not result in an output value &amp;gt;= 3.402823466e+38 (which according to the documentation would be the max of the 32-bit threshold), but regardless the resulting raster is output as a 64-bit float... even though there is no reason to warrant that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was trying to resolve 3.402823465e+38 * 3.2808 I would of course expect (and want!) the result promoted to a 64-bit depth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically what I'm look for (wishing for!) is either a envr setting or a map algebra function that would ignore the unwarranted bit depth promotion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My feeling is that ESRI probably just hard coded it so that if a float type operand was used with an input 32-bit float datasets it would just auto-promote, regardless if the output values exceeded the limit of the 32-bit max/min. A more elegant algorithm would test the max values of the rasters, the operations, and operands then resolve if promotion was necessary. More code for sure, but certainly more elegant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worth noting that multiplying a 32-bit float raster by an integer (34.5678 * 3) retains the original 32-bit float depth in the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 23:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125859#M1777</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2015-02-17T23:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125860#M1778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welll...well... well all I can say is if you would stick with the metric system... you wouldn't have this problem ... no wonder I have never seen it before ... coming from Canada and all, Eh&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.metric-conversions.org/length/meters-to-feet.htm" title="http://www.metric-conversions.org/length/meters-to-feet.htm"&gt;Meters to Feet conversion&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 00:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125860#M1778</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-18T00:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125861#M1779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was actually thinking of converting my units to chains to really throw things off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: according to your converter, 1m = 3ft 3&lt;SUP&gt;3&lt;/SUP&gt;⁄&lt;SUB&gt;8&lt;/SUB&gt;in. I think this output is intended to mock the U.S. system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 01:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125861#M1779</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2015-02-18T01:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Controling bit depth of raster in FGDB format</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125862#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;just use the yard. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/EM&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 03:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/controling-bit-depth-of-raster-in-fgdb-format/m-p/125862#M1780</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-18T03:18:22Z</dc:date>
    </item>
  </channel>
</rss>

