Commit 85f8cbc6 authored by vertighel's avatar vertighel
Browse files

Trim comments

parent 32937c84
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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]           
+15 −1
Original line number Diff line number Diff line
@@ -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"