import warnings


def has_alt_units(crs):
    """
    Check if the CRS has vertical units.

    Arguments
    ---------
    crs : pyproj.CRS
        CRS to check

    Returns
    -------
    has_alt_units : bool
        True if the CRS has vunits or other altitude units.
    """

    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        return crs.is_vertical or "vunits" in crs.to_dict() or any(axis.direction == "up" for axis in crs.axis_info)