astrodbtoolkit / astrodbtoolkit/astrodb_utils

make an AstroDBHeader class and methods

Open
#62 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
10
PR merge metrics
No merged PRs in 30d

Description

From @dr-rodriguez :
```python
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

```Python
header = AstroDBHeader()
header.add_missing_keywords()
header.check_header()
```
and everything else defined in `fits.py`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing Header implementation and related methods in fits.py. Define the requested AstroDBHeader subclass with optional-header initialization and the described add_missing_keywords behavior while retaining the existing Header API. Done means the example calls work and the inherited fits.py functionality remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.