import numpy as np
store = np.load('mean_ca_precip.npz')
years = store['years']
precip = store['precip']
precip.
np.
def clip(arr, low, high):
new_arr = arr.copy()
new_arr[arr < low] = low
new_arr[arr > high] = high
return new_arr
array = np.random.uniform(-10, 10, (2, 4))
array
clip(array, 0, 1)