I am new to the earth engine. My question is on how to obtain statistics from the overlapping region of two areas.
I have uploaded a table that contains the locations of river basins (https://code.earthengine.google.com/?asset=users/basins/AqueductBasins). These commonly lie in several countries. I want to obtain the information on the mean population density for these basin areas in a specific country (so: mean for Basin1 in CountryA, mean for Basin1 in CountryB, mean in Basin2 in CountryA and so on).
I have taken this feature collection on the country borders:
var countries = ee.FeatureCollection('ft:1tdSwUL7MVpOauSgRzqVTOwdfy17KDbw-1d9omPw');
This image contains information on the people per cell:
var Pop2015 = ee.Image('JRC/GHSL/P2016/POP_GPW_GLOBE_V1/2015');
I want to print a table with the average people per cell in the basin area in the different riparian states.