I have an image collection of Landsat 7 filtered by a date and PATH and ROW of interest, and I want to know the best way to mosaic all the images (tiles) that have same PATH and ROW into one image.
The collection is created by the following code:
var L7_1 = ee.ImageCollection("LANDSAT/LE07/C02/T1_L2") .filterDate('2000-01-01', '2000-12-31') .filter(ee.Filter.metadata('WRS_PATH', "greater_than", 171)) .filter(ee.Filter.metadata('WRS_PATH', "less_than", 206))
.filter(ee.Filter.metadata('WRS_ROW', "greater_than", 27))
.filter(ee.Filter.metadata('WRS_ROW', "less_than", 37))
print(L7_1, 'L7_1');
I would like to do this iteratively for the whole collection over a broad date range and obtain a new image collection of mosaicked images by single PATH and ROW.
Best Answer
You can do this with a join.
https://code.earthengine.google.com/9f02891f699cab48345e0e99a4960d8d