<div dir="ltr"><div dir="ltr"><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear GrADS-experts,</div><div><br></div><div>I am trying to calculate the zonal gradient of U-wind component using the cdiff() function.</div><div>Below is part of the script that calculates this.</div><div><br></div><div><br></div><div>'define dx = cdiff(lon,x)*3.1416/180'</div><div>'define du = cdiff(u*cos(lat*3.1416/180),y)'</div><div>'define grad=(du/dx)*(6.37e6*cos(lat*3.1416/180))*1e-8'</div><div><br></div><div> I would like to ask if this is correct. I am still confused how to get the correct dx here.</div><div><br></div><div>I'll appreciate any help.</div><div><br></div><div>Sincerely,</div><div><br></div><div>--Lyndz</div></div></div></div></div></div></div></div></div></div></div></div>