def getNPZ (p, time=False):
  
  # Build the url to get the npz object 
  if time:
    url = 'http://{}/ca/{}/{}/npz/{}/{},{}/{},{}/{},{}/{},{}/'.format ( SITE_HOST, p.token, ','.join(p.channels), p.resolution, *p.args )
  elif p.channels is not None:
    url = 'http://{}/ca/{}/{}/npz/{}/{},{}/{},{}/{},{}/'.format ( SITE_HOST, p.token, ','.join(p.channels), p.resolution, *p.args )
  elif p.channels is None:
    url = 'http://{}/ca/{}/npz/{}/{},{}/{},{}/{},{}/'.format ( SITE_HOST, p.token, p.resolution, *p.args )
  # Get the image back
  f = urllib2.urlopen (url)
  rawdata = zlib.decompress (f.read())
  fileobj = cStringIO.StringIO (rawdata)
  return np.load (fileobj)
Get data using npz. Returns a numpy array
dataset/ETHPy150Open neurodata/ndstore/test/postmethods.py/getNPZ