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. Se non hai eseguito la verifica entro il 26 settembre 2025, il tuo accesso potrebbe essere sospeso.
Invia feedback
ee.FeatureCollection.kriging
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce i risultati del campionamento di uno stimatore di Kriging in ogni pixel.
Utilizzo Resi FeatureCollection. kriging (propertyName, shape, range, sill, nugget, maxDistance , reducer )
Immagine
Argomento Tipo Dettagli questo: collection
FeatureCollection Raccolta di caratteristiche da utilizzare come dati di origine per la stima. propertyName
Stringa Proprietà da stimare (deve essere numerica). shape
Stringa Forma del semivariogramma (uno tra {exponential, gaussian, spherical}). range
Float Intervallo del semivariogramma, in metri. sill
Float Soglia del semivariogramma. nugget
Float Effetto nugget del semivariogramma. maxDistance
Float, valore predefinito: null Raggio che determina quali caratteristiche sono incluse nel calcolo di ogni pixel, in metri. Il valore predefinito è l'intervallo del semivariogramma. reducer
Riduttore, valore predefinito: null Riduttore utilizzato per comprimere il valore "propertyName" dei punti sovrapposti in un unico valore.
Esempi
Editor di codice (JavaScript)
/**
* This example generates an interpolated surface using kriging from a
* FeatureCollection of random points that simulates a table of air temperature
* at ocean weather buoys.
*/
// Average air temperature at 2m height for June, 2020.
var img = ee . Image ( 'ECMWF/ERA5/MONTHLY/202006' )
. select ([ 'mean_2m_air_temperature' ], [ 'tmean' ]);
// Region of interest: South Pacific Ocean.
var roi = ee . Geometry . Polygon (
[[[ - 156.053 , - 16.240 ],
[ - 156.053 , - 44.968 ],
[ - 118.633 , - 44.968 ],
[ - 118.633 , - 16.240 ]]], null , false );
// Sample the mean June 2020 temperature surface at random points in the ROI.
var tmeanFc = img . sample (
{ region : roi , scale : 25000 , numPixels : 50 , geometries : true }); //250
// Generate an interpolated surface from the points using kriging; parameters
// are set according to interpretation of an unshown semivariogram. See section
// 2.1 of https://doi.org/10.14214/sf.369 for information on semivariograms.
var tmeanImg = tmeanFc . kriging ({
propertyName : 'tmean' ,
shape : 'gaussian' ,
range : 2.8e6 ,
sill : 164 ,
nugget : 0.05 ,
maxDistance : 1.8e6 ,
reducer : ee . Reducer . mean ()
});
// Display the results on the map.
Map . setCenter ( - 137.47 , - 30.47 , 3 );
Map . addLayer ( tmeanImg , { min : 279 , max : 300 }, 'Temperature (K)' );
Configurazione di Python
Consulta la pagina
Ambiente Python per informazioni sull'API Python e sull'utilizzo di
geemap
per lo sviluppo interattivo.
import ee
import geemap.core as geemap
Colab (Python)
# This example generates an interpolated surface using kriging from a
# FeatureCollection of random points that simulates a table of air temperature
# at ocean weather buoys.
# Average air temperature at 2m height for June, 2020.
img = ee . Image ( 'ECMWF/ERA5/MONTHLY/202006' ) . select (
[ 'mean_2m_air_temperature' ], [ 'tmean' ]
)
# Region of interest: South Pacific Ocean.
roi = ee . Geometry . Polygon (
[[
[ - 156.053 , - 16.240 ],
[ - 156.053 , - 44.968 ],
[ - 118.633 , - 44.968 ],
[ - 118.633 , - 16.240 ],
]],
None ,
False ,
)
# Sample the mean June 2020 temperature surface at random points in the ROI.
tmean_fc = img . sample ( region = roi , scale = 25000 , numPixels = 50 , geometries = True )
# Generate an interpolated surface from the points using kriging parameters
# are set according to interpretation of an unshown semivariogram. See section
# 2.1 of https://doi.org/10.14214/sf.369 for information on semivariograms.
tmean_img = tmean_fc . kriging (
propertyName = 'tmean' ,
shape = 'gaussian' ,
range = 2.8e6 ,
sill = 164 ,
nugget = 0.05 ,
maxDistance = 1.8e6 ,
reducer = ee . Reducer . mean (),
)
# Display the results on the map.
m = geemap . Map ()
m . set_center ( - 137.47 , - 30.47 , 3 )
m . add_layer (
tmean_img ,
{ 'min' : 279 , 'max' : 300 , 'min' : 279 , 'max' : 300 },
'Temperature (K)' ,
)
m
Invia feedback
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.
Vuoi dirci altro?
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-26 UTC."],[],["The `kriging` method interpolates a surface from a `FeatureCollection` by sampling a Kriging estimator at each pixel, returning an `Image`. Key parameters include: `propertyName` (numeric property to estimate), `shape` (semivariogram shape), `range`, `sill`, and `nugget` (semivariogram values). `maxDistance` limits feature inclusion in pixel calculations. An optional `reducer` handles overlapping points. Example demonstrates creating a temperature surface from sampled points, setting Kriging parameters, and visualizing the result.\n"]]