<?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 arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542375#M42326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem with generating contours for decimal values eg. 0.1, 0.5 when using&amp;nbsp;arcpy.Contour_3d in ArcPro 2.6.2. I have a larger script which is generating these contours and loading it to the particular feature class in geodatabase. After troubleshooting it appears that the&amp;nbsp;arcpy.Contour_3d method is failing every time when suing decimal values. At the end created simple script embedded in toolbox, the script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Temp\Bathy_Contours\Contour_Testing\Testscript_edited.PY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.CheckInExtension("3D")&lt;BR /&gt;arcpy.Contour_3d(r"C:\Temp\Bathy_Contours\Contour_Testing\SSDM2_FNAS_v1_ED50Z31.gdb\P133982_EQ20321_4m3i5s", r"C:\Temp\Bathy_Contours\Contour_Testing\SSDM2_FNAS_v1_ED50Z31.gdb\Contour_2128_DZ", 0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512602_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purposes the tool is simple and don't have any parameters&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/512618_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/512619_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running the script&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/512620_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried as well with ArcGIS Pro 2.5, changing the windows regional settings for comma or dot, changing language settings, changing settings in ArcPro, changing script extension from .py to .PY, setting up new ArcPro project from scratch, configuring new toolbox &amp;amp; new script, working with different input bathymetry rasters, different geodatabases, different disk/network locations, different pc's&amp;nbsp; and even replacing the&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ddd.py file, but nothing helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you runned on the same problem or have any tips, please advice. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2020 21:36:16 GMT</pubDate>
    <dc:creator>Darius</dc:creator>
    <dc:date>2020-11-05T21:36:16Z</dc:date>
    <item>
      <title>arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542375#M42326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem with generating contours for decimal values eg. 0.1, 0.5 when using&amp;nbsp;arcpy.Contour_3d in ArcPro 2.6.2. I have a larger script which is generating these contours and loading it to the particular feature class in geodatabase. After troubleshooting it appears that the&amp;nbsp;arcpy.Contour_3d method is failing every time when suing decimal values. At the end created simple script embedded in toolbox, the script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Temp\Bathy_Contours\Contour_Testing\Testscript_edited.PY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.CheckInExtension("3D")&lt;BR /&gt;arcpy.Contour_3d(r"C:\Temp\Bathy_Contours\Contour_Testing\SSDM2_FNAS_v1_ED50Z31.gdb\P133982_EQ20321_4m3i5s", r"C:\Temp\Bathy_Contours\Contour_Testing\SSDM2_FNAS_v1_ED50Z31.gdb\Contour_2128_DZ", 0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512602_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purposes the tool is simple and don't have any parameters&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/512618_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/512619_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running the script&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/512620_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried as well with ArcGIS Pro 2.5, changing the windows regional settings for comma or dot, changing language settings, changing settings in ArcPro, changing script extension from .py to .PY, setting up new ArcPro project from scratch, configuring new toolbox &amp;amp; new script, working with different input bathymetry rasters, different geodatabases, different disk/network locations, different pc's&amp;nbsp; and even replacing the&lt;/P&gt;&lt;P&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ddd.py file, but nothing helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you runned on the same problem or have any tips, please advice. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 21:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542375#M42326</guid>
      <dc:creator>Darius</dc:creator>
      <dc:date>2020-11-05T21:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542376#M42327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you always used a file geodatabase raster as input? exporting a subset as a TIFF and using that as input/output might narrow down some potential issues, as you mentioned you may have regional (,) encoding of decimals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 21:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542376#M42327</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-05T21:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542377#M42328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, thanks for prompt advice! I always used file geodatabase for this calculations. Anyway I gave a shot and tested with exporting input raster to TIFF but looks like the issue is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is just with input as TIFF&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512577_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is with input and output as TIF&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/512578_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542377#M42328</guid>
      <dc:creator>Darius</dc:creator>
      <dc:date>2020-11-05T22:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542378#M42329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a strange one.&amp;nbsp; I previously said output as tif also - when obviously the output is a vector (duh) so ignore that please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input for countour interval has an error recorded against it when input is double, of which 0.5 is a member so that's weird Maybe try an integer just to see if the documentation is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Input for the tool is identified as raster layer also - maybe try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #4c4c4c; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre-wrap; word-spacing: 0px;"&gt;MakeRasterLayer(in_raster, out_rasterlayer, {where_clause}, {envelope}, {band_index})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;but why the error doesn't jump to that I'm not sure&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542378#M42329</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-05T22:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542379#M42330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, it is working fine with integer numbers and producing output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is working fine when running the same commands directly from python window in ArcPro! The result is fine and output is generated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/512652_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there must be some bug when creating toolbox or adding the script to the toolbox. My steps to create a toolbox are as following:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/512653_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/512654_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/512655_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/512656_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-7 jive-image" src="https://community.esri.com/legacyfs/online/512657_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 08:58:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542379#M42330</guid>
      <dc:creator>Darius</dc:creator>
      <dc:date>2020-11-06T08:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542380#M42331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be referencing a raster layer in the Pro window right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 09:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542380#M42331</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-06T09:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542381#M42332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is correct, taking as input the raster&amp;nbsp;which is added to Contents window in ArcPro as well visible in the Map window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542381#M42332</guid>
      <dc:creator>Darius</dc:creator>
      <dc:date>2020-11-06T10:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542382#M42333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David for all your tips! It looks like complete deinstallation&amp;nbsp;and installing ArcPro from scratch solved the problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will probably never find the solution for that problem, looks like something was corrupted / bug or other thing. Strange that it happened at the the other pc. That could as well related to some windows updates or other software which messed up settings / environments or python related stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, this is really great place to share things!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to somehow mark that issues as closed / solved here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2020 19:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542382#M42333</guid>
      <dc:creator>Darius</dc:creator>
      <dc:date>2020-11-07T19:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Contour_3d does not generate contours for decimated values ArcPro 2.6.2</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542383#M42334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of life's mysteries I think &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cry.png" /&gt;.&amp;nbsp; You can mark your own answer as correct I believe, or also mark your original question as 'assumed answered'.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2020 19:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-contour-3d-does-not-generate-contours-for/m-p/542383#M42334</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-07T19:50:24Z</dc:date>
    </item>
  </channel>
</rss>

