astrodbtoolkit / astrodb_utils

https://astrodb-utils.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

make an AstroDBHeader class and methods #62

Open kelle opened 4 months ago

kelle commented 4 months ago

From @dr-rodriguez :

class AstroDBHeader(Header):
     def __init__(self, header=None):  
          # prepare empty header if none is provided
     def add_missing_keywords(self, format, keywords):  
          # add missing keywords
     # etc etc

what that allows you to do is essentially add extra methods to your original header so you can do things like

header = AstroDBHeader()
header.add_missing_keywords()
header.check_header()

and everything else defined in fits.py