moemyself3 / lightcurator

lightcurator: for creating and curating a lightcurve database (in heavy development)
MIT License
2 stars 0 forks source link

Header missing END card. #19

Open moemyself3 opened 5 years ago

moemyself3 commented 5 years ago

This is a common issue I come across when running lightcurator() and forget why it happens. This time I'm opening an Issue.

To reproduce error: Include non fits file in directory that is to be checked by lightcurator. For example, in my case, .DS_Store was causing this issue. Run lightcurator.

Question: Should lightcurator check for non fits files?

moemyself3 commented 5 years ago

Potential Solution (with added bonus) related to Issue #18 Use ccdproc.ImageFileCollection.

IFC will make a list of only fits files in the directory.

The bonus is that it will also include the header information. So extracting keyword 'DATE-OBS' and making a table of files is done in one step.