<html><head></head><body><div class="ydp15d564fayahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div><div dir="ltr" data-setdir="false">Dear Zilore,</div><div dir="ltr" data-setdir="false">I hope attached file could help you.</div><div><br></div><div class="ydp15d564fasignature"><div dir="ltr" style="font-family:old times, serif;font-size:16px;"><div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><i><font size="2">-----------------------------------------------------------------------------</font></i></div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><i><font size="2">Sincerely,</font></i></div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><i><font size="2">Ehsan Taghizadeh</font></i></div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><br></div></div><br></div></div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_5436635089" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Saturday, February 19, 2022, 01:13:15 AM GMT+3:30, Zilore Mumba via ncl-talk <ncl-talk@mailman.ucar.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv1044055519"><div dir="ltr">Can someone help me with a simple script to calculate dew point temperature (td) at say 500hPa on a WRF file. Specifically I am trying to calculate Total total index which is given as TTI=
<b style="color:rgb(128,0,128);font-family:New;font-size:large;">T(850 mb) + Td(850 mb) - 2[T(500 mb)].</b><div><font color="#000000" face="arial, sans-serif"><b style="">To start with I have the script below which is supposed to give me td. Somehow I am not able to go beyond this. print(td) prints what looks like surface dew points at all grid points. Whatever number I put instead of 6 in my script, the temperatures printed seem to be the same.</b></font></div><div><b style=""><font color="#000000" style="" face="arial, sans-serif">Alternatively if someone has a script which calculates TTI, I will appreciate it if they can share.</font></b></div><div><font color="#800080" face="Times New Roman" size="4"><b><br></b></font><div>begin<br>;---Open WRF output file.<br> dir = "/home/zmumba/DA/OUTPUT/2021081900/noda/"<br> filename = "wrfout_d01_2021-08-19_00:00:00"<br> f = addfile(dir + filename + ".nc","r")<br> QVAPOR = f->QVAPOR(0,6,:,:)<br> P = f->P(0,6,:,:)<br> PB = f->PB(0,6,:,:)<br> p = P + PB<br> td = wrf_td( p , QVAPOR )<br> printVarSummary(td)<br> exit<br> print(td)<br>end<br></div></div></div><div id="yiv1044055519DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de;">
<tbody><tr>
<td style="width:55px;padding-top:13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" rel="noreferrer noopener"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width:46px;min-height:29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial, Helvetica, sans-serif;line-height:18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:#4453ea;" target="_blank" rel="noreferrer noopener">www.avast.com</a>
</td>
</tr>
</tbody></table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" target="_blank" rel="noreferrer noopener"></a></div>
</div>_______________________________________________<br>ncl-talk mailing list<br><a ymailto="mailto:ncl-talk@mailman.ucar.edu" href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" rel="noreferrer noopener">ncl-talk@mailman.ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="noreferrer noopener">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</div>
</div></body></html>