<?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: Script tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-tool/m-p/589746#M46242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In python the back slash \ in a literal string is a special character. Use forward slashes / or escaped backslashes \\ or raw string notation r"". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;scipy.misc.imsave('D:/path/to/save/to') 
scipy.misc.imsave('D:\\path\\to\\save\\to') 
scipy.misc.imsave(r'D:\path\to\save\to')&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:20:09 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2021-12-12T01:20:09Z</dc:date>
    <item>
      <title>Script tool</title>
      <link>https://community.esri.com/t5/python-questions/script-tool/m-p/589745#M46241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;excuse me can someone make this code for me a script tool, I do not know what is the problem with me... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the code is working in python window...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import scipy.ndimage as ndi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import scipy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import numpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import Image&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import math&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inpRaster= arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sigma= arcpy.GetParameter(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;desc = arcpy.Describe(inpRaster)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f = desc.catalogPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;img = Image.open(f).convert('L') #grayscale&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;imgdata = numpy.array(img, dtype = float)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G = ndi.filters.gaussian_filter(imgdata, sigma)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scipy.misc.imsave('D:\SEMETER ONE\DIGITAL IMAGE PROCESSING\Edge Detection Project\G.jpg', G)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please if you know the reason way the script tool do not save the result( output ) infer me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 18:41:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool/m-p/589745#M46241</guid>
      <dc:creator>MaherAL_ZUHAIRI</dc:creator>
      <dc:date>2014-04-18T18:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script tool</title>
      <link>https://community.esri.com/t5/python-questions/script-tool/m-p/589746#M46242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In python the back slash \ in a literal string is a special character. Use forward slashes / or escaped backslashes \\ or raw string notation r"". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;scipy.misc.imsave('D:/path/to/save/to') 
scipy.misc.imsave('D:\\path\\to\\save\\to') 
scipy.misc.imsave(r'D:\path\to\save\to')&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-tool/m-p/589746#M46242</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-12T01:20:09Z</dc:date>
    </item>
  </channel>
</rss>

