Tutorial 6.2

This tutorial explains the snippets of script to be developed for first Web Application

2. Script structure

2.4. Filter Image collections

Below code snippet filter the image collections (GPM and WaPOR AETI) to two years from October 2018 to September 2020

Further the image collections are refined to the bounding box of study area (ulb)

// select the band with precipitation information

// Filter to 2 years from October 2018 to September 2020 (2 years)

var pcp = GPM.filterDate('2018-10-01''2020-09-30')

              .filterBounds(ulb)

              .select('precipitation');

              

// Apply the monthly function to image collection 'pcp' to

// convert mm/hr to mm/month

var pcp_monthly = pcp.map(monthly);

 

// Filter ETIa to ulb

// Filter to 2 years from October 2018 to September 2020 (2 years)

var ETIa_filt = ETIa.filterDate('2018-10-01''2020-09-30')

                    .filterBounds(ulb);