JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

Added method to get default header for `AbstractArray` #140

Closed siddharthlal25 closed 3 years ago

siddharthlal25 commented 3 years ago

Added this method to get default header of an AbstractArray, it is being used in CCDReduction.jl to create CCDData directly from an AbstractArray. E. g.

CCDData(data::AbstractArray) = CCDData(data, get_default_header(data))
kbarbary commented 3 years ago

get_... gives me the impression that the thing you're getting is already an attribute or property of the argument, but in this case, you're creating a header based on the image. I suggest just default_header(data).