<?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: Raster calculator expression &amp;amp; empty output grid problem in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689319#M1588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;An example of how to complete a valid command line for Arcmap 9.3 is shown in the help file &lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Flow_Length"&gt;here&lt;/A&gt;. Not it does not have () or [] which your example has.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Duncan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue has two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, i tried to generate flow lenght raster through the arctoolbox interface (GUI), but the result was an empty raster grid file (attached file);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, in order to&amp;nbsp; sidestep this issue, i executed with success the flowlenght raster with the notation: FlowLength([flowdir_fill5]); but i wanted to generate the flow lenght using the donwslope option, however, it gives error when typing FlowLength([flowdir_fill5], downslope).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Yes, i tried: flowlength(direction, weight, upstream); it needed ([])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, i still need to solve the first issue, because all the raster generated through the Spatial Analyst GUI go wrong (empty grids); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i also didn't solved the 2^nd issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do do... ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 14:15:13 GMT</pubDate>
    <dc:creator>valteralbino</dc:creator>
    <dc:date>2014-02-26T14:15:13Z</dc:date>
    <item>
      <title>Raster calculator expression &amp;amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689317#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: valtersanches&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do i should write the &lt;/SPAN&gt;&lt;STRONG&gt;notation in raster calculator (using ArcGIS 9x) to calculate Flow Lenght (downstream)&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this but something is wrong: FlowLength([flowdir_fill5],downstream).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The command line syntax is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FlowLength_sa &amp;lt;in_flow_direction_raster&amp;gt; &amp;lt;out_raster&amp;gt; {DOWNSTREAM | UPSTREAM} {in_weight_raster}.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i use the notation: FlowLength([flowdir_fill5]), the output is a flow lenght upstream grid (I need the downstream).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before, i tried to use the Arctoolbox interface, &lt;/SPAN&gt;&lt;STRONG&gt;but i have something wrong with my ArcGIS (9.3)&lt;/STRONG&gt;&lt;SPAN&gt;, because &lt;/SPAN&gt;&lt;STRONG&gt;the output grid file is empty&lt;/STRONG&gt;&lt;SPAN&gt; (see attached file), but, if i use the raster calculator, the output it's good (i did a test to slope raster with raster calculator and the output is good).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 12:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689317#M1586</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-02-26T12:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expression &amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689318#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Hornbydd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example of how to complete a valid command line for Arcmap 9.3 is shown in the help file &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Flow_Length"&gt;here&lt;/A&gt;&lt;SPAN&gt;. Note it does not have () or [] which your example has.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 13:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689318#M1587</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-02-26T13:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expression &amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689319#M1588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;An example of how to complete a valid command line for Arcmap 9.3 is shown in the help file &lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Flow_Length"&gt;here&lt;/A&gt;. Not it does not have () or [] which your example has.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Duncan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My issue has two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, i tried to generate flow lenght raster through the arctoolbox interface (GUI), but the result was an empty raster grid file (attached file);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, in order to&amp;nbsp; sidestep this issue, i executed with success the flowlenght raster with the notation: FlowLength([flowdir_fill5]); but i wanted to generate the flow lenght using the donwslope option, however, it gives error when typing FlowLength([flowdir_fill5], downslope).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Yes, i tried: flowlength(direction, weight, upstream); it needed ([])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, i still need to solve the first issue, because all the raster generated through the Spatial Analyst GUI go wrong (empty grids); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i also didn't solved the 2^nd issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do do... ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689319#M1588</guid>
      <dc:creator>valteralbino</dc:creator>
      <dc:date>2014-02-26T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expression &amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689320#M1589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Hornbydd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still don't think you are completing the command line correctly. To be crystal clear you are attempting to execute the FlowLength via the command line and not the raster calculator? When I type into the command line window using the syntax as described in the 9.3 help file that I had given a link to it works fine for me, see the screen shot, so I'm not sure why its failing for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31778[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 15:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689320#M1589</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-02-26T15:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expression &amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689321#M1590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to do with the raster calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also tried the example (without sucess):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flowlength([direction])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flowlength([direction], downstream).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax FlowLength([flowdir_fill5]) gave the upstream output; but i'm still have problems in having the correct downstream output grid file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried through the command line (but like the Arcoolbox GUI, it gave an empty grid file (see attached file).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689321#M1590</guid>
      <dc:creator>valteralbino</dc:creator>
      <dc:date>2014-02-26T17:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expression &amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689322#M1591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Hornbydd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK a couple of other things to check:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your flow direction grid, is it valid and for the area? When I say valid it has only the values of 1,2,4,8,16,32,64 &amp;amp; 128?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a pre-existing Processing Extent set which may be for some other region? You access that via the spatial analyst toolbar &amp;gt; options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally if you are using the raster calculator from the spatial analyst toolbar have you tried the expressions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FLD = FlowLength([flowdir_fill5],"#","DOWNSTREAM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FLU = FlowLength([flowdir_fill5],"#","UPSTREAM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The expression for a raster calculator is flow direction grid, weight grid, keyword. So the "#" just means default as this is an optional parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 09:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689322#M1591</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-02-27T09:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator expression &amp; empty output grid problem</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689323#M1592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Duncan, my syntax was not complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, the output grid files area fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But still, if i try through the GUI (Arctoolbox) gives an empty grid file...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 11:12:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/raster-calculator-expression-amp-amp-empty-output/m-p/689323#M1592</guid>
      <dc:creator>valteralbino</dc:creator>
      <dc:date>2014-02-27T11:12:11Z</dc:date>
    </item>
  </channel>
</rss>

