Best Practices4 years ago
Avoid mixing client functions and objects with server functions and objects | Avoid converting to list unnecessarily | Avoid ee.Algorithms.If() | Avoid reproject() | Filter and select() first | Use updateMask() instead of mask() | Combine reducers | Use Export | **If you don't need to clip, don't use clip() ** | If you need to clip with a complex collection, use clipToCollection() | Don't use a complex collection as the region for a reducer | Use a non-zero errorMargin | Don't use a ridiculously small scale with reduceToVectors() | Don't use reduceToVectors() with reduceRegions() | Use fastDistanceTransform() for neighborhood operations | Use the optimizations in reduceNeighborhood() | Don't sample more data than you need | Export intermediate results | Join vs. map-filter | reduceRegion() vs. reduceRegions() vs. for-loop | Use forward differencing for neighbors in time
rgee 1.1.8.9002Matthieu Stigler rgee03.Rmd