title: Applying 1D cosine taper to 3D array
body: <p>I have a time series dataset which I have windowed into n segments. My data now has dimensions (n, t, x, y). I wish to apply a cosine taper with dimension (t,) to each segment, but I obviously cannot multiply an array of dimension (t,) to an array of dimension (t, x, y).</p>
  <p>Can someone provide me with a way to do this?</p>