<?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 Changing raster cell size in VBScript in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/changing-raster-cell-size-in-vbscript/m-p/434276#M14624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script where I need to take the cell size of the first raster input, run functions, then take that cell size and multiply it by 3 and run more functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In VBScript, the cell size can be set to MAXOF, MINOF, or a value.&amp;nbsp; Is there a way I could set it to "MAXOF" and then somehow determine the value of "MAXOF" and multiply it by 3?&amp;nbsp; The problem here is that "MAXOF" is a String, but somehow the script knows the actual double value based on the first raster input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code doesn't work in VBScript but hopefully gives a idea of what I'm trying to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.cellSize = "MAXOF"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cellSize = cDbl(gp.cellSize)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cellSize3 = cellSize * 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kyle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 20:01:18 GMT</pubDate>
    <dc:creator>KyleGallagher</dc:creator>
    <dc:date>2010-05-05T20:01:18Z</dc:date>
    <item>
      <title>Changing raster cell size in VBScript</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/changing-raster-cell-size-in-vbscript/m-p/434276#M14624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script where I need to take the cell size of the first raster input, run functions, then take that cell size and multiply it by 3 and run more functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In VBScript, the cell size can be set to MAXOF, MINOF, or a value.&amp;nbsp; Is there a way I could set it to "MAXOF" and then somehow determine the value of "MAXOF" and multiply it by 3?&amp;nbsp; The problem here is that "MAXOF" is a String, but somehow the script knows the actual double value based on the first raster input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code doesn't work in VBScript but hopefully gives a idea of what I'm trying to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.cellSize = "MAXOF"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cellSize = cDbl(gp.cellSize)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cellSize3 = cellSize * 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kyle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/changing-raster-cell-size-in-vbscript/m-p/434276#M14624</guid>
      <dc:creator>KyleGallagher</dc:creator>
      <dc:date>2010-05-05T20:01:18Z</dc:date>
    </item>
  </channel>
</rss>

