stcorp / harp

Data harmonization toolset for scientific earth observation data
http://stcorp.github.io/harp/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
55 stars 19 forks source link

Add squash operation #190

Closed svniemeijer closed 5 years ago

svniemeijer commented 5 years ago

For variables where the values are the same for each element in a specific dimension we want to have an operation that 'removes' that dimension. We should introduce this as a squash operation:

squash(<dimension>, <variable>) squash(<dimension>, (<variable>, .., <variable>))

Such variables can appear if we perform a harpmerge; this will introduce a time dimension for all variables. Even for variables that have time independent content. The squash operation would allow for explicit removal of this time dimension afterwards.

svniemeijer commented 5 years ago

Implemented in 0998f2b03f3655da1733f3ba3268b4c76baf028e