{
    "version":"0.2.0",
    "id":"icon2i-retriever-process",
    "title":"ICON-2I Retirever Process",
    "description":"Retrieve data collected from ICON-2I",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "safer process"
    ],
    "inputs":{
        "token":{
            "title":"secret token",
            "description":"identify yourself",
            "schema":{
                "type":"string"
            }
        },
        "variable":{
            "title":"Variable",
            "description":"The variable to retrieve. Possible values are \"precipitation\" or \"water_level\".",
            "schema":{
                "type":"string",
                "enum":[
                    "precipitation",
                    "water_level"
                ]
            }
        },
        "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":{}
        },
        "out":{
            "title":"Output directory",
            "description":"The output directory where the data will be stored. If not provided, the data will not be stored in a local directory.",
            "schema":{
                "type":"string"
            }
        },
        "bucket_source":{
            "title":"Bucket source",
            "description":"The bucket source where the data will be retrieved from. If not provided, the data will be retrieved from the ICON-2I API.",
            "schema":{
                "type":"string"
            }
        },
        "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",
            "schema":{}
        }
    },
    "outputs":{
        "status":{
            "title":"status",
            "description":"Staus of the process execution [OK or KO]",
            "schema":{}
        },
        "s3_uri":{
            "title":"S3 Uri",
            "description":"S3 Uri of the merged timestamp multiband raster",
            "schema":{}
        },
        "data":{
            "title":"Time series dataset",
            "description":"Dataset with precipitation forecast data time series in requested \"out_format\"",
            "schema":{}
        }
    },
    "example":{
        "inputs":{
            "debug":true,
            "variable":"total_precipitation",
            "forecast_run":[
                "2025-09-18T00:00:00"
            ],
            "bucket_destination":"s3://saferplaces.co/SaferCastAPI/test/ICON2I",
            "token":"123ABC456XYZ"
        }
    },
    "outputTransmission":[
        "value"
    ],
    "links":[
        {
            "type":"application/json",
            "rel":"self",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/processes/icon2i-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/icon2i-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/icon2i-retriever-process/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ]
}