Professional Documents
Culture Documents
Laporan Praktikum M7 - SPJ - Affina Dyan S
Laporan Praktikum M7 - SPJ - Affina Dyan S
21/489570/PTK/14292
LAPORAN
PRAKTIKUM
Sistem Penginderaan Jauh
B. Tujuan
Dapat melakukan analisis meliputi:
a) The Earth Engine API - NDVI, Mapping a Function over a Collection, Quality
Mosaicking
b) Machine Learning – Supervised Classification Algorithms
- SVM
- RandomForest
c) Machine Learning – Unsupervised Classification Algorithms
- K-Means
E. Langkah Kerja
1) The Earth Engine API - NDVI, Mapping a Function over a Collection, Quality
Mosaicking – Melakukan perhitungan dan visualisasi NDVI
1. Meng-import citra yang akan digunakan untuk perhitungan NDVI, yaitu
Landsat 8 TOA di Kota Padang
Pada tahap ini didefinisikan lokasi yang akan dijadikan area studi, bisa
menggunakan bantuan marker untuk memperoleh koordinat titik.
Titik ini akan digunakan oleh GEE untuk mencari koleksi citra yang ada
pada area tersebut. Selain pendefinisian lokasi/location bounds,
perlu diatur juga waktu perekaman datanya/time bounds. Waktu
perekaman dipakai yang terbaru, yaitu dari tahun 2021 ke atas.
// Get the values for all pixels in each polygon in the training.
var training = image.sampleRegions({
// Get the sample from the polygons FeatureCollection.
collection: polygons,
// Keep this list of properties from the polygons.
properties: ['class'],
// Set the scale to get Landsat pixels in the polygons.
scale: 30
});
'REFLECTANCE_MULT_BAND_.|TEMPERATURE_MULT_BAND_ST_B10']);
var offsetImg = getFactorImg([
'REFLECTANCE_ADD_BAND_.|TEMPERATURE_ADD_BAND_ST_B10']);
var scaled =
image.select('SR_B.|ST_B10').multiply(scaleImg).add(offsetImg);
// Get the values for all pixels in each polygon in the training.
var training = image.sampleRegions({
// Get the sample from the polygons FeatureCollection.
collection: polygons,
// Keep this list of properties from the polygons.
properties: ['class'],
// Set the scale to get Landsat pixels in the polygons.
scale: 30
});
// Define a function that scales and masks Landsat 8 surface reflectance images.
function prepSrL8(image) {
// Develop masks for unwanted pixels (fill, cloud, cloud shadow).
var qaMask = image.select('QA_PIXEL').bitwiseAnd(parseInt('11111', 2)).eq(0);
var saturationMask = image.select('QA_RADSAT').eq(0);
// Sample the input with a different random seed to get validation data.
var validation = input.addBands(modis).sample({
region: roi,
numPixels: 5000,
seed: 1
// Filter the result to get rid of any null pixels.
}).filter(ee.Filter.notNull(input.bandNames()));
Pembahasan:
G. Kesimpulan
Proses klasifikasi dapat dibedakan menjadi 2, yaitu terbimbing (supervised)
dan tidak terbimbing (unsupervised). Klasifikasi terbimbing mensyaratkan
Daftar Pustaka