From 245e5a5b2adf43fc222b8b1c27f2ffb11fdba002 Mon Sep 17 00:00:00 2001 From: Ashley Smith Date: Wed, 25 Oct 2023 18:31:47 +0200 Subject: [PATCH] Concluding initial Swarm FAST support (#102) * Basic support for the Swarm FAST L1B collections. * Allowing retrieval of Swarm AC/B conjunctions extracted from FAST MODx_SC products. --------- Co-authored-by: Martin Paces --- src/viresclient/_client_swarm.py | 3 +++ src/viresclient/_wps/templates/vires_get_conjunctions.xml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/viresclient/_client_swarm.py b/src/viresclient/_client_swarm.py index af6c165..9517b59 100644 --- a/src/viresclient/_client_swarm.py +++ b/src/viresclient/_client_swarm.py @@ -2123,6 +2123,7 @@ def get_conjunctions( spacecraft2="B", mission1="Swarm", mission2="Swarm", + grade="OPER", ): """Get times of the spacecraft conjunctions. @@ -2138,6 +2139,7 @@ def get_conjunctions( spacecraft2: identifier of the second spacecraft, default to 'B' mission1 (str): mission of the first spacecraft, defaults to 'Swarm' mission2 (str): mission of the first spacecraft, defaults to 'Swarm' + grade (str): products grade, possible values "OPER" or "FAST" Returns: ReturnedData: @@ -2182,6 +2184,7 @@ def get_conjunctions( spacecraft2=spacecraft2, mission1=mission1, mission2=mission2, + grade=(grade if grade and grade != "OPER" else None), threshold=threshold, ).encode("UTF-8") diff --git a/src/viresclient/_wps/templates/vires_get_conjunctions.xml b/src/viresclient/_wps/templates/vires_get_conjunctions.xml index 3639805..95909f0 100644 --- a/src/viresclient/_wps/templates/vires_get_conjunctions.xml +++ b/src/viresclient/_wps/templates/vires_get_conjunctions.xml @@ -33,6 +33,14 @@ {% endif -%} + {% if grade -%} + + grade + + {{ grade }} + + + {% endif -%} {% if begin_time -%} begin_time