<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello,&nbsp;
<div class="">My name is Sai and I am trying to compute the Kinetic energy of the upper-level divergent winds in a tropical cyclone. However, I am unsure if I am doing the integration correctly. Can one of you please correct me if I am wrong and tell me how
 to go about this?&nbsp;</div>
<div class=""><br class="">
</div>
<div class="">As you know, the formula for Kinetic energy is :&nbsp;</div>
<div class="">
<div class="page" title="Page 4"><img apple-inline="yes" id="E880CA5F-C7BE-4D74-BAE8-498628083937" src="cid:4A2F25CE-A70F-4E04-94B8-90D9C61AB884@itap.purdue.edu" class=""></div>
</div>
<div class="page" title="Page 4"><br class="">
</div>
<div class="page" title="Page 4">My domain is a 4 degree x 4 degree box and here is my grads script. I am particularly not confident about the integrations. Can one of you please give it a look at tell me?&nbsp;</div>
<div class="page" title="Page 4">Thank you - Sai</div>
<div class="page" title="Page 4"><br class="">
</div>
<div class="page" title="Page 4">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">reinit</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">open</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">basic</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">_std</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures" class="">ctl</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">set</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">grid</span><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp;
</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">off</span><span style="font-variant-ligatures: no-common-ligatures" class=""> &nbsp; &nbsp;
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">5</span><span style="font-variant-ligatures: no-common-ligatures" class=""> &nbsp; &nbsp;
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span><span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">set</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">xlopts</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">12</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">2</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">set</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">ylopts</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">15</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">25</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">set</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">clopts</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">5</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">15</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">set</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">font</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">5</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">set</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">display</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">color</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">white</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">'clear'</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">set</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">lat</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">-2</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">2</span><span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">set</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">lon</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">-2</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">2</span><span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255); min-height: 22px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">time</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">=</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(205, 121, 35); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">while</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">time</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&lt;</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">61</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">set</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">t</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> &quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">time</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">set</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">t</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">24</span><span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">set</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">lev</span><span style="font-variant-ligatures: no-common-ligatures" class="">
</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">300</span><span style="font-variant-ligatures: no-common-ligatures" class="">&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">den</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
 = (</span><span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">lev</span><span style="font-variant-ligatures: no-common-ligatures" class="">*100)/(287*(1&#43;0.608*</span><span style="font-variant-ligatures: no-common-ligatures; color: #0000b3; background-color: #e6e600" class="">qq</span><span style="font-variant-ligatures: no-common-ligatures" class="">)*tt)&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures" class="">speed</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> =
</span><span style="font-variant-ligatures: no-common-ligatures" class="">mag</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures" class="">uu</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">,</span><span style="font-variant-ligatures: no-common-ligatures" class="">vv</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255); min-height: 22px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">*Note: The area is 4degrees by 4degrees. 111.325 * 4 * 1000 is the dx and dy</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255); min-height: 22px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">KElat</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
 = </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">gint</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">5</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span><span style="font-variant-ligatures: no-common-ligatures" class="">*den*(speed*speed)*(445300),lat=-2,lat=2)&quot;&nbsp;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&quot;</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">KE</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&nbsp;
 &nbsp; = </span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">gint</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #33bbc8" class="">KElat</span><span style="font-variant-ligatures: no-common-ligatures" class="">*(445300),lon=-2,lon=2)&quot;</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255); min-height: 22px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255); min-height: 22px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(51, 187, 200); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">time</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">=</span><span style="font-variant-ligatures: no-common-ligatures" class="">time</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">&#43;1</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(205, 121, 35); background-color: rgb(255, 255, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">endwhile</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; background-color: rgb(255, 255, 255); min-height: 22px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
</div>
</body>
</html>