Opened 5 years ago

Closed 5 years ago

#1974 closed enhancement (fixed)

WCST_Import axes metadata and band metadata should be added implicitly when global metadata is "auto" in netCDF recipe

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: wcst_import Version: 9.7
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

For netCDF recipe, axes metadata needs to be specified manually in ingredient file to be available in coverage's global metadata with this configuration, e.g:

	  "axes": {
		"Long": "${netcdf:variable:lon:metadata}",
		"Lat": "${netcdf:variable:lat:metadata}",
	   }

The problem is because there are multiple variables in netCDF (e.g: lon, lat,…) so it cannot be matched automatically to coverage's axes (Long, Lat,…).

However, it could try to parse the variable names which are configured by users from "min" and "max", e.g:

 Here axis variable "lat" is matched to "Lat" CRS axis.

 "Lat": {
              "min": "${netcdf:variable:lat:min}",
              "max": "${netcdf:variable:lat:max}",
               ...
}

Therefore, in ingredient file, with

"metadata": {
    "global": "auto"
 }

Bands and axes variables's metdata specified in the ingredient file will be collected to coverage's metadata to be used later when encoding with netCDF format.

Change History (1)

comment:1 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.