<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear NCL-experts,</div><div><br></div><div>I am calculating vorticity tendency using the following equation (also attached in this email):</div><div>I want to add the coriolis parameter (1D) and the calculated relative vorticity (4D) before calculating its advection. These two parameters have dimensions.<br></div><div><br></div><div><div><img src="cid:ii_jrvtp09c1" alt="Screenshot from 2019-02-08 18-02-16.png" width="318" height="238"><br></div></div><div><br></div><div><br></div><div>Below is the part  that calculates the vorticity using spherical harmonics and the coriolis parameter.</div><div><div>;************************************************</div><div>; variable and file handling</div><div>;************************************************</div><div>  f   = addfile("../<a href="http://ncep_6h_jan.nc">ncep_6h_jan.nc</a>","r")       ; open netcdf file</div><div>  u   = f->U_GRD_2_ISBL(:,:,:,:)            ; pull u off file</div><div>  v   = f->V_GRD_2_ISBL(:,:,:,:)            ; pull v off file</div><div>  u = u(:,:,::-1,:)                         ;for speherical harmonics</div><div>  v = v(:,:,::-1,:)</div><div>;************************************************</div><div>; calculate vorticity on a Fixed Grid</div><div>;************************************************</div><div><b><font color="#ff0000">  vr = uv2vrF_Wrap(u,v)</font></b></div><div>  printVarSummary(vr)</div><div><br></div><div>  vr@long_name = "vorticity"</div><div>  vr@units     = "per second"</div><div>;************************************************</div><div>;calculate coriolis parameter</div><div>;************************************************</div><div>  lat = vr&lat</div><div><b><font color="#ff0000">  flat = coriolis_param(lat)</font></b></div></div><div><br></div><div>[1] I apologize, I think this is a basic question. How do add the coriolis parameter to the calculated vorticity? I already know how to get the advection, I only got stuck in this part. </div><div><br></div><div>I'll appreciate any help.</div><div><br></div><div><br></div><div>Sincerely,</div><div><br></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="comic sans ms, sans-serif"><b><u>Lyndz</u></b></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>