<?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 Python script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script/m-p/295375#M22829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to this forum and want your help to solve my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS 10 and my problem states as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a set of 46 monthly rainfall rasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. i want to extract the maximum and minimum pixel value from the the stack of 46 raster as MAX and MIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Then using the equation shown in attached figure [ATTACH=CONFIG]25148[/ATTACH] I have to calculate the cumulative probability of each x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. where x is each individual raster (total 46) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. I have already calculated the values of "a" also in the form of a raster and would like the program to pick these values from that respective raster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The summation equation should run from n=1 to n=Max repeatedly &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would highly appreciate of a python expert who writes a few lines script for me to solve this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Jun 2013 07:18:06 GMT</pubDate>
    <dc:creator>WaqasAhmad</dc:creator>
    <dc:date>2013-06-08T07:18:06Z</dc:date>
    <item>
      <title>Python script</title>
      <link>https://community.esri.com/t5/python-questions/python-script/m-p/295375#M22829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to this forum and want your help to solve my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS 10 and my problem states as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a set of 46 monthly rainfall rasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. i want to extract the maximum and minimum pixel value from the the stack of 46 raster as MAX and MIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Then using the equation shown in attached figure [ATTACH=CONFIG]25148[/ATTACH] I have to calculate the cumulative probability of each x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. where x is each individual raster (total 46) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. I have already calculated the values of "a" also in the form of a raster and would like the program to pick these values from that respective raster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. The summation equation should run from n=1 to n=Max repeatedly &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would highly appreciate of a python expert who writes a few lines script for me to solve this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jun 2013 07:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script/m-p/295375#M22829</guid>
      <dc:creator>WaqasAhmad</dc:creator>
      <dc:date>2013-06-08T07:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python script</title>
      <link>https://community.esri.com/t5/python-questions/python-script/m-p/295376#M22830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you provide some sample data please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 15:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script/m-p/295376#M22830</guid>
      <dc:creator>MatejTacer</dc:creator>
      <dc:date>2013-07-29T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python script</title>
      <link>https://community.esri.com/t5/python-questions/python-script/m-p/295377#M22831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I would highly appreciate of a python expert who writes a few lines script for me to solve this&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically you want someone to do your work for you? Have you even attempted to solve this problem on your own?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 16:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script/m-p/295377#M22831</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-07-29T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python script</title>
      <link>https://community.esri.com/t5/python-questions/python-script/m-p/295378#M22832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Dear Experts,&lt;BR /&gt;&lt;BR /&gt;I am new to this forum and want your help to solve my problem.&lt;BR /&gt;I am using ArcGIS 10 and my problem states as:&lt;BR /&gt;&lt;BR /&gt;I have a set of 46 monthly rainfall rasters&lt;BR /&gt;1. i want to extract the maximum and minimum pixel value from the the stack of 46 raster as MAX and MIN&lt;BR /&gt;2. Then using the equation shown in attached figure [ATTACH=CONFIG]25148[/ATTACH] I have to calculate the cumulative probability of each x&lt;BR /&gt;3. where x is each individual raster (total 46) &lt;BR /&gt;4. I have already calculated the values of "a" also in the form of a raster and would like the program to pick these values from that respective raster. &lt;BR /&gt;5. The summation equation should run from n=1 to n=Max repeatedly &lt;BR /&gt;&lt;BR /&gt;I would highly appreciate of a python expert who writes a few lines script for me to solve this&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should be pretty straight forward.&amp;nbsp; First, I'd use ListRasters to get a list of all your rasters (unless you hard coded them to a list)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then iterate through the rasters and using&amp;nbsp; arcpy.GetRasterProperties can get the max and min values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, plug the info into your equation on each iteration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you are working with rasters, and have the "a" values as a raster, I'm guessing you will need to use map algebra for this. &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/What_is_Map_Algebra/00p600000002000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/What_is_Map_Algebra/00p600000002000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 17:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script/m-p/295378#M22832</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-07-29T17:25:47Z</dc:date>
    </item>
  </channel>
</rss>

