Load pixel data in memory from data retrieved from archive
It is currently not possible to process data retrieved from the archive. Or well, it is possible, but kinda cumbersome.
It is possible to fully instantiate an object from a FITS file, that is, load the meta data and the pixels from file. It is also possible to load the meta data from the database. But there is no separate functionality to load the pixels from file.
Related, it should not be necessary to load all the pixels all the time, even when instantiating objects from FITS file. The pixels should only be loaded when they are needed.
So the logic for loading the pixel data should be decoupled from the logic for loading the metadata (either from file or from the database). E.g. in a load_data()
function or so (it would apply also to tables and other non-image data). And then call this function just before make()
or as the first part of make()
.