Changes between Version 25 and Version 26 of WCSTImportGuide/GeneralRecipe


Ignore:
Timestamp:
Jul 24, 2017 2:44:05 PM (4 weeks ago)
Author:
bphamhuu
Comment:

Add the example for band's and dimension's metadata.

Legend:

Unmodified
Added
Removed
Modified
  • WCSTImportGuide/GeneralRecipe

    v25 v26  
    151151|| `datetime(date, format)` || This function helps to deal with strange date time formats. It returns back a datetime string in ISO format || `datetime("20120101:1200", "YYYYMMDD:HHmm")` ||
    152152|| `regex_extract(input, regex, group)` || This function extracts information from a string using regex; input is the string you parse, regex is the regular expression, group is the regex group you want to select || `datetime(regex_extract('${file:name}', '(.*)_(.*)_(.*)_(\\d\\d\\d\\d-\\d\\d)(.*)', 4), 'YYYY-MM')` ||
     153
     154=== Band, Dimension metadata to support in encoding netCDF ===
     155Beside the global metadata of coverage for GDAL, netCDF, GRIB axes, you can add the metadata for each band and each defined axis in the ingredient file. Then, when you encode the output result from WCS, WCPS in netCDF, you will see the metadata is copied to the corresponding sections.
     156
     157{{{
     158        "metadata": {
     159          "type": "xml",
     160          "global": {
     161            "description": "'This file has 3 different nodata values for bands and they could be fetched implicitly.'",
     162            "resolution": "'1'"
     163          },
     164          // metadata of each band
     165          "bands": {
     166              "red": {
     167                  "metadata1": "metadata_red1",
     168                  "metadata2": "metadata_red2"
     169               },
     170              "green": {
     171                  "metadata3": "metadata_green3",
     172                  "metadata4": "metadata_green4"
     173               },
     174              "blue": {
     175                  "metadata5": "metadata_blue5"                   
     176               }
     177           },
     178          // meta data of each dimension (axis)
     179           "axes": {
     180              "i": {
     181                   "metadata_i_1": "metadata_1",
     182                   "metadata_i_2": "metadata_2"
     183               },
     184              "j": {
     185                   "metadata_j_1": "metadata_3"
     186              }
     187           }
     188        },
     189}}}