@classmethod
def check_rake(cls, rake):
    """
        Check if ``rake`` is in range ``(-180, 180]``
        and raise ``ValueError`` otherwise.
        """
    if not (rake == 'undefined' or -180 < rake <= 180):
        raise ValueError('rake %g is out of range (-180, 180]' % rake)
