ee.ImageCollection.limit

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

Returns the limited collection.

UsageReturns
ImageCollection.limit(max, property, ascending)Collection
ArgumentTypeDetails
this: collectionCollection

The Collection instance.

maxNumber

The number to limit the collection to.

propertyString, optional

The property to sort by, if sorting.

ascendingBoolean, optional

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

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!