<?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: NetCDF Voxel Layer Symbology Issue in ArcGIS Pro 3.4 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668845#M74948</link>
    <description>&lt;P&gt;Oh! Thank you for the clarification!&lt;/P&gt;&lt;P&gt;This confirms my suspicion that the &lt;STRONG&gt;esri_unique_colors&lt;/STRONG&gt; attribute is not supported for discrete Voxel Layers (Unique Values) in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Since &lt;STRONG&gt;esri_unique_labels&lt;/STRONG&gt; works perfectly, allowing the automatic loading of sediment descriptions, I will try with this workflow:&lt;/P&gt;&lt;P&gt;1. Manually setting the symbology and saving it to a .lyrx file once.&lt;BR /&gt;2. Using ArcPy in my Python script to apply the colors automatically after loading the NetCDF file.&lt;/P&gt;&lt;P&gt;This should addresses the issue completely. Thanks again for your prompt and helpful response!&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 17:08:53 GMT</pubDate>
    <dc:creator>Matteo_Censi</dc:creator>
    <dc:date>2025-11-26T17:08:53Z</dc:date>
    <item>
      <title>NetCDF Voxel Layer Symbology Issue in ArcGIS Pro 3.4</title>
      <link>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668735#M74945</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;I am generating a 3D categorical voxel model (.nc file) from point data using a custom Python script and the netCDF4 library. I am using proprietary ESRI attributes to enforce discrete symbology (Unique Values) upon loading the layer in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;While the unique values and labels are successfully loaded, the colors fail to apply automatically.&lt;BR /&gt;&lt;BR /&gt;My goal is to load the Voxel Layer with correct Labels AND Colors applied automatically.&lt;/P&gt;&lt;P&gt;Data Type: Categorical codes stored as unsigned 8-bit integers (u1 / uint8).&lt;BR /&gt;Dimensions: 3D Voxel (z, y, x).&lt;BR /&gt;_FillValue: 255 (as uint8).&lt;/P&gt;&lt;P&gt;The main variable, sediment_code, is defined with the following attributes:&lt;BR /&gt;&lt;STRONG&gt;esri_unique_values&lt;/STRONG&gt; np.array([...], dtype='u1') -&amp;gt; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;WORKS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;esri_unique_labels&lt;/STRONG&gt; np.array(['Su Extremely Low', ...], dtype=str) -&amp;gt; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;WORKS&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;esri_unique_colors&lt;/STRONG&gt; RGBA String -&amp;gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;FAILS (Colors not applied)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;flag_values / flag_meanings&lt;/STRONG&gt; CF Standard -&amp;gt; &lt;FONT color="#339966"&gt;&lt;STRONG&gt;WORKS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Here is how the main variable is created and the key attributes are assigned in the script that successfully loads the labels:&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Assuming cf_flag_values (dtype='u1'), flag_descriptions, and rgba_string are correctly calculated

# Variable creation using u1 (uint8)
sed_var = ncfile.createVariable(
    'sediment_code', 
    'u1',           # Unsigned 8-bit integer (working type)
    ('z', 'y', 'x'), 
    fill_value=255,   # Working FillValue
    zlib=False      
)

# ... other essential attributes (standard_name, coordinates, grid_mapping)

# ArcGIS Pro Proprietor Attributes (Symbology)
sed_var.esri_unique_values = cf_flag_values
sed_var.esri_unique_labels = np.array(flag_descriptions, dtype=str)
sed_var.esri_unique_colors = rgba_string # &amp;lt;--- The failing attribute

# Example of RGBA string format (partially):
# "217 225 242 255 180 198 231 255 0 176 240 255 ..."&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Given that &lt;STRONG&gt;esri_unique_values&lt;/STRONG&gt; and &lt;STRONG&gt;esri_unique_labels&lt;/STRONG&gt; are correctly read by ArcGIS Pro 3.x for this Voxel Layer, what could be the specific issue preventing &lt;STRONG&gt;esri_unique_colors&lt;/STRONG&gt; from being applied?&lt;/P&gt;&lt;P&gt;Is there a required character limit, escaping rule, or specific formatting (e.g., using commas instead of spaces) for the RGBA string when defining colors for u1 variables?&lt;/P&gt;&lt;P&gt;Does the Voxel Layer symbology require the colors to be stored in a different dimension/variable rather than as an attribute?&lt;/P&gt;&lt;P&gt;Any guidance on the exact syntax or known limitations for the esri_unique_colors attribute on Voxel Layers would be greatly appreciated.&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668735#M74945</guid>
      <dc:creator>Matteo_Censi</dc:creator>
      <dc:date>2025-11-26T10:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: NetCDF Voxel Layer Symbology Issue in ArcGIS Pro 3.4</title>
      <link>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668790#M74946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Where did you see that esri_unique_colors is a supported attribute?&lt;/P&gt;&lt;P&gt;Currently, this is only supported for continuous values through the esri_color_ramp attribute in the official documentation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/voxel-layer-symbology.htm#ESRI_SECTION1_E6B2A8FFB5EE431BA1B031AC144A71E7" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/voxel-layer-symbology.htm#ESRI_SECTION1_E6B2A8FFB5EE431BA1B031AC144A71E7&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 15:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668790#M74946</guid>
      <dc:creator>Andrew--Johnson</dc:creator>
      <dc:date>2025-11-26T15:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: NetCDF Voxel Layer Symbology Issue in ArcGIS Pro 3.4</title>
      <link>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668845#M74948</link>
      <description>&lt;P&gt;Oh! Thank you for the clarification!&lt;/P&gt;&lt;P&gt;This confirms my suspicion that the &lt;STRONG&gt;esri_unique_colors&lt;/STRONG&gt; attribute is not supported for discrete Voxel Layers (Unique Values) in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Since &lt;STRONG&gt;esri_unique_labels&lt;/STRONG&gt; works perfectly, allowing the automatic loading of sediment descriptions, I will try with this workflow:&lt;/P&gt;&lt;P&gt;1. Manually setting the symbology and saving it to a .lyrx file once.&lt;BR /&gt;2. Using ArcPy in my Python script to apply the colors automatically after loading the NetCDF file.&lt;/P&gt;&lt;P&gt;This should addresses the issue completely. Thanks again for your prompt and helpful response!&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 17:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/netcdf-voxel-layer-symbology-issue-in-arcgis-pro-3/m-p/1668845#M74948</guid>
      <dc:creator>Matteo_Censi</dc:creator>
      <dc:date>2025-11-26T17:08:53Z</dc:date>
    </item>
  </channel>
</rss>

