I am interested in using pybdsf for source detection within a larger framework for image processing. I would like to run image generation/manipulation, then run source detection. Currently, pybdsf requires specifying an image file as input. This requires me to write a file after image generation and then read it back in for source detection, which is slower and less elegant.
From what I see, we could pass a FITS hdu as input. This could be implemented at https://github.com/lofar-astron/PyBDSF/blob/master/bdsf/readimage.py#L68 or at https://github.com/lofar-astron/PyBDSF/blob/master/bdsf/functions.py (in the read_image_from_file function).
Is there interest in a pull request to update the readimage module to support this use case?
I am interested in using pybdsf for source detection within a larger framework for image processing. I would like to run image generation/manipulation, then run source detection. Currently, pybdsf requires specifying an image file as input. This requires me to write a file after image generation and then read it back in for source detection, which is slower and less elegant.
From what I see, we could pass a FITS hdu as input. This could be implemented at https://github.com/lofar-astron/PyBDSF/blob/master/bdsf/readimage.py#L68 or at https://github.com/lofar-astron/PyBDSF/blob/master/bdsf/functions.py (in the
read_image_from_filefunction).Is there interest in a pull request to update the
readimagemodule to support this use case?