check_framedata#

astropop.framedata.check_framedata(obj, copy=False, **kwargs)#

Read an object to a FrameData container.

Parameters:
obj: any compatible, see notes

Object that will be readed to the FrameData.

copy: bool (optional)

If the object is already a FrameData, return a copy instead of the original one. Default: False

Returns:
frame: FrameData

The readed FrameData object.

Notes

  • If obj is a string or Path, it will be interpreted as a file. File types will be checked. Just FITS format supported now.

  • If obj is HDUList, HDUList or CCDData, they will be properly translated to FrameData.

  • If numbers or QFloat, Quantity, they will be translated to a FrameData without metadata.