<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello NCL Users</p>
<p><br>
</p>
<p>I want to calculate the poleward energy transports along the latitude circles which is given by,</p>
<p><br>
</p>
<p><a name="Sec11"></p>
<p><i><span style="color: rgb(0, 0, 0);"></span>PAET</i>(<img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.phi.gif">) =
<img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.int02pi.gif">[
<i>C<sub>p</sub></i><font color="red"><span style="color: rgb(0, 0, 0);">VT</span></font><span style="color: rgb(0, 0, 0);">(</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.lambda.gif">,
<img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.phi.gif">) + <i>
g</i><font color="red"><span style="color: rgb(0, 0, 0);">VZ</span></font><span style="color: rgb(0, 0, 0);">(</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.lambda.gif"><span style="color: rgb(0, 0, 0);">,
</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.phi.gif"><span style="color: rgb(0, 0, 0);">) +
</span><i><span style="color: rgb(0, 0, 0);">L</span></i><font color="red"><span style="color: rgb(0, 0, 0);">VQ</span></font><span style="color: rgb(0, 0, 0);">(</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.lambda.gif"><span style="color: rgb(0, 0, 0);">,
</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.phi.gif"><span style="color: rgb(0, 0, 0);">) +
</span><font color="red"><span style="color: rgb(0, 0, 0);">VK</span></font><span style="color: rgb(0, 0, 0);">(</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.lambda.gif"><span style="color: rgb(0, 0, 0);">,
</span><img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.phi.gif"><span style="color: rgb(0, 0, 0);">)</span>]
<i>a</i> cos(<img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.phi.gif">) d<img src="http://www.cgd.ucar.edu/cas/catalog/newbudgets/newbudgets.lambda.gif">
<br>
</p>
<p></a><a href="http://www.cgd.ucar.edu/cas/catalog/newbudgets/" class="OWAAutoLink" id="LPlnk976476" previewremoved="true">http://www.cgd.ucar.edu/cas/catalog/newbudgets/</a></p>
<div id="LPBorder_GT_15045877138990.4027121073145895" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15045877138920.9649448193477005" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15045877138940.6346520655902038" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15045877138940.5495064427456213"></div>
<div id="LPTitle_15045877138940.4038262243975589" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15045877138960.6416793234186516" style="text-decoration: none;" href="http://www.cgd.ucar.edu/cas/catalog/newbudgets/" target="_blank">Vertically Integrated Mass, Moisture, Heat, and Energy ...</a></div>
<div id="LPMetadata_15045877138960.3301664613330533" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.cgd.ucar.edu</div>
<div id="LPDescription_15045877138980.7495977679656846" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Vertically Integrated Mass, Moisture, Heat, and Energy Budget Products Derived from the NCEP/NCAR Reanalysis March 2003 Climate Analysis Section, CGD, NCAR</div>
</td>
</tr>
</tbody>
</table>
</div>
I have the mass corrected values for VT,VZ,VQ,VK (time*lat*lon*) on gaussian lat lon grid.
<p></p>
<p></p>
<p><br>
</p>
<p>I want to retain the time dimension.</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
<div>l = 2.5104*10^6<br>
a = 6.37122*10^6<br>
cp = 1004.64<br>
g = 9.81<br>
<br>
 pi = 3.14159265<br>
 re = 6.371*10^6            ; radius of earth<br>
 coef = re/1.e15       ; in PW<br>
<br>
<br>
ntime = dimsizes(vk(:,0,0)) ; 444<br>
nlat = dimsizes(vk(0,:,0)) ; 256<br>
nlon = dimsizes(vk(0,0,:)) ; 512<br>
dlon = 2.*pi/nlon   ; dlon in radians<br>
lat = vt&lat<br>
time = vt&time<br>
<br>
lat&lat = lat<br>
<br>
gw =  latGauWgt(nlat, "lat", "gaussian weights", "")<br>
<br>
<br>
energy = cp*vt+g*vz+l*vq+vk<br>
copy_VarCoords(vt,energy)<br>
printVarSummary(netflux)<br>
<br>
</div>
<p></p>
<p>I have tried the example for ocean given in <a href="http://www.mit.edu/course/13/13.715/ncarg-5.5.1/lib/ncarg/nclscripts/csm/ccm_func.ncl" class="OWAAutoLink" id="LPlnk18119" previewremoved="true">
http://www.mit.edu/course/13/13.715/ncarg-5.5.1/lib/ncarg/nclscripts/csm/ccm_func.ncl</a>.</p>
<p><br>
</p>
<p>But I am not getting correct values with that. Can anyone help on this!<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Thanks</p>
<p>Sourav<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>