title: How to use H5Sselect_elements to read data
body: <p>I have a HDF file which contains a simple array of compound types.
  To read all elements in the array i do </p>
  
  <pre><code>hid_t hDataSet = H5Dopen(hSpecies,AGENT_DATASET_NAME, H5P_DEFAULT);
  herr_t status = H5Dread(hDataSet, agent_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, *ppAgentData);
  </code></pre>
  
  <p>Now i want to read only a selection of those elements. I place this before the call to H5Dread:</p>
  
  <pre><code>hsize_t coords[3][1];
  coords[0][0] = 1;
  coords[1][0] = 3;
  coords[2][0] = 6;
  hid_t hDataSpace = H5Dget_space(hDataSet);
  int iRes = H5Sselect_elements(hDataSpace, H5S_SELECT_SET, 3, (const hsize_t *)&amp;coords);
  </code></pre>
  
  <p>I expected that i would get the first, the third and the sixth element, but actually i get the same result as without the call to H5Sselect_elements. Do i misunderstand something about the use of H5Sselect_elements? The problem is, all examples i found use this function only in combination with H5Dwrite()...</p>