Skip to content

input an image as FITS hdu object #268

@caseyjlaw

Description

@caseyjlaw

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions