Skip to content

Commit 29e983a

Browse files
RousseauLambertLPLouis-Philippe Rousseau Lambert
and
Louis-Philippe Rousseau Lambert
authored
minor fixes some covjson (#393)
Co-authored-by: Louis-Philippe Rousseau Lambert <[email protected]>
1 parent 9370590 commit 29e983a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

msc_pygeoapi/provider/cangrd_rasterio.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,15 @@ def gen_covjson(self, metadata, data, var):
444444

445445
parameter[pm['id']] = {
446446
'type': 'Parameter',
447-
'description': pm['name'],
447+
'description': {'en': pm['name']},
448448
'unit': {
449449
'symbol': pm['units']
450+
},
451+
'observedProperty': {
452+
'id': pm['id'],
453+
'label': {
454+
'en': pm['name']
455+
}
450456
}
451457
}
452458

msc_pygeoapi/provider/cansips_rasterio.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ def gen_covjson(self, metadata, data):
413413

414414
parameter[pm['id']] = {
415415
'type': 'Parameter',
416-
'description': pm['description'],
416+
'description': {
417+
'en': pm['description']
418+
},
417419
'unit': {
418420
'symbol': pm['unit_label']
419421
},

msc_pygeoapi/provider/climate_xarray.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ def gen_covjson(self, metadata, data, range_type):
600600

601601
parameter = {
602602
'type': 'Parameter',
603-
'description': pm['description'],
603+
'description': {
604+
'en': pm['description']
605+
},
604606
'unit': {
605607
'symbol': pm['unit_label']
606608
},

0 commit comments

Comments
 (0)