(lat)
Give a warning if latitude is outside of [-90, 90]

    Longitute, on the other hand, can be in any range,
    since the it the transform is done in (x, y, z) space.

    Parameters
    ----------
    lat : numpy array
Give a warning if latitude is outside of [-90, 90]
Give a warning if latitude is outside of [ - 90 90 ]
def warn_lat_range(lat):
    '''
    Give a warning if latitude is outside of [-90, 90]

    Longitute, on the other hand, can be in any range,
    since the it the transform is done in (x, y, z) space.

    Parameters
    ----------
    lat : numpy array
    '''
    if (lat.max() > 90.0) or (lat.min() < -90.0):
        warnings.warn("Latitude is outside of [-90, 90]")
def warn_lat_range ( lat ) : if ( lat . max ( ) > 90.0 ) or ( lat . min ( ) < - 90.0 ) : warnings . warn ( "Latitude is outside of [-90, 90]" )