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

`copy_section` argument order and name #84

Open kbarbary opened 6 years ago

kbarbary commented 6 years ago

copy_section(hdu, dest, range...) has an argument order reversed from the standard order, where the destination is the first argument. This would be easy to switch and deprecate the old version.

Perhaps the name should be copy_section! or just extend Base.copy!. This is slightly different than Base.copy! because dest::FITS and hdu::ImageHDU are not the same types of things.