Feature #2132
functions to load event lists and irfs from file handle (instead of by filename)
Status: | New | Start date: | 06/23/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Duration: |
Description
Hi,
I load all my fits files via python calls:
run = GCTAObservation() run.load( fname ) run.id( 'blah#####' ) rsp = GCTAResponseIrf() rsp.load_aeff( fname ) rsp.load_psf( fname ) rsp.load_edisp( fname ) rsp.apply_edisp( True ) rsp.load_background( fname ) run.response( rsp )
But I like to keep my fits files stored in a tarball, both to keep multiple run-parts together (when I’ve broken a single run into chunks), and also to compress the data (5MB→500KB per run) for easier storage and file-transferring. However, the only way right now to load these fits files is to first extract the tarball to a temporary directory, then load the fits files from those temporary filenames.
A set of load( FILE * handle ) functions for the GCTA event lists and irfs may accomplish this, though may also require modifying the existing ::load() functions.
Recurrence
No recurrence.
History
#1 Updated by Knödlseder Jürgen over 7 years ago
This will not work as FITS files do not use file handles. I’m not sure how you want to circumvent unpacking the tarball. Can FILE directly read from tarballs?