Mercurial > repos > climate > eodie
comparison macros.xml @ 0:5354615b21fc draft default tip
"planemo upload for repository https://gitlab.com/eetun-tiimi/EODIE commit c4a5672398bc878dd2bc0bf4f3a26f59b3f6395c"
| author | climate |
|---|---|
| date | Thu, 30 Dec 2021 15:23:24 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:5354615b21fc |
|---|---|
| 1 <macros> | |
| 2 <token name="@VERSION@">1.0.2</token> | |
| 3 <xml name="edam_ontology"> | |
| 4 <edam_topics> | |
| 5 <edam_topic>topic_0610</edam_topic> | |
| 6 <edam_topic>topic_3050</edam_topic> | |
| 7 </edam_topics> | |
| 8 </xml> | |
| 9 <xml name="configfiles"> | |
| 10 <configfiles> | |
| 11 <configfile name="config_tif"><![CDATA[ | |
| 12 platform: tif | |
| 13 | |
| 14 ##the first that is found is used | |
| 15 datepattern: '20[1-2][0-9][0-1][0-9][0-3][0-9]' | |
| 16 | |
| 17 ##name to write into output statistics filename | |
| 18 name: 'testrgb' | |
| 19 ]]> </configfile> | |
| 20 <configfile name="config_s2"><![CDATA[ | |
| 21 #### | |
| 22 | |
| 23 ## Configuration file for the use of Sentinel-2 ## | |
| 24 | |
| 25 ## Know what you do before you change anything here ## | |
| 26 | |
| 27 #### | |
| 28 | |
| 29 platform: 's2' | |
| 30 | |
| 31 ## Mask conditions are stored as values, not as bitflags | |
| 32 bitmask: 0 | |
| 33 ## Values to be to be included in cloudmask | |
| 34 ## default [9,8,3,10,0,1] | |
| 35 tobemaskedlist: | |
| 36 - 9 ## cloud high probability | |
| 37 - 8 ## cloud medium probability | |
| 38 - 3 ## cloud shadow | |
| 39 - 10 ## cirrus | |
| 40 - 0 ## no data | |
| 41 - 1 ## saturated and defective | |
| 42 | |
| 43 ##pattern to find all data files | |
| 44 filepattern: 'S2[A-C]_MSIL2A_\d{8}T\d{6}_N\d{4}_R\d{3}_T\d{2}[A-Z]{3}_\d{8}T\d{6}.SAFE$' | |
| 45 | |
| 46 ## Sentinel-2 bands | |
| 47 red : 'B04' | |
| 48 green: 'B03' | |
| 49 blue: 'B02' | |
| 50 nir: 'B08' | |
| 51 r_edge: 'B05' | |
| 52 swir1: 'B11' | |
| 53 swir2: 'B12' | |
| 54 | |
| 55 ## some part of the products file name that identifies them as product to be used | |
| 56 productnameidentifier: 'S2*.SAFE' | |
| 57 | |
| 58 ## parts to build path towards bands | |
| 59 bandlocation: ['.','*','*','IMG_DATA'] | |
| 60 | |
| 61 ## path building set after imgpath to get the bandfile | |
| 62 pathbuildinglist: ['R', 'pixelsize' , 'm','*', 'bandname', '_' , 'pixelsize' ,'m.jp2'] | |
| 63 | |
| 64 ##indicator for cloudfile | |
| 65 cloudfilename: 'SCL' | |
| 66 | |
| 67 tilepattern: '(?<=T)[0-9]{2}[A-Z]{3}' | |
| 68 | |
| 69 ##the first that is found is used | |
| 70 datepattern: '20[1-2][0-9][0-1][0-9][0-3][0-9]' | |
| 71 | |
| 72 band_designation: 'B[0-1]?\dA?' | |
| 73 | |
| 74 ## Quantification value used to multiple the reflectance to get DN | |
| 75 ## This could be read from metadata but for now at least is here | |
| 76 quantification_value: 10000 | |
| 77 | |
| 78 ## available resolutions per band | |
| 79 B01: [60] | |
| 80 B02: [10,20,60] | |
| 81 B03: [10,20,60] | |
| 82 B04: [10,20,60] | |
| 83 B05: [20,60] | |
| 84 B06: [20,60] | |
| 85 B07: [20,60] | |
| 86 B08: [10] | |
| 87 B8A: [20,60] | |
| 88 B09: [60] | |
| 89 B11: [20,60] | |
| 90 B12: [20,60] | |
| 91 SCL: [20,60] | |
| 92 AOT: [10,20,60] | |
| 93 TCI: [10,20,60] | |
| 94 WVP: [10,20,60] | |
| 95 ]]> </configfile> | |
| 96 <configfile name="config_ls8"><![CDATA[ | |
| 97 platform: 'ls8' | |
| 98 | |
| 99 ## Process only files with less than xx % cloudcover | |
| 100 maxcloudcover: 10 | |
| 101 | |
| 102 | |
| 103 ## Mask conditions are not stored as values, but as individual 0/1 flags in bits | |
| 104 bitmask: 1 | |
| 105 ## Bits to be to be included in cloudmask | |
| 106 ## https://prd-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/atoms/files/LSDS-1328_Landsat8-9-OLI-TIRS-C2-L2-DFCB-v6.pdf | |
| 107 tobemaskedlist: | |
| 108 - 0 ## Fill data | |
| 109 - 1 ## Dilated cloud | |
| 110 - 2 ## Cirrus | |
| 111 - 3 ## Cloud | |
| 112 - 4 ## Cloud shadow | |
| 113 - 5 ## Snow | |
| 114 - 9 ## Cloud medium to high confidence | |
| 115 - 11 ## Cloud shadow high confidence | |
| 116 - 13 ## Snow/Ice high confidence | |
| 117 - 15 ## Cirrus high confidence | |
| 118 | |
| 119 | |
| 120 ##pattern to find all data files | |
| 121 filepattern: 'LC08_L\d.._\d{6}_\d{8}_\d{8}_02_[TR][12T]$' | |
| 122 | |
| 123 ##all bands are located in parent directory directly | |
| 124 bandlocation: ['.'] | |
| 125 | |
| 126 ##indicator for cloudfile | |
| 127 cloudfilename: 'QA_PIXEL' | |
| 128 | |
| 129 ## LS8 bands | |
| 130 ## https://www.usgs.gov/media/images/landsat-8-band-designations | |
| 131 red : 'B4' | |
| 132 green: 'B3' | |
| 133 blue: 'B2' | |
| 134 nir: 'B5' | |
| 135 swir1: 'B6' | |
| 136 swir2: 'B7' | |
| 137 | |
| 138 tilepattern: '[0-9]{6}' | |
| 139 | |
| 140 ## the first that is found is used | |
| 141 datepattern: '20[1-2][0-9][0-1][0-9][0-3][0-9]' | |
| 142 | |
| 143 band_designation: 'B\d?\d' | |
| 144 | |
| 145 ##??????????? | |
| 146 ## Quantification value used to multiple the reflectance to get DN | |
| 147 ## This could be read from metadata but for now at least is here | |
| 148 quantification_value: 65535 | |
| 149 | |
| 150 ## available resolutions per band | |
| 151 B1: [30] | |
| 152 B2: [30] | |
| 153 B3: [30] | |
| 154 B4: [30] | |
| 155 B5: [30] | |
| 156 B6: [30] | |
| 157 B7: [30] | |
| 158 QA_PIXEL: [30] | |
| 159 ## to be continued | |
| 160 | |
| 161 ##upsampling (converting to higher resolution/smaller cells) / downsampling (converting to lower resolution/larger cellsize) | |
| 162 ##available: ‘nearest’, ‘bilinear’, ‘cubic’, ‘cubic_spline’, ‘lanczos’, ‘average’, ‘mode’, and ‘gauss’, | |
| 163 ## from https://rasterio.readthedocs.io/en/latest/api/rasterio.enums.html#rasterio.enums.Resampling | |
| 164 | |
| 165 resampling_method: 'bilinear' | |
| 166 | |
| 167 | |
| 168 ## path building set *after inpath* to get the bandfile | |
| 169 | |
| 170 pathbuildinglist: ['*', 'bandname', '*' , '.TIF'] | |
| 171 ]]> </configfile> | |
| 172 <configfile name="user_config"><![CDATA[ | |
| 173 #### | |
| 174 | |
| 175 ## Configuration file for adjusting the process/results and give paths ## | |
| 176 | |
| 177 #### | |
| 178 | |
| 179 ## Process only files with less than xx % cloudcover | |
| 180 maxcloudcover: 99 | |
| 181 | |
| 182 ## Extract files with xx m pixel size | |
| 183 ## options: 10,20 (for Sentinel-2) | |
| 184 ## options: 30 (for Landsat8) | |
| 185 | |
| 186 #if str($input_type.platform) == 'ls8' | |
| 187 pixelsize: 30 | |
| 188 #else | |
| 189 pixelsize: 10 | |
| 190 #end if | |
| 191 | |
| 192 ##resampling (converting to higher/lower resolution/smaller cells) | |
| 193 ##available: 'biliner','nearest','cubic','average', ... | |
| 194 ## from https://rasterio.readthedocs.io/en/latest/api/rasterio.enums.html#rasterio.enums.Resampling | |
| 195 | |
| 196 resampling_method: 'bilinear' | |
| 197 | |
| 198 ##location of the shapefile with tiles (Sentinel2-tiles-world in case of Sentinel-2, WRS2_descending in case of Landsat 8) | |
| 199 #if str($input_type.platform) == 's2' | |
| 200 tileshp: './sentinel2_tiles_world/sentinel2_tiles_world' | |
| 201 #elif str($input_type.platform) == 'ls8' | |
| 202 tileshp: './WRS2_descending/WRS2_descending' | |
| 203 #end if | |
| 204 | |
| 205 ##name of field where tilenames are stored in shapefile ('Name' in case of sentinel2_tiles_world, 'PR' in case of WRS2_descending ) | |
| 206 #if str($input_type.platform) == 'ls8' | |
| 207 fieldname: 'PR' | |
| 208 #else | |
| 209 fieldname: 'Name' | |
| 210 #end if | |
| 211 | |
| 212 ## Lookup table for storing the tiles and the IDs they include for every tile processed by EODIE with --array_out | |
| 213 ## Table needed for array plotting | |
| 214 lookup: './postprocesses/lookuptable.txt' | |
| 215 ]]> </configfile> | |
| 216 </configfiles> | |
| 217 </xml> | |
| 218 <xml name="citations"> | |
| 219 <citations> | |
| 220 <citation type="doi">10.5281/zenodo.4762323</citation> | |
| 221 </citations> | |
| 222 </xml> | |
| 223 </macros> |
