multicolorfits.crop_cube#
- multicolorfits.crop_cube(datain, hdrin, xbounds, ybounds, zbounds=[0, None], newref=None, savenew=False, overwrite=False)[source]#
Function to crop a 3D fits cube to the specified pixel bounds.
zbounds (optional) are channel number boundaries [zmin,zmax], 0-indexed
Other arguments the same as for crop_image