Google Earth Engine(GEE)——如何限制影像的数量?_影像

limit(max, propertyascending)

Limit a collection to the specified number of elements, optionally sorting them by a specified property first.

Returns the limited collection.

Arguments:

this:collection (Collection):

The Collection instance.

max (Number):

The number to limit the collection to.

property (String, optional):

The property to sort by, if sorting.

ascending (Boolean, optional):

Whether to sort in ascending or descending order. The default is true (ascending).

Returns: Collection

var imgCol = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR")                
.limit(10);
print(imgCol);