Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
noche
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
noctis
noche
Commits
85f8cbc6
Commit
85f8cbc6
authored
1 month ago
by
vertighel
Browse files
Options
Downloads
Patches
Plain Diff
Trim comments
parent
32937c84
No related branches found
No related tags found
No related merge requests found
Pipeline
#27868
passed with warnings
1 month ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
noche/headers/header_base_v1.ini
+3
-3
3 additions, 3 deletions
noche/headers/header_base_v1.ini
noche/noche.py
+15
-1
15 additions, 1 deletion
noche/noche.py
with
18 additions
and
4 deletions
noche/headers/header_base_v1.ini
+
3
−
3
View file @
85f8cbc6
...
...
@@ -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]
...
...
This diff is collapsed.
Click to expand it.
noche/noche.py
+
15
−
1
View file @
85f8cbc6
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment