With $u, v$ denoting the components of wind velocity along zonal (x) and meridional (y) direction, atmospheric (relative) vorticity is usually defined by
$$\zeta_z = \frac{\partial v}{\partial x} -\frac{\partial u}{\partial y} $$
This is the z-Component of the 3D-Vorticity, defined by
$$\vec \zeta = \vec \nabla \times \vec v$$
However, atmospheric flow is not on a flat earth but on a sphere. E.g. a westerly wind follows the curved earth's surface and is better described in spherical coordinates. There, the vertical component of the 3D-vorticity is obtained by carrying out the curl operation in spherical coordinates (see here). This would give
$$\zeta_z = \frac{1}{r \sin \theta } \left[ \frac{\partial }{\partial \theta} (u \sin \theta ) + \frac{\partial v}{\partial \varphi}\right]$$
$u, v$ are the local horizontal velocities along the unity vectors $\vec e_\varphi$ (zonal) and $-\vec e_\theta$ (meridonal). Note that here latitude $\theta $ is measured from pole and not, as usual, from equator.
By expanding this expression, we get
$$\zeta_z = \frac{1}{r \sin \theta } \left[ \sin \theta \frac{\partial u }{\partial \theta} + u \frac{\partial \sin \theta }{\partial \theta} + \frac{\partial v}{\partial \varphi}\right]$$
On the local tangential plane we have $dx = r \sin \theta d \varphi $ and $dy = -r d \theta $
so the derivatves with respect to $\varphi$ and $\theta$ can be replaced by derivates with respect to x and y. This gives finally:
$$\zeta_z = \frac{\partial v}{\partial x} - \frac{\partial u}{\partial y} + \frac{u}{r} \cdot \frac{\cos \theta}{\sin\theta} $$
which is clearly not in accordance with the first equation: There is an extra term proportional to u. Why do we have this discrepancy and why is this not mentioned in standard textbooks?