{
    "version":"0.1.0",
    "id":"calculate-weighting",
    "use_case":"Human Population",
    "title":"Calculate dasymetric weighting table",
    "description":"Calculates population-density-based weights per CORINE Land Cover class by overlapping the Eurostat census grid (human population) with the CORINE CLC 2018 raster, treating continuous urban fabric (111) and discontinuous urban fabric (112) classes separately from all other CORINE Land Cover classes (R function 'calculate_weighting')",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "human population use case",
        "AquaINFRA",
        "dasymetric mapping",
        "CORINE",
        "census grid",
        "weighting"
    ],
    "links":[
        {
            "type":"text/html",
            "rel":"about",
            "title":"information",
            "href":"https://example.org/process",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"self",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/calculate-weighting?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/calculate-weighting?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://aquainfra.ogc.igb-berlin.de/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://aquainfra.ogc.igb-berlin.de/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://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/calculate-weighting/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ],
    "inputs":{
        "inputFile1_censusgridSelected_rds":{
            "title":"Census grid (selected/clipped)",
            "description":"Path to an .rds file containing the Eurostat census grid (human population, e.g. column 'TOT_P_2021') clipped to the area of interest.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/x-rds"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[]
        },
        "inputFile2_corineCLCcropped_rds":{
            "title":"CORINE CLC raster (cropped)",
            "description":"Path to an .rds file containing the CORINE Land Cover raster (SpatRaster), cropped to the area of interest.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/x-rds"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[]
        },
        "inputFile3_corineYear_rds":{
            "title":"CORINE reference year",
            "description":"Path to an .rds file containing the CORINE CLC reference year as a single value. Only year 2018 is currently supported by this function.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/x-rds"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[]
        },
        "inputFile4_clcLegend_rds":{
            "title":"CORINE CLC legend table",
            "description":"Path to an .rds file containing the CORINE CLC legend table with class codes, labels, and RGB colors.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/x-rds"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[]
        },
        "inputFile5_corUrbanValues_rds":{
            "title":"Urban CORINE CLC codes (optional)",
            "description":"Path to an .rds file containing a vector of CORINE CLC class codes classified as urban (codes 100-199). Only required when 'additional_candidate_classes_to_consider' is 'all_artificial_surface_classes'.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/x-rds"
            },
            "minOccurs":0,
            "maxOccurs":1,
            "keywords":[]
        },
        "additional_candidate_classes_to_consider":{
            "title":"Additional candidate classes to consider (optional)",
            "description":"One of 'all_artificial_surface_classes' (use only the other urban CORINE classes, from inputFile5_corUrbanValues_rds) or 'all_other_classes' (use all other CORINE classes from the legend). If not supplied, this additional-classes step is skipped entirely.",
            "schema":{
                "type":"string",
                "enum":[
                    "all_artificial_surface_classes",
                    "all_other_classes"
                ]
            },
            "minOccurs":0,
            "maxOccurs":1,
            "keywords":[]
        }
    },
    "outputs":{
        "weight_table":{
            "title":"Dasymetric weighting table",
            "description":"Table with CORINE CLC class code, label, and the percentage weight of average population density attributed to that class, for use in dasymetric population mapping.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/x-rds"
            }
        }
    },
    "example":{
        "inputs":{
            "inputFile1_censusgridSelected_rds":"censusgrid_catchment.rds",
            "inputFile2_corineCLCcropped_rds":"corine2018_cropped.rds",
            "inputFile3_corineYear_rds":"coryear2018.rds",
            "inputFile4_clcLegend_rds":"clc_legend.rds",
            "inputFile5_corUrbanValues_rds":"cor_urban_values.rds",
            "additional_candidate_classes_to_consider":"all_other_classes"
        }
    },
    "outputTransmission":[
        "value"
    ]
}