title: Recite data in netcdf / xarray file
body: <p>Currently I wonder how to recite data in a netcdf file based on a condition. The file is structured as follows. It's a 3D file (through quadrant) but none of the variables I'm using require the 3D condition.</p>
  <pre><code>Dimensions:           (date_time: 360, quadrant: 4, storm: 173)
  Coordinates:
      time              (storm, date_time) datetime64[ns] 2007-05-15T00:00:00.000039936 ... NaT
      lat               (storm, date_time) float32 7.8 8.105035 ... nan nan
      lon               (storm, date_time) float32 146.7 146.31505 ... nan nan
  Dimensions without coordinates: date_time, quadrant, storm
  Data variables:
      sid               (storm) object b'2007135N08147' ... b'2019329N09160'
      season            (storm) float32 2007.0 2007.0 2007.0 ... 2019.0 2019.0
      number            (storm) float64 21.0 31.0 41.0 42.0 ... 96.0 99.0 102.0
      basin             (storm, date_time) object b'WP' b'WP' b'WP' ... b'' b''
      wmo_wind          (storm, date_time) float32 nan nan nan nan ... nan nan nan
  </code></pre>
  <p>What I'm trying to do is to extend the data set by trying to recite based on a sid number. The sid number is an unique identifier. For example I would like to recite the data 10 times where the condition sid = '2007135N08147' would hold. With that I would like to not only extend the dataset along the dimension of the sid data variable, but I would also like that the other variables are similarly extended (so recited 10 times). This would then give me 9 extra storms, all corresponding to the same data of sid (so the lat and lon are also recited 10 times).</p>
  <p>Currently I've tired this with np.tile() and along a single xarray variable, but that doesn't take into account the entire netcdf file. Is it possible to do the operation I'm trying to do on a netcdf format or should I write a separate script to handle this?</p>
  <p>In any case if anyone can help, thank you very much in advance!</p>