class documentation
Put a dictionary into a format that we can insert into a FITS header file. Make all uppercase, replace dots with spaces, turn everything into a string and hope it's not over 80 characters long. Will need to use HIERARCH keys to have long parameter names, see https://fits.gsfc.nasa.gov/fits_standard.html
Also we should combine dictionaries so that we have a flat structure, one way to do this is to concatenate the keys for member dictionaries with the parent dictionary, i.e:
{"some.key" : {"child_key_1" : X1, "child_key_2": X2}}
- becomes
- {"some.key.child_key_1" : X1, "some.key.child_key_2": X2}
- and is turned into a FITS header like
- HIERARCH SOME KEY CHILD_KEY_1 = "X1" HIERARCH SOME KEY CHILD_KEY_2 = "X2"
If we need to we can split header entries into a "name" and "value" format, e.g., the above example would become:
PKEY1 = some.key.child_key_1 PVAL1 = "X1" PKEY2 = some.key.child_key_2 PVAL1 = "X2"
Static Method | find |
Undocumented |
Static Method | remove |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Instance Variable | adict |
Undocumented |
Instance Variable | fits |
Undocumented |
Instance Variable | key |
Undocumented |
Instance Variable | mode |
Undocumented |
Instance Variable | prefix |
Undocumented |
Method | _add |
Undocumented |
Method | _to |
Undocumented |
Method | _to |
Undocumented |
Instance Variable | _key |
Undocumented |
def __init__(self, adict:
dict
, mode: str
= 'standard', prefix: str
= None, pkey_count_start: int
= 0):
¶
Undocumented