var renameProperty = function(feature) {
var year = ee.Number(feature.get('rclmtn_d')).format('%d');
feature = feature.set('system:time_start', year.cat('-01-01'))
.set('system:time_end', '2023-01-01');
return feature;
};
// Apply the function
var intersects = intersects.map(renameProperty);
I got an error when using the function as follows:
When setting the dates in my asset as follows:
I got an error when using the function as follows:
The error:
The parsing line in the
leaf.py
is the following:https://github.com/rfernand387/LEAF-Toolbox/blob/607a3c3b0b2864840bca162b9ea3a50f5bc91c86/Source-Python/production/LEAF.py#L298