<div dir="ltr"><div><div><div><div><div>Hi all, <br><br></div>Last couple of days I am doing some pressure gradient calculations so I wanted to double check my methodology for calculating the pressure gradients in GrADS. <br>

<br></div>This is how I am doing it: <br><br>&#39;define dx = 6.371e3 * cos(lat * 3.14159/180) * cdiff(lon * 3.14159/180, x)&#39;<br>&#39;define dy = 6.371e3 * cdiff(lat * 3.14159/180, y)&#39; <br><br>&#39;define pg = mag(cdiff(slp,x)/dx, cdiff(slp, y)/dy)&#39;<br>

<br></div>Basically, I am defining dx and dy using cdiff function. Then, I find the magnitude of the pressure gradient using mag of cdiff of my mean sea level pressure over the above-mentioned dx and dy. <br><br></div>My slp in NetCDF data is in Pascals and radius of the Earth is in km. so my pressure gradient units are Pa/km. <br>

<br><br></div><div>If anyone has experience with the pressure gradient calculations in GrADS, please could you confirm if this methodology is good? <br><br>Cheers,<br>Djordje<br></div></div>