我正在尝试使用 Sentinel-2 生成 PCA。该代码不会收到任何错误,直到几分钟后超时: PCA_composite_(2,4,1)_Dry:层错误:计算超时。
PCA_composite_(2,4,1)_Dry: Layer error: Computation timed out.
PCA_composite_(2,4,1)_Dry: Layer error: Invalid JSON:
// Set all the available Sentinel-2 top-of-atmosphere reflectance images as a variable
var S2_TOA = ee.ImageCollection('COPERNICUS/S2')
.filterDate('2015-01-01', '2022-01-01'); // Adjust the date range as needed
// Define your AOI as a polygon with a set of WGS84 coordinates
var geometry = /* color: #d63000 */ee.Geometry.Polygon(
[[[32.465870612339636, 25.49361174035753],
[32.523548834995886, 25.514682721083354],
[32.51668237991776, 25.554335710246033],
[32.605946295933386, 25.600168126364572],
[32.74464868851151, 25.660838081172347],
[32.855885260777136, 25.83153853604328],
[32.87923120804276, 25.93655784828051],
[32.850392096714636, 26.07355984205893],
[32.754261725620886, 26.177130630392302],
[32.62105249710526, 26.235040851893455],
[32.43428491898026, 26.19191895722801],
[32.323048346714636, 26.16480559121605],
[32.292835944370886, 26.108093638896285],
[32.215931647495886, 26.131521479668855],
[32.16511987991776, 26.21163380602972],
[32.15688013382401, 26.271989751246682],
[32.11293482132401, 26.26952685696891],
[32.064869635777136, 26.32616019793225],
[31.955006354527136, 26.347082906925653],
[31.847889655308386, 26.430735889605177],
[31.834156745152136, 26.538902616857044],
[31.80806421585526, 26.60277144552728],
[31.73939966507401, 26.673967709938815],
[31.642302362549017, 26.74732315964541],
[31.568144647705267, 26.81597793946543],
[31.526945917236517, 26.926228880196014],
[31.450041620361517, 27.036372174448392],
[31.364897577392767, 27.139075195342695],
[31.282500116455267, 27.229473563065184],
[31.222075311767767, 27.322238795625573],
[31.005095331299017, 27.190391366563844],
[31.131438104736517, 27.158626993783113],
[31.320952264892767, 26.820880262909082],
[31.400603143799017, 26.656537153532437],
[31.603850214111517, 26.538653045048534],
[31.699980585205267, 26.37390380844428],
[31.873015253174017, 26.186739390838653],
[32.11471447192402, 25.99680516762266],
[32.26577648364277, 25.964707962547703],
[32.38662609301777, 25.999273820396663],
[32.55416759692402, 26.07824330025821],
[32.66403087817402, 26.117708084589776],
[32.73544201098652, 26.060973271377915],
[32.68600353442402, 25.93013194684062],
[32.65304455004902, 25.79419944405814],
[32.50747570239277, 25.69524140041969],
[32.41134533129902, 25.643255464735883],
[32.40310558520527, 25.546650081172565]]]);
Map.setCenter(32.664556531001715, 26.141068447394655, 10);
var polygonVisParams = {
color: 'FF0000', // Fill color
opacity: 0.05 // Opacity (0.0 for completely transparent, 1.0 for completely opaque)
};
// Dry Months Multi-Temporal Principal Component Analysis
// Load a Sentinel-2