I am trying to understand the scale parameter in earth engine better. My goal is to calculate monthly sums of precipitation across a geometry. Here is the python pseudo code:
area = ee.Geometry.Polygon( [[[-120.29277343749999, 37.319672371647655], [-118.51298828124999, 35.13985393638227], [-117.10673828124999, 35.552070101618895], [-118.46904296874999, 37.73787899128162]]]) col = ee.ImageCollection('OREGONSTATE/PRISM/AN81m') t = col.filter(ee.Filter.calendarRange(2014,2014,'year')) .filter(ee.Filter.calendarRange(4,4,'month')) .filterBounds(area).select("ppt") result = t.getRegion(area, scale).getInfo()
However this gives very different sums depending on the scale parameter value that is supplied. Here is a plot for the image sum as a function of scale parameter:
Is the best practice to reduce as sum before calling
getInfo? I have read the documentation on scale in earth engine, and the native resolution suggested by the dataset is 2.5 arc minutes or approximately 4.5 km. I am curious what the best practices are for supplying a scale parameter, especially when working with multiple data sources over the same area.