{
    "version":"0.1.0",
    "id":"mitgcm-prep",
    "use_case":"Catalunya",
    "title":"MITgcm Preprocessing",
    "description":"Preprocessing phase of the AquaINFRA marine modeling chain. Initial conditions, boundary conditions and atmospheric forcing files are generated from Copernicus data to be used as input to the MITgcm model in the Model Run phase.",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "AquaINFRA",
        "Marine Modeling System",
        "MITgcm",
        "Catalunya Use Case"
    ],
    "links":[
        {
            "type":"text/html",
            "rel":"about",
            "title":"Website of MITgcm",
            "href":"https://mitgcm.org/",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"about",
            "title":"GitHub repo of MITgcm",
            "href":"https://github.com/MITgcm/MITgcm",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"self",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/mitgcm-prep?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"https://aquainfra.ogc.igb-berlin.de/pygeoapi/processes/mitgcm-prep?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/mitgcm-prep/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ],
    "inputs":{
        "input_url_IC_OBS":{
            "title":"Zipped Copernicus Input Data (URL) input_url_IC_OBS",
            "description":"URL that points to (zipped) Copernicus data necessary to generate initial and boundary conditions for the model. Optional: If none of the input URLs are provided, pre-downloaded data will be used.",
            "schema":{
                "type":"string"
            },
            "minOccurs":0,
            "maxOccurs":1,
            "keywords":[
                "AquaINFRA",
                "Marine Modeling System",
                "MITgcm",
                "Catalunya Use Case",
                "Copernicus"
            ]
        },
        "input_url_AF":{
            "title":"Copernicus Input Data (URL) input_url_AF",
            "description":"URL that points to Copernicus input data that the preprocessing needs. Note that the filename has to match the pattern 'era5_{RUN_DATE}_{RUN_DATE+PREDICTION_DAYS}.zip', otherwise the preprocessing will fail. Optional: If none of the input URLs are provided, pre-downloaded data will be used.",
            "schema":{
                "type":"string"
            },
            "minOccurs":0,
            "maxOccurs":1,
            "keywords":[
                "AquaINFRA",
                "Marine Modeling System",
                "MITgcm",
                "Catalunya Use Case",
                "Copernicus"
            ]
        },
        "PREDICTION_DAYS":{
            "title":"PREDICTION_DAYS",
            "description":"Number of days to run the simulation from RUN_DATE. Format: Positive integer",
            "schema":{
                "type":"integer"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[
                "AquaINFRA",
                "Marine Modeling System",
                "MITgcm",
                "Catalunya Use Case",
                "Copernicus"
            ]
        },
        "RUN_DATE":{
            "title":"RUN_DATE",
            "description":"DATE from which the simulation starts. Format: yyyy-mm-dd",
            "schema":{
                "type":"string"
            },
            "minOccurs":1,
            "maxOccurs":1,
            "keywords":[
                "AquaINFRA",
                "Marine Modeling System",
                "MITgcm",
                "Catalunya Use Case",
                "Copernicus"
            ]
        }
    },
    "outputs":{
        "output_directory":{
            "title":"Directory containing all the outputs",
            "description":"This is the link to the directory containing all the outputs of this job.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "preprocessing_output_files":{
            "title":"Preprocessing output files (model input) directory",
            "description":"This is the link to the directory containing preprocessing output files (= model input files).",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "preprocessing_input_files":{
            "title":"Preprocessing input files directory",
            "description":"Directory containing input data: The Copernicus data which was be preprocessed to generate the necessary model input.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "configure_inc":{
            "title":"Modified configure.inc",
            "description":"The modified configure.inc file, containing all the parameter values for the simulation, where the user can select a DATE and the number of PREDICTION_DAYS.",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "bathymetry":{
            "title":"Bathymetry file",
            "description":"Bathymetry file: bathy_interCATSEA_lowres.nc",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "depths":{
            "title":"Depths file",
            "description":"Depths file: depths.dat",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "river_discharges":{
            "title":"River discharges file",
            "description":"River discharges CSV file: river_discharges_M3000L015.csv",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "log_file":{
            "title":"Log file",
            "description":"Preprocessing run log file",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "model_run_dir":{
            "title":"Model RUN directory",
            "description":"This is the link to the directory containing: MITgcm namelists adjusted for the specific simulation, MITgcm executable, MITgcm raw output, MITgcm log files (STDERR, STDOUT)",
            "schema":{
                "type":"object",
                "contentMediaType":"application/json"
            }
        },
        "job_id":{
            "title":"Job id",
            "description":"Job id to use to refer to the preprocessing outputs.",
            "schema":{
                "type":"string",
                "contentMediaType":"application/json"
            }
        }
    },
    "example":{
        "inputs":{
            "PREDICTION_DAYS":2,
            "DATE":"2024-01-01"
        }
    },
    "outputTransmission":[
        "value"
    ]
}