<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font style="font-size: 8pt;" size="1">Hello, I am writing to request your help in the realization of a script. I am new to this and I'm just learning the wonderful world of python and this has made me a little difficult.<br><br>Briefly I commented what I intend to do:<br><br>I detect a class of atmospheric phenomena known as Mesoscale Convective Systems (MCS). To accomplish this, I have a database of satellites by 2004, every half hour. These data were downloaded from the server: unidata2.ssec.wisc.edu and data format is: 200404271515.goes12ir (Area Format)<br><br>The first thing to do is detect a convective system in the satellite data, using the following characteristics:<br><br><b><font style="" color="#548DD4"><u>MCS Criteria</u></font></b><br><br><b>Minimum Size</b>: Continuous cold cloud shield (TIR &lt;219 K and Must Have an area&gt; 34000 km ²)<br><br><b>Duration</b>: Definition of Minimum Size Must Be A Period of Exceed or ≥ 3h<br><br><b>Initiation</b>: Time When the Minimum Size is met<br><b><br>Maximum Extention</b>: Time when the continuous cloud shield (TIR &lt;219 K) is at its maximum size<br><br><b>Termination:</b> When the Time Minimun Size is not satisfied<br><br>where: Temperature Infrarred is TIR<br><br></font><span id="result_box" lang="en"><span class="hps">To</span> <span class="hps">achieve this</span><span>, first I</span> <span class="hps">created a</span> <span class="hps">script</span> <span class="hps">in</span> <span class="hps">python</span> <span class="hps">to identify a</span> <span class="hps">MCS</span> <span class="hps">in</span> <span class="hps">my database</span></span> (script in attached)<br><font style="font-size: 8pt;" size="1"><br></font><span id="result_box" lang="en"><span class="hps">The</span> <span class="hps">script is</span> <span class="hps">run</span> <span class="hps">from a</span> <span class="hps">linux</span> <span class="hps">terminal</span> <span class="hps">($</span> <span class="hps">python</span> <span class="hps">TIR.py</span><span>),</span> <span class="hps">to</span> <span class="hps">run it</span> <span class="hps">I get</span> <span class="hps">the following error</span></span>:<br><br><font style="font-size:8pt" size="1"><br id="ecxFontBreak"></font><b>File "/home/mcidasv/JYTHON/TIR.py", line 22<br>&nbsp;&nbsp;&nbsp; count = count + 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>SyntaxError: invalid syntax</b><br><br> If anyone can help me with this script or any idea you suggest to improve it, I would greatly appreciate.<br><br><br><br><font style="font-size:8pt" size="1"><font style="" face="Comic Sans MS"><font style="font-size:12pt"><font style="" color="#5f497a"><strong></strong></font></font></font></font><font style="" color="#5f497a"><font style="font-size:8pt" size="1"><b><strong><font style="" face="Comic Sans MS"></font></strong></b></font>Boris Vladimir Comi Gonzalez<br>Universidad Nacional Autónoma de México<br>Grupo de Tormentas Convecivas<br></font>                                               </div></body>
</html>