{
    "version":"0.1.0",
    "id":"mean-by-group",
    "use_case":"Daugava",
    "title":"Return group average",
    "description":"description: This function calculates and returns the average value for each defined group (for example per site, per year, per season and per HELCOM_ID) (R function 'mean_by_group').",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "daugava use case",
        "AquaINFRA",
        "mean_by_group",
        "R"
    ],
    "links":[
        {
            "type":"text/html",
            "rel":"about",
            "title":"GitHub repo",
            "href":"https://github.com/AstraLabuce/aquainfra-usecase-Daugava/tree/containerize",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"about",
            "title":"Zenodo repo",
            "href":"https://doi.org/10.5281/zenodo.15112709",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"self",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/mean-by-group?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/mean-by-group?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/mean-by-group/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"self",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/mean-by-group?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/mean-by-group?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/mean-by-group/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ],
    "inputs":{
        "input_data":{
            "title":"Input table",
            "description":"URL to the input table containing group identifier(s) and a value column. Groups are defined by one or more columns. Other columns present in the table will be removed in the process, retaining only those specified in cols_to_group_by and value_col. For example, use the result table from peri_conv.",
            "schema":{
                "type":"string"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[
                "csv"
            ]
        },
        "colnames_to_group_by":{
            "title":"Column names identifying group",
            "description":"One or more column names identifying the group. A combination of all specified columns will be used to define unique groups for calculating the average value. Example: \"longitude, latitude, Year_adj_generated, group_labels, HELCOM_ID\". Another example: \"Year_adj_generated, group_labels, HELCOM_ID\".",
            "schema":{
                "type":"string"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[
                "csv"
            ]
        },
        "colname_value":{
            "title":"Column name for column containing values",
            "description":"The name of the column that contains the values for which the average will be calculated. Only one column name can be included. Examples: \"transparency_m\", \"mean\"",
            "schema":{
                "type":"string"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[
                "csv"
            ]
        }
    },
    "outputs":{
        "mean_by_group":{
            "title":"Group average values (result table)",
            "description":"A table containing the unique groups defined by \"colnames_to_group_by\" and the corresponding average values for each group, based on the column specified in \"colname_value\".",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        }
    },
    "example":{
        "inputs":{
            "input_data":"https://testserver.de/download/peri_conv.csv",
            "colnames_to_group_by":"longitude, latitude, Year_adj_generated, group_labels, HELCOM_ID",
            "colname_value":"transparency_m"
        }
    },
    "outputTransmission":[
        "value"
    ]
}