Skip to content

Commit

Permalink
Auto-reformat JSON (using pre-commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jun 18, 2024
1 parent c4c8bd8 commit 99a92be
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 84 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ repos:
- id: check-json
- id: check-yaml
- id: check-toml
- id: pretty-format-json
args: ["--autofix", "--no-sort-keys"]
42 changes: 22 additions & 20 deletions algorithm_catalog/worldcereal.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "worldcereal_maize",
"type": "Feature",
"conformsTo": [
"http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core"
"http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core"
],
"properties": {
"created": "2024-05-17T00:00:00Z",
Expand All @@ -11,7 +11,7 @@
"title": "ESA worldcereal global maize detector",
"description": "A maize detection algorithm.",
"cost_estimate": 0.1,
"cost_unit": "platform credits per km²",
"cost_unit": "platform credits per km\u00b2",
"keywords": [
"agriculture",
"crops"
Expand All @@ -32,31 +32,35 @@
"position": "Researcher",
"organization": "VITO",
"links": [
{
"href": "https://www.vito.be/",
"rel": "about",
"type": "text/html"
},
{
"href": "https://www.vito.be/",
"rel": "about",
"type": "text/html"
},
{
"href": "https://github.com/kvantricht",
"rel": "about",
"type": "text/html"
}
],
"contactInstructions": "Contact via VITO",
"roles": [ "principal investigator" ]
"roles": [
"principal investigator"
]
},
{
"name": "VITO",
"links": [
{
"href": "https://www.vito.be/",
"rel": "about",
"type": "text/html"
}
{
"href": "https://www.vito.be/",
"rel": "about",
"type": "text/html"
}
],
"contactInstructions": "SEE WEBSITE",
"roles": [ "processor" ]
"roles": [
"processor"
]
}
],
"themes": [
Expand All @@ -66,7 +70,7 @@
"id": "AGRICULTURE"
},
{
"id":"FIELD CROP PRODUCTS"
"id": "FIELD CROP PRODUCTS"
}
],
"scheme": "https://gcmd.earthdata.nasa.gov/kms/concepts/concept_scheme/sciencekeywords"
Expand All @@ -77,11 +81,9 @@
],
"license": "other"
},
"linkTemplates": [

],
"linkTemplates": [],
"links": [
{
{
"rel": "udp",
"type": "application/json",
"title": "openEO UDP",
Expand All @@ -104,4 +106,4 @@
"href": "https://apex.esa.int/license"
}
]
}
}
38 changes: 18 additions & 20 deletions algorithm_invocations/worldcereal.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
[

{
"id": "maize_2020_belgium",
"description": "Maize detection in Belgium in 2020",
"backend": "openeofed.dataspace.copernicus.eu",
"openeo_graph": {
"biopar1": {
"process_id": "worldcereal_maize",
"namespace": "https://github.com/ESA-APEX/apex_algorithms/blob/main/openeo_udp/worldcereal_inference.json",
"arguments": {
"bbox": {
"west": 5.15183687210083,
"east": 5.153381824493408,
"south": 51.18192559252128,
"north": 51.18469636040683,
"crs": "EPSG:4326"
},
"year": 2021
},
"result": true
}
}

"openeo_graph": {
"biopar1": {
"process_id": "worldcereal_maize",
"namespace": "https://github.com/ESA-APEX/apex_algorithms/blob/main/openeo_udp/worldcereal_inference.json",
"arguments": {
"bbox": {
"west": 5.15183687210083,
"east": 5.153381824493408,
"south": 51.18192559252128,
"north": 51.18469636040683,
"crs": "EPSG:4326"
},
"year": 2021
},
"result": true
}
}
}
]
]
24 changes: 12 additions & 12 deletions backend_catalog/cdse_openeo_federation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "openeofed",
"type": "Feature",
"conformsTo": [
"http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core"
"http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core"
],
"properties": {
"created": "2024-05-17T00:00:00Z",
Expand All @@ -29,14 +29,16 @@
{
"name": "VITO",
"links": [
{
"href": "https://www.vito.be/",
"rel": "about",
"type": "text/html"
}
{
"href": "https://www.vito.be/",
"rel": "about",
"type": "text/html"
}
],
"contactInstructions": "SEE WEBSITE",
"roles": [ "operator" ]
"roles": [
"operator"
]
}
],
"themes": [
Expand All @@ -51,11 +53,9 @@
],
"license": "other"
},
"linkTemplates": [

],
"linkTemplates": [],
"links": [
{
{
"rel": "alternate",
"type": "text/html",
"title": "CDSE openEO documentation",
Expand All @@ -68,4 +68,4 @@
"href": "https://openeofed.dataspace.copernicus.eu"
}
]
}
}
24 changes: 12 additions & 12 deletions backend_catalog/openeo_platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "openeocloud",
"type": "Feature",
"conformsTo": [
"http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core"
"http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core"
],
"properties": {
"created": "2024-05-17T00:00:00Z",
Expand All @@ -29,14 +29,16 @@
{
"name": "openEO platform",
"links": [
{
"href": "https://openeo.cloud",
"rel": "about",
"type": "text/html"
}
{
"href": "https://openeo.cloud",
"rel": "about",
"type": "text/html"
}
],
"contactInstructions": "SEE WEBSITE",
"roles": [ "operator" ]
"roles": [
"operator"
]
}
],
"themes": [
Expand All @@ -51,11 +53,9 @@
],
"license": "other"
},
"linkTemplates": [

],
"linkTemplates": [],
"links": [
{
{
"rel": "alternate",
"type": "text/html",
"title": "openEO platform documentation",
Expand All @@ -68,4 +68,4 @@
"href": "https://openeo.cloud"
}
]
}
}
41 changes: 21 additions & 20 deletions openeo_udp/worldcereal_inference.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"specification": {
"parameters":[
{
"name":"bbox",
"description":"A bounding box with the required fields `west`, `south`, `east`, `north` and optionally `base`, `height`, `crs`. The `crs` is a EPSG code or a WKT2:2018 string.",
"schema":{
"type":"object",
"subtype":"bounding-box"
}
}
],
"parameters": [
{
"name": "bbox",
"description": "A bounding box with the required fields `west`, `south`, `east`, `north` and optionally `base`, `height`, `crs`. The `crs` is a EPSG code or a WKT2:2018 string.",
"schema": {
"type": "object",
"subtype": "bounding-box"
}
}
],
"returns": {
"description": "netCDF file",
"schema": {
"type": "object",
"subtype": "raster-cube"
}
},
"public":true,
"description": "Computes ESA WorldCereal croptype product",
"summary": "Computes ESA WorldCereal croptype product",
"id":"worldcereal_croptype",
"public": true,
"description": "Computes ESA WorldCereal croptype product",
"summary": "Computes ESA WorldCereal croptype product",
"id": "worldcereal_croptype",
"process_graph": {
"aggregatetemporalperiod1": {
"arguments": {
Expand Down Expand Up @@ -494,7 +494,7 @@
}
},
"spatial_extent": {
"from_parameter":"bbox"
"from_parameter": "bbox"
},
"temporal_extent": [
"2023-01-01",
Expand Down Expand Up @@ -526,7 +526,7 @@
}
},
"spatial_extent": {
"from_parameter":"bbox"
"from_parameter": "bbox"
},
"temporal_extent": [
"2023-01-01",
Expand All @@ -543,7 +543,7 @@
],
"id": "SENTINEL1_GRD",
"spatial_extent": {
"from_parameter":"bbox"
"from_parameter": "bbox"
},
"temporal_extent": [
"2023-01-01",
Expand All @@ -559,7 +559,7 @@
],
"id": "COPERNICUS_30",
"spatial_extent": {
"from_parameter":"bbox"
"from_parameter": "bbox"
},
"temporal_extent": null
},
Expand Down Expand Up @@ -911,6 +911,7 @@
"scl_band_name": "SCL"
},
"process_id": "to_scl_dilation_mask"
}}
}
}
}
}
}

0 comments on commit 99a92be

Please sign in to comment.