JuliaDataCubes / YAXArrays.jl

Yet Another XArray-like Julia package
https://juliadatacubes.github.io/YAXArrays.jl/
Other
99 stars 16 forks source link

Add example for vector data cube #270

Closed danlooo closed 1 year ago

danlooo commented 1 year ago

I found it a bit difficult to use mapCube in situations, where dimensions are both removed and created. Thus, I added an example on how to create a vector data cube that aggregates points of the same region. This example is different from the others mentioned in file create_from_func.jl, because the transformation is not calculated elementwise as it is one in f(lo, la, t) = (lo + la + Dates.dayofyear(t)) but requires information from the other dimensions as well, i.e. we need the longitude and latitude to calculate the aggregated value.

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5398976456


Totals Coverage Status
Change from base Build 5376433093: 0.0%
Covered Lines: 1348
Relevant Lines: 1790

💛 - Coveralls
codecov[bot] commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (1d44e97) 75.34% compared to head (c30d8fd) 75.34%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #270 +/- ## ======================================= Coverage 75.34% 75.34% ======================================= Files 12 12 Lines 1858 1858 ======================================= Hits 1400 1400 Misses 458 458 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.