From 3d7c8e1c51b1bbb0f34be52f8c9bf603ea27a3c2 Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 12 Mar 2026 15:08:30 -0400 Subject: [PATCH] Update year sequence to use colProps instead of lcb.props This would have disregarded the user-defined start and end dates --- docs/examples.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 4c33c4a..2ce135a 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -271,7 +271,7 @@ var colProps = { lcb.setProps(colProps); // make an ee.List sequence from startYear to endYear -var years = ee.List.sequence(lcb.props.startYear, lcb.props.endYear); +var years = ee.List.sequence(colProps.startYear, colProps.endYear); // map over the list of years - return a list of annual mean NDVI composite images var imgList = years.map(function(year){ @@ -339,7 +339,7 @@ var plan = function(year){ }; // apply the processing plan to the range of years -var years = ee.List.sequence(lcb.props.startYear, lcb.props.endYear); +var years = ee.List.sequence(colProps.startYear, colProps.endYear); var nValidCol = ee.ImageCollection.fromImages(years.map(plan)); // subset one year to display @@ -397,7 +397,7 @@ var plan = function(year){ }; // apply the processing plan to the range of years -var years = ee.List.sequence(lcb.props.startYear, lcb.props.endYear); +var years = ee.List.sequence(colProps.startYear, colProps.endYear); var nValidCol = ee.ImageCollection.fromImages(years.map(plan)); // reduce collection of nValid pixels to mean @@ -471,7 +471,7 @@ var plan = function(year){ }; // apply the processing plan to the range of years -var years = ee.List.sequence(lcb.props.startYear, lcb.props.endYear); +var years = ee.List.sequence(colProps.startYear, colProps.endYear); var nValidSummary = ee.FeatureCollection(years.map(plan)); // show results