Skip to content

Commit

Permalink
bug fix in add_harmonics function
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutijain90 committed Jul 10, 2021
1 parent bd34209 commit a8bfb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gee_tools/harmonics.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _add_harmonic(n):

# Convert list into a collection and smash into an image.
timeradsimg = ee.Image(ee.ImageCollection.fromImages(timeradians).iterate(append_band))
constant = image.select(timeband).divide(image.select(timeband)).rename('constant')
constant = image.addBands(image.select(0).multiply(0).add(1).select([0], ['constant']))

return image.addBands(timeradsimg).addBands(constant).set('independents', timeradsimg.bandNames().add(timeband).add('constant'))

Expand Down

0 comments on commit a8bfb19

Please sign in to comment.