EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
16 stars 4 forks source link

An option for faster writing of FITS images and faster addition of headers to FITS catalogs #431

Closed agioffe closed 3 months ago

agioffe commented 3 months ago

The main changes are related to the new low-level (mex) functions of Chen Tishler written for fast writing of FITS files. I have structured the current options of writing FITS images and catalogs and implemented the relevant flags WriteMethod and FastHeader throughout the LAST pipeline from pipeline.DemonLAST down to io.fits. routines. However some of the preparatory operations were copied from io.fits.writeSimpleFITS up, to FITS.writeSimpleFITS, I have kept the full functionality of io.fits.writeSimpleFITS for the case we would need to use it without a higher-level caller.

P.S. As I am not yet cunning enough and do not create a new git branch for every feature (as I should), some other minor changes in various functions related to ULTRASAT planning and HEALPIX manipulation are inevitably introduced along with what is described above.

EranOfek commented 3 months ago

Pull request was discussed with Sasha