I have a piece of working python code that I am looking to make more efficient.
The code is trying to model vegetation change based on 4 rasters containing data on potential evapotranspiration, climate moisture index, precipitation, and summer precipitation.
I also have a base vegetation raster that will have its values updated based on a set of conditions depending on values of the 4 rasters above at each cell.
I have no idea how to do this without going through the rasters cell by cell because I have to know the cell values for all layers in order for the conditions to work on the cells of the vegetation layer.
What is a better way of doing this?
Code below:
<SPAN class="keyword token">import</SPAN> arcpy
<SPAN class="keyword token">import</SPAN> numpy
inRasPE <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Raster<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"C:/VegModel/CCSSRawData.gdb/pe100Year2"</SPAN><SPAN class="punctuation token">)</SPAN>
inRasCMI <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Raster<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"C:/VegModel/CCSSRawData.gdb/cmi100Year2"</SPAN><SPAN class="punctuation token">)</SPAN>
inRasPCP <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Raster<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"C:/VegModel/CCSSRawData.gdb/pcp100Year2"</SPAN><SPAN class="punctuation token">)</SPAN>
inRasSPP <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Raster<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"C:/VegModel/CCSSRawData.gdb/spp100Year2"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token">#inRasVeg = arcpy.Raster("C:/VegModel/CCSSRawData.gdb/vegnormrs100") #To be used the first time.</SPAN>
inRasVeg <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Raster<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"C:/VegModel/CCSSRawData.gdb/veg100Year1Revise3"</SPAN><SPAN class="punctuation token">)</SPAN>
lowerLeft <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Point<SPAN class="punctuation token">(</SPAN>inRasVeg<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>XMin<SPAN class="punctuation token">,</SPAN> inRasVeg<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>YMin<SPAN class="punctuation token">)</SPAN>
cellSize <SPAN class="operator token">=</SPAN> inRasVeg<SPAN class="punctuation token">.</SPAN>meanCellWidth
inArrayPE <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>RasterToNumPyArray<SPAN class="punctuation token">(</SPAN>inRasPE<SPAN class="punctuation token">)</SPAN>
inArrayCMI <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>RasterToNumPyArray<SPAN class="punctuation token">(</SPAN>inRasCMI<SPAN class="punctuation token">)</SPAN>
inArrayPCP <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>RasterToNumPyArray<SPAN class="punctuation token">(</SPAN>inRasPCP<SPAN class="punctuation token">)</SPAN>
inArraySPP <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>RasterToNumPyArray<SPAN class="punctuation token">(</SPAN>inRasSPP<SPAN class="punctuation token">)</SPAN>
inArrayVeg <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>RasterToNumPyArray<SPAN class="punctuation token">(</SPAN>inRasVeg<SPAN class="punctuation token">,</SPAN> nodata_to_value <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">)</SPAN>
rasHeight<SPAN class="punctuation token">,</SPAN> rasWidth <SPAN class="operator token">=</SPAN> inArrayVeg<SPAN class="punctuation token">.</SPAN>shape
<SPAN class="keyword token">for</SPAN> i <SPAN class="keyword token">in</SPAN> range<SPAN class="punctuation token">(</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> rasHeight<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">for</SPAN> j <SPAN class="keyword token">in</SPAN> range<SPAN class="punctuation token">(</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> rasWidth<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
value1 <SPAN class="operator token">=</SPAN> inArrayPE<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN>
value2 <SPAN class="operator token">=</SPAN> inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN>
value3 <SPAN class="operator token">=</SPAN> inArrayCMI<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN>
<SPAN class="keyword token">if</SPAN> value1 <SPAN class="operator token"><=</SPAN> <SPAN class="number token">760</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">if</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">11</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">21</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">12</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">22</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">13</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">23</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">14</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">24</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">15</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">25</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">16</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">26</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">21</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">41</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">22</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">42</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">23</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">43</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">24</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">44</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">25</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">40</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">26</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">26</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">80</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">24</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">31</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">41</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">32</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">42</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">33</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">43</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">34</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">44</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">35</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">220</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">36</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">36</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">250</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">34</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">41</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">51</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">42</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">52</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">43</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">53</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">44</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">54</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">51</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">400</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">56</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">53</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">440</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">52</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">54</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">320</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">53</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">56</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">440</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">57</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value1 <SPAN class="operator token">></SPAN> <SPAN class="number token">760</SPAN><SPAN class="punctuation token">:</SPAN>
value4 <SPAN class="operator token">=</SPAN> inArrayPCP<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN>
value5 <SPAN class="operator token">=</SPAN> inArraySPP<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN>
sixtyThree <SPAN class="operator token">=</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">37.298</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.027</SPAN> <SPAN class="operator token">*</SPAN> value4<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.004</SPAN> <SPAN class="operator token">*</SPAN> value1<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">70.895</SPAN> <SPAN class="operator token">*</SPAN> value5<SPAN class="punctuation token">)</SPAN>
sixtyFour <SPAN class="operator token">=</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">29.53</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.001</SPAN> <SPAN class="operator token">*</SPAN> value4<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.007</SPAN> <SPAN class="operator token">*</SPAN> value1<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">79.182</SPAN> <SPAN class="operator token">*</SPAN> value5<SPAN class="punctuation token">)</SPAN>
sixtyFive <SPAN class="operator token">=</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">73.987</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.002</SPAN> <SPAN class="operator token">*</SPAN> value4<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.04</SPAN> <SPAN class="operator token">*</SPAN> value1<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">114.753</SPAN> <SPAN class="operator token">*</SPAN> value5<SPAN class="punctuation token">)</SPAN>
sixtySix <SPAN class="operator token">=</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">67.219</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.031</SPAN> <SPAN class="operator token">*</SPAN> value4<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.017</SPAN> <SPAN class="operator token">*</SPAN> value1<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">121.6</SPAN> <SPAN class="operator token">*</SPAN> value5<SPAN class="punctuation token">)</SPAN>
sixtySeven <SPAN class="operator token">=</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">190.354</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.102</SPAN> <SPAN class="operator token">*</SPAN> value4<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.023</SPAN> <SPAN class="operator token">*</SPAN> value1<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">310.128</SPAN> <SPAN class="operator token">*</SPAN> value5<SPAN class="punctuation token">)</SPAN>
seventyFour <SPAN class="operator token">=</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">252.386</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.163</SPAN> <SPAN class="operator token">*</SPAN> value4<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">0.01</SPAN> <SPAN class="operator token">*</SPAN> value1<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">+</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="number token">399.599</SPAN> <SPAN class="operator token">*</SPAN> value5<SPAN class="punctuation token">)</SPAN>
isMax <SPAN class="operator token">=</SPAN> sixtyThree
<SPAN class="keyword token">if</SPAN> sixtyFour <SPAN class="operator token">></SPAN> isMax<SPAN class="punctuation token">:</SPAN>
isMax <SPAN class="operator token">=</SPAN> sixtyFour
<SPAN class="keyword token">if</SPAN> sixtyFive <SPAN class="operator token">></SPAN> isMax<SPAN class="punctuation token">:</SPAN>
isMax <SPAN class="operator token">=</SPAN> sixtyFive
<SPAN class="keyword token">if</SPAN> sixtySix <SPAN class="operator token">></SPAN> isMax<SPAN class="punctuation token">:</SPAN>
isMax <SPAN class="operator token">=</SPAN> sixtySix
<SPAN class="keyword token">if</SPAN> sixtySeven <SPAN class="operator token">></SPAN> isMax<SPAN class="punctuation token">:</SPAN>
isMax <SPAN class="operator token">=</SPAN> sixtySeven
<SPAN class="keyword token">if</SPAN> seventyFour <SPAN class="operator token">></SPAN> isMax<SPAN class="punctuation token">:</SPAN>
isMax <SPAN class="operator token">=</SPAN> seventyFour
<SPAN class="keyword token">if</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">52</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">53</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">54</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">63</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">64</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">65</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">66</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">67</SPAN> <SPAN class="operator token">or</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">74</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">if</SPAN> isMax <SPAN class="operator token">==</SPAN> sixtyThree<SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">63</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> isMax <SPAN class="operator token">==</SPAN> sixtyFour<SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">64</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN>j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> isMax <SPAN class="operator token">==</SPAN> sixtyFive<SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">65</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> isMax <SPAN class="operator token">==</SPAN> sixtySix<SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">66</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> isMax <SPAN class="operator token">==</SPAN> sixtySeven<SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">67</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> isMax <SPAN class="operator token">==</SPAN> seventyFour<SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">74</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">11</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">21</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">12</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">22</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">13</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">23</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">14</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">24</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">15</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">25</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">16</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">26</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">21</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">41</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">22</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">42</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">23</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">43</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">24</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">150</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">44</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">25</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">40</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">26</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">26</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">80</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">24</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">31</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">41</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">32</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">42</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">33</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">43</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">34</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">260</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">44</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">35</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">220</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">36</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">36</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">250</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">34</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">41</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">51</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">42</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">52</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">43</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">53</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">44</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">54</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">51</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">400</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">56</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
<SPAN class="keyword token">elif</SPAN> value2 <SPAN class="operator token">==</SPAN> <SPAN class="number token">56</SPAN> <SPAN class="operator token">and</SPAN> value3 <SPAN class="operator token"><</SPAN> <SPAN class="operator token">-</SPAN><SPAN class="number token">440</SPAN><SPAN class="punctuation token">:</SPAN>
value2 <SPAN class="operator token">=</SPAN> <SPAN class="number token">57</SPAN>
inArrayVeg<SPAN class="punctuation token">[</SPAN>i<SPAN class="punctuation token">,</SPAN> j<SPAN class="punctuation token">]</SPAN> <SPAN class="operator token">=</SPAN> value2
newRaster <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>NumPyArrayToRaster<SPAN class="punctuation token">(</SPAN>inArrayVeg<SPAN class="punctuation token">,</SPAN> lowerLeft<SPAN class="punctuation token">,</SPAN> cellSize<SPAN class="punctuation token">,</SPAN> value_to_nodata <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">)</SPAN>
newRaster<SPAN class="punctuation token">.</SPAN>save<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"C:/VegModel/Revise.gdb/veg100Year2Revise3"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>