def wrap_lons(lons, base, period):
lons = lons.astype(np.float64)<EOL>return ((lons - base + period * <NUM_LIT:2>) % period) + base<EOL>
Wrap longitude values into the range between base and base+period.