0

I open a BULB image with gphoto2 but I cannot find the way to separate the bands of the RAW image. The code crtwo2fits could convert the images into FITS format but cr2.py flags the file as closed:

from crtwo2fits import cr2 camera_file = cr2.CR2Image(self.camera.file_get(self.folder, self.file, gp.GP_FILE_TYPE_NORMAL) ) data_type = 9 # for int32 numpy array img = cr2.CR2Image.load (camera_file) band = cr2._getExifValue(img, data_type)

0 Answers0