...
This has the same effect as the previous example. The filename /glast/admin/mon_all.tst will automatically resolve to root://glast-rdr//glast/admin/mon_all.tst
Read a fits file
xrdprel -g fverify /glast/admin/mon_all.tst
/mc/ServiceChallenge/obssim_v9r5/ft1/obssim_v9r5-000000_events_0000.fits
The -g option and /glast/... file names must be used with fitsio tools.
The main issue is loading the proper preload library. A 32 bit binary needs the 32 bit preload lib whereas a 64 bit
compilied executable needs a 64 bit version. Right now by default always the 32bit preload library is used, which will cause a failure if running on a 64 bit OS and using 64 bit applications.
The cfitsio package works with the xrootd preload library. How ever, cfitsio decides how to access files depending on there prefix. Files starting with root:// will be open with the rootd (not xrootd) protocol which is not supported by the GLAST xrootd. Therefore, the file names as obtained by the data catalog, have to be stripped of the rootd://glast-rdr/ prefix and the -g option must be used for xrdprel:
xrdprel -g fverify /glast/mc/ServiceChallenge/obssim_v9r5/ft1/obssim_v9r5-000000_events_0000.fits