jluastro / nirc2

MIT License
3 stars 0 forks source link

Remove IRAF Drizzle Dependency #16

Open jluastro opened 4 years ago

jluastro commented 4 years ago

As part of removing IRAF from the pipeline, we need to replace IRAF Drizzle. I have done an investigation and there is a stand-alone python drizzle package that implements the same drizzle functionality as AstroDrizzle; but without the hard-coded HST header keywords, etc.

I figured out how to use the package and tried drizzling one of our NIRC2 images both with IRAF drizzle and python drizzle. They are not identical; but pretty darn close. However, the python drizzle introduces some edge artifacts that I haven't figured out how to get rid of yet. See the image below.

image

I am checking in a small test code under reduce/tests/test_drizzle.py to everyone can see how it works. If you want to run it, I need to check in several FITS files... but they inflate our repo.