def getHDF5 (p, time=False):

  # Build the url and then create a hdf5 object
  if time:
    url = 'http://{}/ca/{}/{}/hdf5/{}/{},{}/{},{}/{},{}/{},{}/'.format(SITE_HOST, p.token, ','.join(p.channels), p.resolution, *p.args )
  else:
    url = 'http://{}/ca/{}/{}/hdf5/{}/{},{}/{},{}/{},{}/'.format(SITE_HOST, p.token, ','.join(p.channels), p.resolution, *p.args)

  # Get the image back
  f = urllib2.urlopen (url)
  tmpfile = tempfile.NamedTemporaryFile()
  tmpfile.write(f.read())
  tmpfile.seek(0)
  h5f = h5py.File(tmpfile.name, driver='core', backing_store=False)

  return h5f
Get data using npz. Returns a hdf5 file
dataset/ETHPy150Open neurodata/ndstore/test/postmethods.py/getHDF5