<div dir="ltr"><div>Mano,</div><div>I would think it would suffice to create a new pressure field, ln p, as follows:</div><div><br></div><div>'define lnp = log([pres])'  [whatever your 3D pressure field is named]</div><div><br></div><div>Then compute your vertical derivative using manual centered differences (I'm not sure if the cdiff() function does this properly...it might work, but you have to be careful with the top and bottom bounds):</div><div><br></div><div>(Make sure to adjust your dimension environment accordingly)</div><div><br></div><div>'d [Vg](z+1) - [Vg](z-1) / (lnp(z+1) - lnp(z-1))'  [whatever your geostrophic wind field is named]</div><div><br></div><div>If using cdiff, it should be about as simple as 'd cdiff([Vg],lnp)'</div><div><br></div><div>Jeff Duda<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 30, 2020 at 2:38 AM lpasmanoranjan <<a href="mailto:lpasmanoranjan@gmail.com">lpasmanoranjan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Dear Users,<br></div><div><div dir="ltr"><div class="gmail_quote"><div class="gmail_attr">I would like to calculate 

 thermal wind from 

geostrophic wind in grads. </div><div class="gmail_attr">Following is the formula:</div><div class="gmail_attr">Thermal Wind, Vt= 

∂Vg / ∂(ln p)</div><div class="gmail_attr">where Vg is the geostrophic wind, p is the pressure</div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div>I can't able to calculate the term  ∂ / ∂(ln p).</div><div><br></div><div>Any suggestions or help?</div><div>Thank you.</div></div></div></div></div></div></div></div></div>
</div>-- <br><div dir="ltr"><div dir="ltr"><div>Kind Regards,<br></div>Mano<br></div></div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Division<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div>