<?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>idea Please change raster pixelType property string values in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idi-p/1234607</link>
    <description>&lt;P&gt;When trying to use RasterInfo to pass the pixel type value of raster tiles that will be fed into the arcpy MosaicToNewRaster function, an error results because the string value stored in RasterInfo does not match the values expected in MosaicToNewRaster. For example, with a 32-bit float raster, can we please have either a Raster object's pixel type value be '32_BIT_FLOAT' or have MosaicToNewRaster be able to read in '32F' in this case ? Or better yet, can MosaicToNewRaster be able to infer pixel type (and band count for that matter) as it is able to infer spatial reference and cell size?&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/445836/feed-pixel-type-of-tiles-into-mosaictonewraster" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/445836/feed-pixel-type-of-tiles-into-mosaictonewraster:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# import arcpy, os&lt;/SPAN&gt;

&lt;SPAN class=""&gt;# Check out the ArcGIS Spatial Analyst extension license&lt;/SPAN&gt;
arcpy.CheckOutExtension(&lt;SPAN class=""&gt;"Spatial"&lt;/SPAN&gt;)
arcpy.env.workspace = &lt;SPAN class=""&gt;"My_Data_Directory_Path"&lt;/SPAN&gt;

&lt;SPAN class=""&gt;# Create list of input raster tiles&lt;/SPAN&gt;
list_opr_tiles = arcpy.ListRasters()
list_tile_paths = [os.path.join(&lt;SPAN class=""&gt;"My_Data_Directory_Path"&lt;/SPAN&gt;, tile) &lt;SPAN class=""&gt;for&lt;/SPAN&gt; tile &lt;SPAN class=""&gt;in&lt;/SPAN&gt; list_opr_tiles]

&lt;SPAN class=""&gt;# Instantiate instance of RasterInfo object&lt;/SPAN&gt;
rasInfo = arcpy.Raster(list_tile_paths[&lt;SPAN class=""&gt;0&lt;/SPAN&gt;]).getRasterInfo()

&lt;SPAN class=""&gt;# Assign variable to raster's pixelType property&lt;/SPAN&gt;
string_pixel_type = rasInfo.getPixelType()

&lt;SPAN class=""&gt;# Assign variable to raster's bandCount property&lt;/SPAN&gt;
string_band_count = rasInfo.getBandCount()

arcpy.MosaicToNewRaster_management(input_rasters = list_tile_paths, output_location = &lt;SPAN class=""&gt;"My_Output_Directory_Path"&lt;/SPAN&gt;, raster_dataset_name_with_extension = &lt;SPAN class=""&gt;"My_Mosaic_Name"&lt;/SPAN&gt;, pixel_type = string_pixel_type, number_of_bands = string_band_count)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 16:07:59 GMT</pubDate>
    <dc:creator>Eniac-6</dc:creator>
    <dc:date>2022-12-01T16:07:59Z</dc:date>
    <item>
      <title>Please change raster pixelType property string values</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idi-p/1234607</link>
      <description>&lt;P&gt;When trying to use RasterInfo to pass the pixel type value of raster tiles that will be fed into the arcpy MosaicToNewRaster function, an error results because the string value stored in RasterInfo does not match the values expected in MosaicToNewRaster. For example, with a 32-bit float raster, can we please have either a Raster object's pixel type value be '32_BIT_FLOAT' or have MosaicToNewRaster be able to read in '32F' in this case ? Or better yet, can MosaicToNewRaster be able to infer pixel type (and band count for that matter) as it is able to infer spatial reference and cell size?&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/445836/feed-pixel-type-of-tiles-into-mosaictonewraster" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/445836/feed-pixel-type-of-tiles-into-mosaictonewraster:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# import arcpy, os&lt;/SPAN&gt;

&lt;SPAN class=""&gt;# Check out the ArcGIS Spatial Analyst extension license&lt;/SPAN&gt;
arcpy.CheckOutExtension(&lt;SPAN class=""&gt;"Spatial"&lt;/SPAN&gt;)
arcpy.env.workspace = &lt;SPAN class=""&gt;"My_Data_Directory_Path"&lt;/SPAN&gt;

&lt;SPAN class=""&gt;# Create list of input raster tiles&lt;/SPAN&gt;
list_opr_tiles = arcpy.ListRasters()
list_tile_paths = [os.path.join(&lt;SPAN class=""&gt;"My_Data_Directory_Path"&lt;/SPAN&gt;, tile) &lt;SPAN class=""&gt;for&lt;/SPAN&gt; tile &lt;SPAN class=""&gt;in&lt;/SPAN&gt; list_opr_tiles]

&lt;SPAN class=""&gt;# Instantiate instance of RasterInfo object&lt;/SPAN&gt;
rasInfo = arcpy.Raster(list_tile_paths[&lt;SPAN class=""&gt;0&lt;/SPAN&gt;]).getRasterInfo()

&lt;SPAN class=""&gt;# Assign variable to raster's pixelType property&lt;/SPAN&gt;
string_pixel_type = rasInfo.getPixelType()

&lt;SPAN class=""&gt;# Assign variable to raster's bandCount property&lt;/SPAN&gt;
string_band_count = rasInfo.getBandCount()

arcpy.MosaicToNewRaster_management(input_rasters = list_tile_paths, output_location = &lt;SPAN class=""&gt;"My_Output_Directory_Path"&lt;/SPAN&gt;, raster_dataset_name_with_extension = &lt;SPAN class=""&gt;"My_Mosaic_Name"&lt;/SPAN&gt;, pixel_type = string_pixel_type, number_of_bands = string_band_count)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idi-p/1234607</guid>
      <dc:creator>Eniac-6</dc:creator>
      <dc:date>2022-12-01T16:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Please change raster pixelType property string values</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1235836#M22301</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/478911"&gt;@Eniac-6&lt;/a&gt;&amp;nbsp;- Thanks for bringing this up. Our development team will look into this issue.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saravanan&lt;BR /&gt;Product Engineer, Raster team - Esri&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 12:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1235836#M22301</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-11-29T12:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please change raster pixelType property string values</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1236583#M22332</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;@Anonymous User&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 20:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1236583#M22332</guid>
      <dc:creator>Eniac-6</dc:creator>
      <dc:date>2022-11-30T20:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please change raster pixelType property string values</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1245249#M22694</link>
      <description>&lt;P&gt;Note:&amp;nbsp;&lt;SPAN class="local-date"&gt;‎11-29-2022&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt;04:35 AM post from Anonymous User by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/647314"&gt;@SaravananMuthukaruppan&lt;/a&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1245249#M22694</guid>
      <dc:creator>JesseCloutier</dc:creator>
      <dc:date>2023-01-04T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please change raster pixelType property string values</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1706832#M38488</link>
      <description>&lt;P&gt;This also matters to my team. Could we get an update on this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being able to directly pass the pixelType returned by Describe() or RasterInfo into the MosaicToNewRaster function would be great. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 13:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1706832#M38488</guid>
      <dc:creator>charlesowenblock_work</dc:creator>
      <dc:date>2026-06-08T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Please change raster pixelType property string values</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1706841#M38489</link>
      <description>&lt;P&gt;Related idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcpy-describe-pixeltype-returns-useless-value/idi-p/941921" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-ideas/arcpy-describe-pixeltype-returns-useless-value/idi-p/941921&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 13:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/please-change-raster-pixeltype-property-string/idc-p/1706841#M38489</guid>
      <dc:creator>charlesowenblock_work</dc:creator>
      <dc:date>2026-06-08T13:24:05Z</dc:date>
    </item>
  </channel>
</rss>

