From a329e1484516e41a40b312d4048525416bd206cc Mon Sep 17 00:00:00 2001 From: Fabian Schindler <fabian.schindler.strauss@gmail.com> Date: Tue, 25 Aug 2020 17:13:51 +0200 Subject: [PATCH] Updating jsonschema for preprocessor config --- preprocessor/preprocessor/config-schema.yaml | 53 ++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/preprocessor/preprocessor/config-schema.yaml b/preprocessor/preprocessor/config-schema.yaml index 669fd607..695bea47 100644 --- a/preprocessor/preprocessor/config-schema.yaml +++ b/preprocessor/preprocessor/config-schema.yaml @@ -100,10 +100,11 @@ definitions: description: The data file selector. type: string subdataset_types: - description: List of subdatasets to be extracted for each data file. - type: array - items: - type: string + description: Mapping of subdataset identifier to output filename postfix for subdatasets to be extracted for each data file. + type: object + patternProperties: + ".*": + type: string georeference: description: The definition of a georeferencing step. type: object @@ -128,8 +129,52 @@ definitions: warp_options: description: "Warp options. See https://gdal.org/python/osgeo.gdal-module.html#WarpOptions for details" corner_names: + description: "The metadata field name including the corner names. Tuple of four: bottom-left, bottom-right, top-left and top-right" + type: array + items: + type: string + orbit_direction_name: + description: The metadata field name containing the orbit direction + type: string + force_north_up: description: + type: boolean required: [type] + calc: + description: Definition of a calculation step. + type: object + properties: + formulas: + description: A list of formulas to calculate + type: array + items: + type: object + properties: + inputs: + description: Input definition of this formula + type: object + patternProperties: + "[A-Z]": + type: object + properties: + glob: + description: The input file glob to find the input file. + type: string + band: + description: The band number of the input file. Defaults to 1. + type: integer + data_type: + description: The output data type for the calculated file. (GDAL notation) + type: string + formula: + description: The formula to calculate. See gdal_calc.py for details. + type: string + output_postfix: + description: The filename postfix to append to the output filename. By default an enumeration is used. + type: string + nodata_value: + description: Use this nodata value in the calculation. + type: float stack_bands: description: Definition of a custom preprocessor step type: object -- GitLab