{
    "version":"0.1.0",
    "id":"GDP-CalcAggClimr",
    "title":"Run aggregation using ClimateR catalog",
    "description":"Apply gdptools aggregation to user polygons using ClimateR catalog metadata (OpenDAP) and pre-computed weights.",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "area-weighted intersections",
        "gdptools",
        "aggregation",
        "climater"
    ],
    "links":[
        {
            "type":"text/html",
            "rel":"about",
            "title":"Project documentation",
            "href":"https://gdptools-pygeoapi-plugin.readthedocs.io/en/latest/usage.html#calc-agg-climr-process",
            "hreflang":"en"
        },
        {
            "type":"application/json",
            "rel":"self",
            "href":"https://api.water.usgs.gov:443/gdp/pygeoapi/processes/GDP-CalcAggClimr?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"https://api.water.usgs.gov:443/gdp/pygeoapi/processes/GDP-CalcAggClimr?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":"https://api.water.usgs.gov:443/gdp/pygeoapi/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":"https://api.water.usgs.gov:443/gdp/pygeoapi/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":"https://api.water.usgs.gov:443/gdp/pygeoapi/processes/GDP-CalcAggClimr/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ],
    "inputs":{
        "cat_dict":{
            "title":"Catalog definition",
            "description":"Same JSON fragment used to build ClimRCatData (see example).",
            "schema":{
                "type":"string",
                "contentMediaType":"application/json"
            },
            "minOccurs":1,
            "maxOccurs":1
        },
        "weights":{
            "title":"Weight table",
            "description":"JSON-exported DataFrame produced by calc_weights_catalog.",
            "schema":{
                "type":"string",
                "contentMediaType":"application/json"
            },
            "minOccurs":1,
            "maxOccurs":1
        },
        "shape_file":{
            "title":"Feature collection",
            "description":"GeoJSON FeatureCollection for the polygon(s) being aggregated.",
            "schema":{
                "type":"string",
                "contentMediaType":"application/geo+json"
            },
            "minOccurs":1,
            "maxOccurs":1
        },
        "shape_crs":{
            "title":"Feature CRS",
            "description":"EPSG code or proj string describing the feature CRS.",
            "schema":{
                "type":"string"
            },
            "minOccurs":1,
            "maxOccurs":1
        },
        "shape_poly_idx":{
            "title":"Feature identifier field",
            "description":"Name of the column containing the polygon identifier.",
            "schema":{
                "type":"string"
            },
            "minOccurs":1,
            "maxOccurs":1
        },
        "start_date":{
            "title":"Start date",
            "description":"Beginning of the aggregation window (YYYY-MM-DD).",
            "schema":{
                "type":"string",
                "format":"date"
            },
            "minOccurs":1,
            "maxOccurs":1
        },
        "end_date":{
            "title":"End date",
            "description":"End of the aggregation window (YYYY-MM-DD).",
            "schema":{
                "type":"string",
                "format":"date"
            },
            "minOccurs":1,
            "maxOccurs":1
        }
    },
    "outputs":{
        "aggregated_json":{
            "title":"Aggregated result",
            "description":"JSON records (time, varname, units, polygon columns).",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        }
    },
    "example":{
        "inputs":{
            "cat_dict":"{\"aet\": {\"id\": \"terraclim\", \"asset\": \"agg_terraclimate_aet_1958_CurrentYear_GLOBE\", \"URL\": \"http://thredds.northwestknowledge.net:8080/thredds/dodsC/agg_terraclimate_aet_1958_CurrentYear_GLOBE.nc\", \"type\": \"opendap\", \"varname\": \"aet\", \"variable\": \"aet\", \"description\": \"water_evaporation_amount\", \"units\": \"mm\", \"model\": null, \"ensemble\": null, \"scenario\": \"total\", \"T_name\": \"time\", \"duration\": \"1958-01-01/2021-12-01\", \"interval\": \"1 months\", \"nT\": 768.0, \"X_name\": \"lon\", \"Y_name\": \"lat\", \"X1\": -179.97916666666666, \"Xn\": 179.97916666666666, \"Y1\": 89.97916666666667, \"Yn\": -89.97916666666664, \"resX\": 0.041666666666666664, \"resY\": 0.041666666666666664, \"ncols\": 8640.0, \"nrows\": 4320.0, \"crs\": \"+proj=longlat +a=6378137 +f=0.00335281066474748 +pm=0 +no_defs\", \"toptobottom\": false, \"tiled\": \"\"}, \"pet\": {\"id\": \"terraclim\", \"asset\": \"agg_terraclimate_pet_1958_CurrentYear_GLOBE\", \"URL\": \"http://thredds.northwestknowledge.net:8080/thredds/dodsC/agg_terraclimate_pet_1958_CurrentYear_GLOBE.nc\", \"type\": \"opendap\", \"varname\": \"pet\", \"variable\": \"pet\", \"description\": \"water_potential_evaporation_amount\", \"units\": \"mm\", \"model\": null, \"ensemble\": null, \"scenario\": \"total\", \"T_name\": \"time\", \"duration\": \"1958-01-01/2021-12-01\", \"interval\": \"1 months\", \"nT\": 768.0, \"X_name\": \"lon\", \"Y_name\": \"lat\", \"X1\": -179.97916666666666, \"Xn\": 179.97916666666666, \"Y1\": 89.97916666666667, \"Yn\": -89.97916666666664, \"resX\": 0.041666666666666664, \"resY\": 0.041666666666666664, \"ncols\": 8640.0, \"nrows\": 4320.0, \"crs\": \"+proj=longlat +a=6378137 +f=0.00335281066474748 +pm=0 +no_defs\", \"toptobottom\": false, \"tiled\": \"\"}}",
            "weights":"{\"i\":{\"0\":2,\"1\":1,\"2\":2,\"3\":1},\"index\":{\"0\":0,\"1\":1,\"2\":2,\"3\":3},\"j\":{\"0\":3,\"1\":3,\"2\":2,\"3\":2},\"poly_idx\":{\"0\":\"1\",\"1\":\"1\",\"2\":\"1\",\"3\":\"1\"},\"wght\":{\"0\":0.138616567,\"1\":0.001795472,\"2\":0.7689606915,\"3\":0.0906272694}}",
            "shape_file":"{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {\"id\": 1, \"poly_idx\": \"1\"}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-70.60141212297273, 41.9262774500321], [-70.57199544021768, 41.91303994279233], [-70.5867037815952, 41.87626908934851], [-70.61906213262577, 41.889506596588284], [-70.60141212297273, 41.9262774500321]]]}}]}",
            "shape_crs":"4326",
            "shape_poly_idx":"poly_idx",
            "start_date":"1980-01-01",
            "end_date":"1980-12-31"
        }
    },
    "outputTransmission":[
        "value"
    ]
}