diff --git a/noche/headers/header_base_v1.ini b/noche/headers/header_base_v1.ini index 57d62c1bb686c6db21e4e2ee3f2bae9e74ed1a6b..f0d2d2aac74a812bdde6f6780068a9930f6c7d25 100644 --- a/noche/headers/header_base_v1.ini +++ b/noche/headers/header_base_v1.ini @@ -12,8 +12,8 @@ OBSERVER = | Observer name [Object] OBJECT = | Name of observed object -RA = | [hh:mm:ss.ss] Right Ascension in sexagesimal format -DEC = | [+dd:mm:ss.ss] Declination in sexagesimal format +RA = | [hh:mm:ss.ss] Right Ascension, sexagesimal +DEC = | [+dd:mm:ss.ss] Declination, sexagesimal RA_DEG = | [deg] Right Ascension in decimal degrees DEC_DEG = | [deg] Declination in decimal degrees ALT = | [deg] Altitude of object above horizon @@ -26,7 +26,7 @@ AIRMASS = | Approximate air mass [Time] DATE = | [YYYY-MM-DD] File creation date -DATE-OBS = | [YYYY-MM-DDTHH:MM:SS] UTC date and time of observation +DATE-OBS = | [YYYY-MM-DDTHH:MM:SS] UTC observation date MJD-OBS = | [d] Modified Julian Date of observation [Telescope] diff --git a/noche/noche.py b/noche/noche.py index 4c31bb7c47a81f57a1afe548f1878892161a0e85..6d67c3cb8a44a9982402a7c07656e29133a0d8dd 100644 --- a/noche/noche.py +++ b/noche/noche.py @@ -98,8 +98,9 @@ class Noche: try: val, comment = value.split("|") + comment = comment.strip() except ValueError: - # HISTORY and COMMENT have no value + # HISTORY and COMMENT have no comment val, comment = value, None val = self._parse(val) @@ -109,6 +110,19 @@ class Noche: def load_noctis_observatory(self, name='oarpaf', flavor=None): + """ + Load one of the NOCTIS observatory parameters such as + location and detector specifics, + and update relevant FITS keywords. + + Parameters + ---------- + name : str + One of the supported observatories. + flavor : str, optional + Section name of the configuration file. If not specified, takes the first one. + """ + data_dir = Path(__file__).parent / self._obs_dir ini_path = data_dir / f"{name}.ini"