Skip to content

Commit 245e5a5

Browse files
smitharapacesm
andauthored
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 <martin.paces@eox.at>
1 parent 9b7b84e commit 245e5a5

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/viresclient/_client_swarm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,7 @@ def get_conjunctions(
21232123
spacecraft2="B",
21242124
mission1="Swarm",
21252125
mission2="Swarm",
2126+
grade="OPER",
21262127
):
21272128
"""Get times of the spacecraft conjunctions.
21282129
@@ -2138,6 +2139,7 @@ def get_conjunctions(
21382139
spacecraft2: identifier of the second spacecraft, default to 'B'
21392140
mission1 (str): mission of the first spacecraft, defaults to 'Swarm'
21402141
mission2 (str): mission of the first spacecraft, defaults to 'Swarm'
2142+
grade (str): products grade, possible values "OPER" or "FAST"
21412143
21422144
Returns:
21432145
ReturnedData:
@@ -2182,6 +2184,7 @@ def get_conjunctions(
21822184
spacecraft2=spacecraft2,
21832185
mission1=mission1,
21842186
mission2=mission2,
2187+
grade=(grade if grade and grade != "OPER" else None),
21852188
threshold=threshold,
21862189
).encode("UTF-8")
21872190

src/viresclient/_wps/templates/vires_get_conjunctions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
</wps:Data>
3434
</wps:Input>
3535
{% endif -%}
36+
{% if grade -%}
37+
<wps:Input>
38+
<ows:Identifier>grade</ows:Identifier>
39+
<wps:Data>
40+
<wps:LiteralData>{{ grade }}</wps:LiteralData>
41+
</wps:Data>
42+
</wps:Input>
43+
{% endif -%}
3644
{% if begin_time -%}
3745
<wps:Input>
3846
<ows:Identifier>begin_time</ows:Identifier>

0 commit comments

Comments
 (0)