{
    "version":"0.2.0",
    "id":"arpae-realtime-process",
    "title":"ARPAE realtime data Process",
    "description":"Realtime data from ARPAE",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "safer process"
    ],
    "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":{}
        },
        "strict_time_range":{
            "title":"Strict time range",
            "description":"Enable strict time range to check data avaliability until requested end time. Can be valued as true or false. Default is false",
            "schema":{}
        },
        "variable_codes":{
            "title":"Variable codes",
            "description":"List of variable codes. Possible values are \"B13011\" (total_precipitation), \"B13215\" (river_level), \"B13226\" (river_discharge), \"B22037\" (tidal_national_ref), \"B22070\" (wave_height_significative), \"B22073\" (wave_height_max), \"B22001\" (wave_direction), \"B11001\" (wind_direction), \"B11002\" (wind_speed). If no variable code is provided, all variables will be returned",
            "schema":{}
        },
        "station_names":{
            "title":"Station names",
            "description":"Dictionary of station names. The dictionary keys must be variable codes and the values must be lists of station names. If no station names are provided, all stations will be returned",
            "schema":{}
        },
        "out_format":{
            "title":"Return format type",
            "description":"The return format type. Possible values are \"geojson\" or \"dataframe\". \"geojson\" is default and preferable.",
            "schema":{}
        },
        "debug":{
            "title":"Debug",
            "description":"Enable Debug mode. Can be valued as true or false",
            "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 station geojson file",
            "schema":{}
        },
        "type":{
            "title":"Output type",
            "description":"The output type. Value when \"out_format\"=\"geojson\" is \"FeatureCollection\"",
            "schema":{}
        },
        "features":{
            "title":"Features",
            "description":"Present when \"out_format\"=\"geojson\" and it is a list of geo-features with properties",
            "schema":{}
        },
        "metadata":{
            "title":"Metadata",
            "description":"Metdata of the measures. They contains code-name, related readble-name, unit and type",
            "schema":{}
        },
        "crs":{
            "title":"Coordinate Reference System",
            "description":"Coordinate Reference System of the output features, valued according to geojson standards. It is always \"urn:ogc:def:crs:OGC:1.3:CRS84\" (EPSG:4326)",
            "schema":{}
        }
    },
    "example":{
        "inputs":{
            "token":"ABC123XYZ666",
            "debug":true,
            "lat_range":[
                43.8,
                44.2
            ],
            "long_range":[
                12.4,
                12.9
            ],
            "time_range":[
                "2025-03-18T09:00:00.000",
                "2025-03-18T14:00:00.000"
            ],
            "variable_codes":[
                "B13011",
                "B13215",
                "B13226",
                "B22037",
                "B22070",
                "B22001",
                "B11001",
                "B11002"
            ],
            "station_names":{
                "B22037":[
                    "Cattolica Porto radar"
                ]
            },
            "out_format":"geojson"
        }
    },
    "outputTransmission":[
        "value"
    ],
    "links":[
        {
            "type":"application/json",
            "rel":"self",
            "href":"http://pygeoapi-directed-lb-1795156461.us-east-1.elb.amazonaws.com/processes/arpae-realtime-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/arpae-realtime-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/arpae-realtime-process/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ]
}