Skip to content

Commit

Permalink
Concluding initial Swarm FAST support (#102)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
smithara and pacesm authored Oct 25, 2023
1 parent 9b7b84e commit 245e5a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/viresclient/_client_swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,7 @@ def get_conjunctions(
spacecraft2="B",
mission1="Swarm",
mission2="Swarm",
grade="OPER",
):
"""Get times of the spacecraft conjunctions.
Expand All @@ -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:
Expand Down Expand Up @@ -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")

Expand Down
8 changes: 8 additions & 0 deletions src/viresclient/_wps/templates/vires_get_conjunctions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
</wps:Data>
</wps:Input>
{% endif -%}
{% if grade -%}
<wps:Input>
<ows:Identifier>grade</ows:Identifier>
<wps:Data>
<wps:LiteralData>{{ grade }}</wps:LiteralData>
</wps:Data>
</wps:Input>
{% endif -%}
{% if begin_time -%}
<wps:Input>
<ows:Identifier>begin_time</ows:Identifier>
Expand Down

0 comments on commit 245e5a5

Please sign in to comment.