Changes between Version 26 and Version 27 of WCSTImportGuide/GeneralRecipe


Ignore:
Timestamp:
Aug 7, 2017 1:36:09 PM (12 days ago)
Author:
bphamhuu
Comment:

Add the uom for netCDF, Grib file

Legend:

Unmodified
Added
Removed
Modified
  • WCSTImportGuide/GeneralRecipe

    v26 v27  
    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')` ||
    153153
    154 === Band, Dimension metadata to support in encoding netCDF ===
     154=== Band's unit of measurement (uom) code for netCDF, Grib recipes ===
     155
     156{{{
     157
     158for netCDF recipe, you can add uom for each
     159 band with syntax
     160
     161
     162 {{{
     163  "uomCode": "${netcdf:variable:LAI:units}" (LAI is a specified netCDF variable example)
     164 }}}
     165
     166 for GRIB, it is as same as netCDF to add uom for bands, except, you use the different expression to fetch this data from any metadata of GRIB file.
     167
     168 {{{
     169   "bands": [
     170             {
     171               "name": "Temperature_isobaric",
     172               "identifier": "Temperature_isobaric",
     173               "description": "Bands description",
     174               "nilReason": "Nil value represents missing values.",
     175               "nilValue": 9999,
     176               "uomCode": "${grib:unitsOfFirstFixedSurface}" # can be any
     177 other metadata from GRIB file
     178             }
     179           ]
     180 }}}
     181
     182}}}
     183
     184
     185=== Band, Dimension's metadata to support in encoding netCDF ===
    155186Beside 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.
    156187