Skip to content

Commit

Permalink
remove hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgitonga authored Oct 5, 2023
1 parent ebd1dd5 commit 3a43e39
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ecoscope/analysis/seasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ def _min_max_scaler(x):
return x_std


def std_ndvi_vals(aoi=None, start=None, end=None):
coll = ee.ImageCollection("MODIS/MCD43A4_006_NDVI").select("NDVI").filterDate(start, end)
def std_ndvi_vals(
aoi=None,
image_coll=None,
band=None,
scale=1,
start=None,
end=None
):
coll = ee.ImageCollection(image_coll).select(band).filterDate(start, end)

ndvi_vals = (
coll.toBands()
Expand Down

0 comments on commit 3a43e39

Please sign in to comment.