Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ee.Image.reduceResolution
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Consente la riproiezione utilizzando il riduttore specificato per combinare tutti i pixel di input corrispondenti a ciascun pixel di output. Se il riduttore ha un solo input, viene applicato separatamente a ogni banda della raccolta; in caso contrario, deve avere lo stesso numero di input delle bande dell'immagine di input.
I nomi degli output del riduttore determinano i nomi delle bande di output: i riduttori con più input utilizzeranno direttamente i nomi degli output, i riduttori con un singolo input e un singolo output manterranno i nomi delle bande di input e i riduttori con un singolo input e più output anteporranno il nome della banda di input al nome dell'output (ad es. '10_mean', '10_stdDev', '20_mean', '20_stdDev').
I pesi di input del riduttore saranno il prodotto della maschera di input e della frazione del pixel di output coperta dal pixel di input.
Utilizzo | Resi |
---|
Image.reduceResolution(reducer, bestEffort, maxPixels) | Immagine |
Argomento | Tipo | Dettagli |
---|
questo: image | Immagine | L'immagine di input. |
reducer | Riduttore | Il riduttore da applicare da utilizzare per combinare i pixel. |
bestEffort | Booleano, valore predefinito: false | Se l'utilizzo dell'input alla risoluzione predefinita richiederebbe troppi pixel, inizia con i pixel di input già ridotti da un livello della piramide che consenta l'operazione. |
maxPixels | Numero intero, valore predefinito: 64 | Il numero massimo di pixel di input da combinare per ogni pixel di output. Se imposti un valore troppo elevato, si verificheranno problemi di memoria insufficiente. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eThis operation reprojects images using a reducer to combine input pixels for each output pixel, applying it per band or across bands based on reducer input.\u003c/p\u003e\n"],["\u003cp\u003eOutput band names are determined by the reducer's output names, sometimes preserving, prefixing, or directly using them.\u003c/p\u003e\n"],["\u003cp\u003eInput pixel weights are calculated using input mask and fractional output pixel coverage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereduceResolution\u003c/code\u003e method takes an image, reducer, and optional parameters for handling large operations, returning a reprojected image.\u003c/p\u003e\n"],["\u003cp\u003eOptional parameters \u003ccode\u003ebestEffort\u003c/code\u003e and \u003ccode\u003emaxPixels\u003c/code\u003e control memory usage and allow for processing large images by adjusting input resolution and pixel combination limits.\u003c/p\u003e\n"]]],[],null,["# ee.Image.reduceResolution\n\nEnables reprojection using the given reducer to combine all input pixels corresponding to each output pixel. If the reducer has a single input, it will be applied separately to each band of the collection; otherwise it must have the same number of inputs as the input image has bands.\n\n\u003cbr /\u003e\n\nThe reducer output names determine the names of the output bands: reducers with multiple inputs will use the output names directly, reducers with a single input and single output will preserve the input band names, and reducers with a single input and multiple outputs will prefix the output name with the input band name (e.g., '10_mean', '10_stdDev', '20_mean', '20_stdDev').\n\nReducer input weights will be the product of the input mask and the fraction of the output pixel covered by the input pixel.\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| Image.reduceResolution`(reducer, `*bestEffort* `, `*maxPixels*`)` | Image |\n\n| Argument | Type | Details |\n|---------------|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The input image. |\n| `reducer` | Reducer | The reducer to apply to be used for combining pixels. |\n| `bestEffort` | Boolean, default: false | If using the input at its default resolution would require too many pixels, start with already-reduced input pixels from a pyramid level that allows the operation to succeed. |\n| `maxPixels` | Integer, default: 64 | The maximum number of input pixels to combine for each output pixel. Setting this too large will cause out-of-memory problems. |"]]