Updated sentinel-2.js (added 2 lines, deleted 2 lines).

This commit is contained in:
logan
2021-05-20 12:38:16 +00:00
parent c6783f8121
commit 7cd0769f44

View File

@@ -301,8 +301,8 @@ function filterOnePerMonth(collection) {
var month = 1;
var images = [];
while (year <= 2021) {
while ((month <= 12 && year != 2021) || month <= 5) {
while (year <= int(new Date().getFullYear())) {
while (month <= 12) {
var start = year + "-" + ("0" + month).slice(-2) + "-01";
var end = year + "-" + ("0" + (month + 1)).slice(-2) + "-01";
if (month == 12) {