{
    "version":"0.2.0",
    "id":"cae-retriever-process",
    "title":"CAE Retriever Process",
    "description":"Process to retrieve data from the CAE seonsors.",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "CAE",
        "retriever",
        "process",
        "sensor",
        "pygeoapi"
    ],
    "inputs":{
        "token":{
            "title":"secret token",
            "description":"identify yourself",
            "schema":{
                "type":"string"
            }
        },
        "lat_range":{
            "title":"Latitude range",
            "description":"The latitude range in format [lat_min, lat_max]. Values must be in EPSG:4326 crs. If no latitude range is provided, all latitudes will be returned",
            "schema":{}
        },
        "long_range":{
            "title":"Longitude range",
            "description":"The longitude range in format [long_min, long_max]. Values must be in EPSG:4326 crs. If no longitude range is provided, all longitudes will be returned",
            "schema":{}
        },
        "time_range":{
            "title":"Time range",
            "description":"The time range in format [time_start, time_end]. Both time_start and time_end must be in ISO-Format and related to at least one week ago. If no time range is provided, all times will be returned",
            "schema":{}
        },
        "filters":{
            "title":"Filters",
            "description":"Filters to apply to the data. If no filters are provided, all data will be returned. The filters can be a single value or a list of values. The filters are applied to the station, element, instrument and quantity fields.",
            "schema":{
                "type":"object",
                "properties":{
                    "station":{
                        "title":"Station",
                        "description":"The station to filter the data. If no station is provided, all stations will be returned",
                        "type":"string or list of strings",
                        "default":null
                    },
                    "element":{
                        "title":"Element",
                        "description":"The element (sensor) to filter the data. If no element is provided, all elements will be returned",
                        "type":"string or list of strings",
                        "default":null
                    },
                    "instrument":{
                        "title":"Instrument",
                        "description":"The instrument to filter the data. If no instrument is provided, all instruments will be returned",
                        "type":"string or list of strings",
                        "default":null
                    },
                    "quantity":{
                        "title":"Quantity",
                        "description":"The quantity to filter the data. If no quantity is provided, all quantities will be returned",
                        "type":"string or list of strings",
                        "default":null
                    }
                }
            }
        },
        "out":{
            "title":"Output file path",
            "description":"The output file path for the retrieved data. If neither out nor bucket_destination are provided, the output will be returned as a feature collection.",
            "schema":{
                "type":"string"
            }
        },
        "out_format":{
            "title":"Return format type",
            "description":"The return format type. Possible values are \"geojson\" or \"dataframe\". \"geojson\" is default and preferable.",
            "schema":{}
        },
        "bucket_destination":{
            "title":"Bucket destination",
            "description":"The bucket destination where the data will be stored. If not provided, the data will not be stored in a bucket. If neither out nor bucket_destination are provided, the output will be returned as a feature collection.",
            "schema":{
                "type":"string"
            }
        },
        "debug":{
            "title":"Debug",
            "description":"Enable Debug mode. Can be valued as true or false",
            "schema":{}
        }
    },
    "outputs":{
        "id":{
            "title":"ID",
            "description":"The ID of the process execution",
            "schema":{}
        }
    },
    "example":{
        "inputs":{
            "token":"your_secret_token",
            "lat_range":[
                43.92,
                44.77
            ],
            "long_range":[
                12.2,
                12.83
            ],
            "time_range":[
                "2025-07-23T10:00:00",
                "2025-07-23T12:00:00"
            ],
            "filters":{
                "station":[
                    "station1",
                    "station2"
                ],
                "element":[
                    "element1",
                    "element2"
                ],
                "instrument":[
                    "instrument1"
                ],
                "quantity":[
                    "quantity1",
                    "quantity2"
                ]
            },
            "out":"path/to/output/file.geojson",
            "out_format":"geojson",
            "bucket_destination":"s3://your-bucket-name/store/data/prefix",
            "debug":true
        }
    },
    "outputTransmission":[
        "value"
    ],
    "links":[
        {
            "type":"application/json",
            "rel":"self",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/processes/cae-retriever-process?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/processes/cae-retriever-process?f=html",
            "title":"Process description as HTML",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"http://www.opengis.net/def/rel/ogc/1.0/job-list",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/jobs?f=html",
            "title":"Jobs list as HTML",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"http://www.opengis.net/def/rel/ogc/1.0/job-list",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/jobs?f=json",
            "title":"Jobs list as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"http://www.opengis.net/def/rel/ogc/1.0/execute",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/processes/cae-retriever-process/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ]
}