esa-esdl / JuliaDatDemo

0 stars 1 forks source link

reduceCube produces different values than the old spatialMean function ? #4

Closed Torminator closed 7 years ago

Torminator commented 7 years ago

Example: Variance.ipynb mv1 = reduceCube(mean, v1, LatAxis, skipnull=true) Mean variance with seasonal cycle: 0.0061406395 Mean variance without seasonal cycle: 0.0038614897 mv1 =mapCube(spatialMean,(v1,v1.axes[2])): Mean variance with seasonal cycle: 0.008488666 Mean variance without seasonal cycle: 0.006032313

meggart commented 7 years ago

The old spatialMean function was wrong, it did not incluude spatial weights according to grid cell size. Are you also sure that the same data cube version was used by both examples?

However, we could still check if the values make sense, so I leave the issue open for now...

Torminator commented 7 years ago

Sorry, they used different data cubes.