<?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: Converting Raster Data Typ in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458739#M26211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have Desktop (ArcMap or ArcGIS Pro) and the&amp;nbsp;Spatial Analyst extension you could use the &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/raster-calculator.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;, and calculate something like this :&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Con("YourRaster" == 1, 1, 0)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you point the output to a TIF file, it will&amp;nbsp;create an 8 bit unsigned integer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/397862_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't change the field type of the value field of a raster, since this is defined by the raster type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 16:09:57 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2018-03-01T16:09:57Z</dc:date>
    <item>
      <title>Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458738#M26210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I'm using an external Toolbox in my current analysis. One of the inputs has to be a short integer grid, containing values of "0" and "1". But the field type of the Raster I currently have (Tif-Format) is a long integer. I already tried to add a short integer field in the attribute table and used the field calculation. But the Input raster for the toolbox can not have another column then the short integer value. If I use the tool "delete field" to delete the long integer field, the geographical information gets lost, as this is the main value field. Do you know how I can convert the long into short integer values, od how can I create a new raster with short integer values?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458738#M26210</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-01T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458739#M26211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have Desktop (ArcMap or ArcGIS Pro) and the&amp;nbsp;Spatial Analyst extension you could use the &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/raster-calculator.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;, and calculate something like this :&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Con("YourRaster" == 1, 1, 0)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you point the output to a TIF file, it will&amp;nbsp;create an 8 bit unsigned integer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/397862_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't change the field type of the value field of a raster, since this is defined by the raster type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458739#M26211</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-03-01T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458740#M26212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use CopyRaster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458740#M26212</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2018-03-01T16:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458741#M26213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, thank you! That means, if I have to have a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;short integer grid as Input, it can't be a Tiff-raster, but has to be something else?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458741#M26213</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-01T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458742#M26214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the new output raster can be any format that supports short int. You decide on the Pixel type.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397877_a.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458742#M26214</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2018-03-01T16:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458743#M26215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hm, I don't really understand it ... I open copy raster, Input raster is my 8-bit signed, long-integer tiff-raster. I name the output raster dataset "myraster.tif". I choose 4 bit. It executes and loads the result into the dataset. but when I'm checking the properties of the new raster it's&amp;nbsp;8-bit unsigned. and if I check the&amp;nbsp;field properties in my attribut table it still says Type: Long&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458743#M26215</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-01T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458744#M26216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the values in your input raster in the 4 bit range?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458744#M26216</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2018-03-01T17:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458745#M26217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot that it was not only my values, but also a "count"-column, thats why... so I trid it again, now its a 4 bit unsigned raster. but still, the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;field properties in my attribut table&amp;nbsp;is Type: Long... that's what I have to change&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458745#M26217</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-01T17:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458746#M26218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only way that (I can think of)  to do that is to add a short field to the table and then use CalculateField to update the values. To get this newly created field as the primary value field you’ll need to use the Lookup&amp;lt;http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/lookup.htm&amp;gt; tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458746#M26218</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2018-03-01T17:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458747#M26219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help! But sadly that doesn't work, as the lookup tool makes it a long-integer again...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 18:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458747#M26219</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-01T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458748#M26220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: I think it should also work with a 4bit long-integer value grid. So thank you very much. The toolbox still returns errors. Sadly I don't have an explanation of the error codes, thats why I thought the short-integer/long-integer would be the problem, as the description demands a short-integer grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But: im processing this file with my DTM. I clipped both rasters, the DTM and the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;integer grid with the same polygone-shapefile. To be able to process them, they have to be the same extent. But if I compare both clipped results, the both have the same pixel size (5, 5) and the same number of rows (4949), but the number of columns&amp;nbsp;varies by one (4539 and 4538). I think is is causing my error. But I don't know how to adjust them, I also clipped the bigger one (with 4539 columns) and used the smaller one as the output extent. but the result still had 4539 columns...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Do you know another way I could try to cut them the same size?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:48:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458748#M26220</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-02T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Raster Data Typ</title>
      <link>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458749#M26221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It Didn't work with clip, but with extract by mask. So hope the toolbox works now. thank you very much to you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/converting-raster-data-typ/m-p/458749#M26221</guid>
      <dc:creator>JonasDanner</dc:creator>
      <dc:date>2018-03-02T11:57:59Z</dc:date>
    </item>
  </channel>
</rss>

