if (sits_run_examples()) {
# Retrieve the samples for Mato Grosso
# train an svm model
ml_model <- sits_train(samples_modis_ndvi, ml_method = sits_svm)
# classify the point
point_ndvi <- sits_select(point_mt_6bands, bands = "NDVI")
point_class <- sits_classify(
data = point_ndvi, ml_model = ml_model
)
plot(point_class)
}
Run the code above in your browser using DataLab