Skip to content

Commit

Permalink
chore: merge in climate normals branch
Browse files Browse the repository at this point in the history
  • Loading branch information
turban committed Feb 25, 2025
2 parents be9c0d4 + 16ce06f commit 50bb877
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.6.2](https://github.com/dhis2/climate-app/compare/v1.6.1...v1.6.2) (2025-02-24)


### Bug Fixes

* store zero data values in setup guide ([#62](https://github.com/dhis2/climate-app/issues/62)) ([e1b4129](https://github.com/dhis2/climate-app/commit/e1b412960c13feb7af058e6d05e3b079c22642cf))

## [1.6.1](https://github.com/dhis2/climate-app/compare/v1.6.0...v1.6.1) (2025-02-24)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "climate-data",
"version": "1.6.1",
"version": "1.6.2",
"description": "Explore and import weather and climate data in DHIS2.",
"license": "BSD-3-Clause",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ee-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const cleanData = (data) =>
}))

// Calculates the monthly normals for each band
// Previously we tried to do this on GEE but we got wrong results
export const getMonthlyNormals = (bands) => (data) => {
const normals = []

Expand Down Expand Up @@ -445,7 +446,6 @@ export const getClimateNormals = ({ ee, dataset, period, geometry }) => {
const data = collection.map((image) =>
ee
.Feature(null, image.reduceRegion(eeReducer, eeGeometry, eeScale))
.set('system:index', image.get('system:index'))
.set('month', ee.String(image.get('system:index')).slice(-2))
)

Expand Down

0 comments on commit 50bb877

Please sign in to comment.