def inglobal(lat, lon, mode=None):
    """True if lat and lon within global coordinates.

    Default coords: lat in (-90, 90) and lon in (-180, 180).
    mode='pos': lat in (-90, 90) and lon in (0, 360).

    Examples
    --------
    >>> lat = -10
    >>> lon = -10
    >>> inbounds(lat, lon)
    True
    >>> inbounds(lat, lon, 'pos')
    False
    """
    if mode == 'pos':
        return -90 <= lat <= 90 and 0 <= lon <= 360
    else:
        return -90 <= lat <= 90 and -180 <= lon <= 180
