15.4 C
Nairobi
Friday, September 30, 2022

Preview image collection using time-series

This article focuses on how to prepare and preview image Collection, provide example code for collection visualization method, and time-series animation techniques.

Images composing an Image Collection can be visualized as either an animation or a time series animation of thumbnails referred to as a filmstrip. These methods provide a quick assessment of the contents of an ImageCollection and an effective medium for detecting spatiotemporal change.

Select an area of Interest.

Select an area of interest using the geometry tool.

Choose an Image collection.

Choose the dataset to be used. In this case, NDVI collection from MODIS dataset will be visualized using an animated GIF. Proceed to perform a filter for the dates, to obtain the date the image was acquired.

var collection = ee.ImageCollection("MODIS/006/MOD13Q1")
  .filterDate('2018-01-01', '2019-01-01')
  .select('NDVI');
Clip the first image to the area of interest and add it to the map.

The first image in the image collection is added to the map just as a preview.

var im = ee.Image(collection.first().clip(geometry));
Map.addLayer(im, {}, "first image"); 
Visualization.

Apply visualization parameters to the animation.

var args = {
  crs: 'EPSG:3857',  // Maps Mercator
  dimensions: '300',
  region: geometry,
  min: -2000,
  max: 10000,
  palette: 'black, blanchedalmond, green, green',
  framesPerSecond: 12,
};
Create a video thumbnail and add it to the map.
var thumb = ui.Thumbnail({
  image: collection,
  params: args,
  style: {
    position: 'bottom-right',
    width: '320px'
  }});
Display the final results.
print(collection.getVideoThumbURL(args));
Map.addLayer(geometry);
Map.centerObject(geometry, 3);
Map.add(thumb);
A preview of image collection using time-series
NDVI Animation
Time series animation

Link to the animation

https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/videoThumbnails/531240e2f3217100dfd9dd09283fdfba-3c8a348c5e7a6f0b4fdea728a5370709:getPixels

Link to the full code

https://code.earthengine.google.com/f2505b99b5ae5a9b32f8e4b78b326819

Be sure to check the next post on Creating Buffers in GEE

close

Join Our Mailing List

Risper Mutinda
Risper Mutinda
Hello. I am Risper Mutinda. I am a passionate Web and GIS Developer but more importantly, I am passionate about Technology.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay Connected

933FansLike
132FollowersFollow
3,730SubscribersSubscribe
- Advertisement -

Join Our Mailing List

Latest Articles