title: How can I extract shp-points values from a 3D array - (based on matching lat, lon and time)?
body: <p>I have the problem that I have multiple data arrays (or merged together --&gt; one big xarray dataset) and a shapefile with points. These points have inter alia columns with &quot;geometry (=lat &amp; lon)&quot; and &quot;Date&quot;. I would like to extract the values of the array/dataset at the lat, lon and time value- points the shapefile has.
  My goal is to have an array (or a dataset - even better) where the extracted values of the lat, lon and time of the shapefile are stored.</p>
  <p>Now the problem is: the shapefile is 2D and the arrays are 3D.</p>
  <ol>
  <li>I could make a 2D array or list out of my 3D array and then try to extract with matching dates and lon and lat? [this was unfortunately not working as I could not transform my array to a list]</li>
  <li>Or I try to change the shapefile to a 3D Raster and then clip the values from the existing arrays?</li>
  </ol>
  <p>I would be very happy for some thoughts and help! Thanks in advance!</p>