Skip to content

Commit

Permalink
Update constraint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MBSck committed Feb 23, 2024
1 parent b2ee720 commit f5e7cbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions p2obp/backend/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ def fill_header(target: Dict,
header : dict
"""
header = {}
header_user = load_template(TEMPLATE_FILE,
"header", sub_header="user")
header_target = load_template(TEMPLATE_FILE,
"header", sub_header="target")
header_constraints = load_template(TEMPLATE_FILE,
"header", sub_header="constraints")
header_observation = load_template(TEMPLATE_FILE,
"header", sub_header="observation")
header_user = load_template(
TEMPLATE_FILE, "header", sub_header="user")
header_target = load_template(
TEMPLATE_FILE, "header", sub_header="target")
header_constraints = load_template(
TEMPLATE_FILE, "header", sub_header="constraints")
header_observation = load_template(
TEMPLATE_FILE, "header", sub_header="observation")
ob_name = set_ob_name(target, observation_type, sci_name, tag)
ra_hms, dec_dms = format_ra_and_dec(target)
prop_ra, prop_dec = format_proper_motions(target)
Expand All @@ -242,6 +242,7 @@ def fill_header(target: Dict,
header_constraints["atm"] = TURBULENCE[OPTIONS["constraints.turbulence"]]
header_constraints["sky_transparency"] =\
SKY_TRANSPARENCY[OPTIONS["constraints.transparency"]]
header_constraints["watervapour"] = OPTIONS["constraints.pwv"]
if "ut" in array_configuration:
header_constraints["moon_angular_distance"] = 10

Expand Down
5 changes: 3 additions & 2 deletions p2obp/backend/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@
OPTIONS["dit.gra4mat.uts.high"] = 0.6

# NOTE: Set the weather constraints.
OPTIONS["constraints.turbulence"] = 70
OPTIONS["constraints.transparency"] = "thin"
OPTIONS["constraints.pwv"] = 10
OPTIONS["constraints.turbulence"] = 30
OPTIONS["constraints.transparency"] = "clear"

# NOTE: The settings for the `query`-script.
OPTIONS["catalogs"] = ["gaia", "tycho", "nomad",
Expand Down

0 comments on commit f5e7cbe

Please # to comment.