Provide cube summary stats for given dimension #105
Labels
enhancement
New feature or request
important
This is very important for the project
xcube gen
This is related to data cube generation, CLI "xcube gen"
xcube serve
This is related to server component, CLI "xcube serve"
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Generalisation: For each data variable in a cube and for each dimension provide a summary statistics variable whose values are computed by aggregating cell values for the remaining dimensions. The aggregations may be min, max, mean, counts, ratio, etc. Name pattern, e.g.
"f'{var_name}_{dim_name}_{agg}"
, for example,"CHL_time_counts"
. Note, we can also provide flag stats using pattern"f'{var_name}_{flag_name}_{dim_name}_{agg}"
, for example,"CLASSIF_CLOUD_time_ratio"
.xcube addstats
- a CLI tool to add summary statistics to an existing cube. Use config parameter to control the generation of the stat vars.xcube gen
should generate these statistics when appending new slices to existing cubes. Add extra config parameter that control the generation of the stat vars.Describe alternatives you've considered
Don't store the variables in a cube but store them in a separate dataset that will be "attached" to the cube dataset.
xcube serve
can be configured to use such attached datasets, similar to the way recognises a multi-resolution, levelled data cube. This approach is a still valid alternative to be considered for implementation.Additional context
See also #18.
The text was updated successfully, but these errors were encountered: