From aaaee28fd8139acfc5467f4baaa252f139ccbb97 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Thu, 8 Jul 2021 19:30:20 +0200
Subject: [PATCH] TMSS-745: added scheduling constraints

---
 ...g-scheduling-unit-observation-strategy.json | 18 ++++++++++++++++--
 ...t-scheduling-unit-observation-strategy.json | 17 ++++++++++++++++-
 2 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/pulsar_timing-scheduling-unit-observation-strategy.json b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/pulsar_timing-scheduling-unit-observation-strategy.json
index 2dab379d833..c2f0d0dc339 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/pulsar_timing-scheduling-unit-observation-strategy.json
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/pulsar_timing-scheduling-unit-observation-strategy.json
@@ -1111,6 +1111,20 @@
     }
   ],
   "task_scheduling_relations":[
-
-  ]
+  ],
+  "scheduling_constraints_template": "constraints",
+  "scheduling_constraints_doc": {
+    "sky": {
+      "min_distance": {
+        "sun": 0,
+        "moon": 0,
+        "jupiter": 0
+      },
+      "transit_offset": {
+        "to": 21600,
+        "from": -21600
+      },
+      "min_target_elevation": 0.261666666667
+    }
+  }
 }
diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/short-beamformed-observation-pipeline-ingest-scheduling-unit-observation-strategy.json b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/short-beamformed-observation-pipeline-ingest-scheduling-unit-observation-strategy.json
index 033fdf5de19..4f2d980fa5f 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/short-beamformed-observation-pipeline-ingest-scheduling-unit-observation-strategy.json
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/short-beamformed-observation-pipeline-ingest-scheduling-unit-observation-strategy.json
@@ -511,5 +511,20 @@
       ],
       "name": "Tile Beam"
     }
-  ]
+  ],
+  "scheduling_constraints_template": "constraints",
+  "scheduling_constraints_doc": {
+    "sky": {
+      "min_distance": {
+        "sun": 0,
+        "moon": 0,
+        "jupiter": 0
+      },
+      "transit_offset": {
+        "to": 21600,
+        "from": -21600
+      },
+      "min_target_elevation": 0.261666666667
+    }
+  }
 }
-- 
GitLab