<?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 change mask using a loop in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/change-mask-using-a-loop/m-p/748008#M57836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with raster data on a worldwide level with a resolution of 30 arc seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to export the data into a table format to do&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Statistical analysis. As the resolution is very good, you can not run the "Sample" (Spatial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Analyst) command for the entire dataset at once. Therefore, I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;divided the world into 40 zones and created masks for each zone (with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Set Null command). I was trying to write a code in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python, using a loop where each time the mask will become&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a different zone, i.e. env.mask = zone 1, then zone 2 and so on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I suppose that within a python session one&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cannot keep on changing the mask using a loop. Could&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you kindly suggest a way to run the command Sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each of the 40 zones without having to write 40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;different codes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 11:29:04 GMT</pubDate>
    <dc:creator>Joseph_FlavianGomes</dc:creator>
    <dc:date>2012-05-31T11:29:04Z</dc:date>
    <item>
      <title>change mask using a loop</title>
      <link>https://community.esri.com/t5/python-questions/change-mask-using-a-loop/m-p/748008#M57836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with raster data on a worldwide level with a resolution of 30 arc seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to export the data into a table format to do&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Statistical analysis. As the resolution is very good, you can not run the "Sample" (Spatial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Analyst) command for the entire dataset at once. Therefore, I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;divided the world into 40 zones and created masks for each zone (with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Set Null command). I was trying to write a code in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python, using a loop where each time the mask will become&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a different zone, i.e. env.mask = zone 1, then zone 2 and so on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I suppose that within a python session one&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cannot keep on changing the mask using a loop. Could&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you kindly suggest a way to run the command Sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each of the 40 zones without having to write 40&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;different codes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 11:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-mask-using-a-loop/m-p/748008#M57836</guid>
      <dc:creator>Joseph_FlavianGomes</dc:creator>
      <dc:date>2012-05-31T11:29:04Z</dc:date>
    </item>
  </channel>
</rss>

