I am looking for a script to extract gridded timeseries data from Google Earth Engine for CHIRPS, PERSIANN and PRISM products, does anyone have any solutions?
Follwing codes with some modification can be helpful in extracting CHIRPS precipitation products. Same logic can be applied for other similar datasets.
Attached codes are for Annual precipiation. You may need to do desired modification to get the product and prcessing at your desiored temporal scale for your study area.
///////// Select the Year of interest/////////////
var year = 2019
var startDate = ee.Date.fromYMD(year, 1, 1)
var endDate = startDate.advance(1, 'year')
//Import Chirps rainfall data///////
Map.centerObject(Region)
var rainfall = ee.ImageCollection("UCSB-CHG/CHIRPS/PENTAD")
.filterDate(startDate,endDate)
.filterBounds(Region);
print(rainfall)
var image = ee.Image(rainfall.first())
var scale = image.projection().nominalScale()
print(scale)
//Calculate annual rainafall and display rainfall data//////
var rainfall_palette = ['#ffffcc','#a1dab4','#41b6c4','#2c7fb8','#253494']
var annualRainfall = ee.ImageCollection("UCSB-CHG/CHIRPS/PENTAD")