I was reading here [*] that you can open non-root binaries with root.
More specifically, I’d like to access (python) numpy binaries on a storage element, that is from dCache.
Ideally, I’d like to have something like this:
array = numpy.load(f_path, 'r')
where f_path is a dCache address, for example
f_path = 'root://t3dcachedb03.psi.ch/pnfs/psi.ch/cms/trivcat/store/user/vstampf/test.npy'.
From the link above I’ve tried to do this
array = ROOT.TFile.Open('dcap://t3se01.psi.ch:22125//pnfs/psi.ch/cms/trivcat/store/user/vstampf/test.npy?filetype=raw')
which worked fine. But now I’m wondering how to proceed?
How can I get a numpy array out of this “plain” TFile?
Maybe there’s also easier ways to do this?
Like omitting ROOT and directly using gfal-tools or xrootd in python?
I’ve also tried but couldn’t manage.
Any help is very much appreciated!