Skip to content

Commit 92f066c

Browse files
committed
update docs
1 parent 4eae818 commit 92f066c

2 files changed

Lines changed: 24 additions & 15 deletions

File tree

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ reference documentation on all aspects of the project.
2626
configuration
2727
administration
2828
running
29-
api
29+
services
3030
contributing
3131
support
3232
license
Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
.. _api:
1+
.. _services:
2+
3+
Services
4+
========
25

36
API
4-
===
7+
---
58

69
The WIS2 GDC provides a search API according to the GDC `technical considerations`_ in the WIS2 Guide, supporting
710
the `OGC API - Records`_ standard.
811

912
Overview
10-
--------
13+
^^^^^^^^
1114

1215
The wis2-gdc OGC API - Records API is powered by `pygeoapi`_, an OGC API Reference Implementation, and contains
1316
the following resources:
@@ -28,7 +31,7 @@ the following resources:
2831
- ``/processes/pywcmp-wis2-wcmp2-kpi/execution``
2932

3033
OpenAPI/Swagger
31-
---------------
34+
^^^^^^^^^^^^^^^
3235

3336
The easiest way to test the GDC API is using the Swagger endpoint, which allows for testing various capabilities
3437
and queries into the GDC.
@@ -38,7 +41,7 @@ and queries into the GDC.
3841
:alt: GDC API Swagger endpoint
3942

4043
Discovery
41-
---------
44+
^^^^^^^^^
4245

4346
The GDC API allows for a wide range of query predicates to search for data in WIS2 as per the OGC API - Records - Part 1: Core specification.
4447

@@ -47,7 +50,7 @@ The GDC can be searched via the ``/collections/wis2-discovery-metadata/items`` e
4750
**NOTE**: examples below are not URL encoded for clarity / readability, but should be when interacting with the GDC API.
4851

4952
Spatial queries
50-
^^^^^^^^^^^^^^^
53+
"""""""""""""""
5154

5255
- search for metadata records of data in Canada: ``bbox=-142,42,-52,84``
5356

@@ -59,21 +62,21 @@ Note that the format of `bbox` is comma-separated values in the following order:
5962
- maximum latitude
6063

6164
Temporal queries
62-
^^^^^^^^^^^^^^^^
65+
""""""""""""""""
6366

6467
- search for metadata records updated since 29 July 2024: ``datetime=2024-07-29/..``
6568
- search for metadata records updated before 29 July 2024: ``datetime=../2024-07-29``
6669
- search for metadata records updated on 29 July 2024: ``datetime=2024-07-29``
6770

6871
Equality queries
69-
^^^^^^^^^^^^^^^^
72+
""""""""""""""""
7073

7174
- search for metadata records whose title contains the terms hourly observations: ``title=hourly observations``
7275
- search for metadata records whose title contains the terms hourly or observations: ``title=hourly | observations``
7376
- search for metadata records for a specific contact organization ``contacts.addresses.organization=Direction Generale de la Météorologie``
7477

7578
Freetext search
76-
^^^^^^^^^^^^^^^
79+
"""""""""""""""
7780

7881
- search metadata records for temperature: `q=temperature``
7982
- search metadata records for GRIB2 data: ``q=GRIB2``
@@ -83,20 +86,20 @@ Freetext search
8386
- search for data from Belize with MQTT subscription capabilities: ``q="cache/a/wis2/bz-nms"``
8487

8588
Sorting
86-
^^^^^^^
89+
"""""""
8790

8891
- sort search results by title, ascending: ``sortby=title``
8992
- sort search results by title, descending: ``sortby=-title``
9093

9194
Paging
92-
^^^^^^
95+
""""""
9396

9497
- present search results 1-10: ``limit=10``
9598
- present search results 11-20: ``limit=10&offset=10``
9699
- limit to 3 search results: ``limit=3``
97100

98101
Finding data subscription services
99-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102+
""""""""""""""""""""""""""""""""""
100103

101104
The GDC API contains both real-time and non real-time data. A typical WCMP2 distribution link for data subscriptions can be found below:
102105

@@ -136,7 +139,7 @@ Programmatically, a GDC client can query the catalogue and filter the results fo
136139
Using the ``href`` and ``channel`` properties of a matching link object, a client can connect and subscribe to data notifications for a given dataset.
137140

138141
Validation and quality assessment
139-
---------------------------------
142+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140143

141144
The GDC API provides processes to validate WCMP2 records (required by WIS2) and perform quality assessment as a value added service. Both processes
142145
utilize the `pywcmp`_ package to achieve this capability.
@@ -152,7 +155,7 @@ Interfaces for both ETS validation and KPI quality assessment take the same inpu
152155
:alt: GDC API Swagger Process for WCMP2 validation
153156

154157
Additional endpoints
155-
--------------------
158+
^^^^^^^^^^^^^^^^^^^^
156159

157160
In addition to OGC API interfaces, wis2-gdc provides the following additional endpoints:
158161

@@ -161,9 +164,15 @@ In addition to OGC API interfaces, wis2-gdc provides the following additional en
161164
- ``/wis2-gdc-all-channels-latest.txt``: Live channel list
162165

163166

167+
Metrics
168+
-------
169+
170+
wis2-gdc generates metrics on a daily basis (at 1h) as per the WIS2 Guide Technical Considerations for GDC. The reuslting metrics are made available at ``/wis2-gdc-metrics.txt`` and made available as per the `OpenMetrics`_ standard.
171+
164172
.. _`technical considerations`: https://wmo-im.github.io/wis2-guide/guide/wis2-guide-APPROVED.html#_2_7_5_global_discovery_catalogue
165173
.. _`OGC API - Records`: https://docs.ogc.org/is/20-004r1/20-004r1.html
166174
.. _`pygeoapi`: https://pygeoapi.io
167175
.. _`WCMP2 Abstract Test Suite`: https://wmo-im.github.io/wcmp2/standard/wcmp2-STABLE.html#_conformance_class_abstract_test_suite_normative
168176
.. _`WCMP2 Key Performance Indicators`: https://wmo-im.github.io/wcmp2/kpi/wcmp2-kpi-DRAFT.html
169177
.. _`pywcmp`: https://github.com/World-Meteorological-Organization/pywcmp
178+
.. _`OpenMetrics`: https://openmetrics.io

0 commit comments

Comments
 (0)