Skip to content

Instantly share code, notes, and snippets.

@abyadazad
abyadazad / linear-regression.ipynb
Created October 20, 2024 10:02
Linear Regression.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abyadazad
abyadazad / Flood Inundation Mapping
Last active October 20, 2024 09:28
Flood Inundation Mapping with SAR Data from Google Earth Engine
var dt = Assam.filter(ee.Filter.eq('Name', 'MARIGAON'));
Map.addLayer(dt);
Map.centerObject(dt);
var collection = ee.ImageCollection('COPERNICUS/S1_GRD')
.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))
.filter(ee.Filter.eq('instrumentMode', 'IW'))
.filter(ee.Filter.or(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'), ee.Filter.eq('orbitProperties_pass',
'ASCENDING')));
//Filtering Images for Before and After the Flood and Creating mosaic images
var before = collection.filter(ee.Filter.date('2016-03-01', '2016-04-10')).filterBounds(dt);
@abyadazad
abyadazad / Sentinel 2 Imagery.txt
Last active October 20, 2024 09:53
Script to download Sentinel 2 Imagery
var data = ee.ImageCollection("COPERNICUS/S2_SR")
var image = data.filterDate('2021-01-01','2021-01-20')
var dataset = image.filterBounds(roi).select(['B2','B3','B4','B5']).first(dataset);
print(dataset);
Map.addLayer(dataset);
Export.image.toDrive({
image: dataset,
description: 'Sentinel',
scale: 10,
region:roi,
@abyadazad
abyadazad / Daily-streamflow.ipynb
Last active October 19, 2024 17:16
Daily Streamflow from USGS NWIS.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.