How do I filter Landsat imageCollection by their time of collection?
For example, if they are daytime or nighttime, which might be specified as Ascending or Descending.
I don't know which metadata keyword to use for filtering out by that.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
The property that holds the exact time is
For example, to get the latest available image in some collection:
// some collection var s2 = ee.ImageCollection('COPERNICUS/S2') // some place var p = ee.Geometry.Point(-72, -43) // filter the collection by the place s2 = s2.filterBounds(p) // sort descending by time var descending = s2.sort('system:time_start', false) // get latest image (first of the collection) var latest = ee.Image(descending.first()) print(latest.date())