https://github.com/webandras/gee_s1_sar_wetlands
Supplementary Material to my Remote Sensing publication 'Sentinel-1-Imagery-Based High-Resolution Water Cover Detection on Wetlands, Aided by Google Earth Engine'
https://github.com/webandras/gee_s1_sar_wetlands
api c-sar google-earth-engine googleearthengine javascript remote-sensing scientific-publications sentinel-1 synthetic-aperture-radar
Last synced: 20 days ago
JSON representation
Supplementary Material to my Remote Sensing publication 'Sentinel-1-Imagery-Based High-Resolution Water Cover Detection on Wetlands, Aided by Google Earth Engine'
- Host: GitHub
- URL: https://github.com/webandras/gee_s1_sar_wetlands
- Owner: webandras
- License: mit
- Created: 2020-05-10T19:22:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T23:32:54.000Z (about 5 years ago)
- Last Synced: 2025-04-01T13:04:53.291Z (2 months ago)
- Topics: api, c-sar, google-earth-engine, googleearthengine, javascript, remote-sensing, scientific-publications, sentinel-1, synthetic-aperture-radar
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 31
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gee_s1_sar_wetlands
Supplementary Material 1 to: [*Gulácsi, A.; Kovács, F. Sentinel-1-Imagery-Based High-Resolution Water Cover Detection on Wetlands, Aided by Google Earth Engine. 2020.*](https://www.mdpi.com/2072-4292/12/10/1614)Published in May 18, 2020
Gulácsi, A.; Kovács, F. Sentinel-1-Imagery-Based High-Resolution Water Cover Detection on Wetlands, Aided by Google Earth Engine. Remote Sens. 2020, 12, 1614. https://www.mdpi.com/2072-4292/12/10/1614
DOI: 10.3390/rs12101614This code is under MIT licence and can be used freely, but you need to credit me (András Gulácsi) as the author.
## Source code used for processing and downloading Sentinel-1 C-SAR data with Google Earth Engine
The following source code has a modular structure consisting of multiple files that are required in the main1 and main2 scripts. To make it work, duplicate the exact file structure in Google Earth Engine Code Editor as follows:
```raw
your_folder_name
│ main1
│ main2
├───process
│ classifier
│ exportData
│ inputDate
│ refinedLeeFilter
│
└───utils
chartClusters
dataFunctions
studyArea
```Change the path argument of the `require()` functions to your path. For example, change line 11 in `main1` script: replace the highlighted part to your Google username and `your_folder_name`.
```javascript
// Import date functions module
var date = require('users/gulandras90/inlandExcessWater:process/inputDate');
```Also change lines 14 and 17 in `main1` script. In `main2` script, change lines 24 and 27 (paths to your radar images saved in your Assets folder by the main1 script), and lines 33, 41, 44 and 47. In `process/inputDate`, change line 4.
## Why is the main script splitted into 2 parts (main1 and main2)?
> One way your algorithms get parallelized in Earth Engine is by splitting the inputs into tiles, running the same computation separately on each tile, then combining the results. As a consequence, all of the inputs necessary to compute an output tile have to fit into memory. [Read more about it.](https://developers.google.com/earth-engine/debugging#user-memory-limit-exceeded)
Unfortunately, the refined Lee filter uses arrays and they have to be loaded into memory all at once (in one tile). If the array is gigantic, the user memory limit will be exceeded and thereby will throw an error. Quota restrictions, like the memory limit per user, exist to ensure the availability of computing resources for the entire Earth Engine community.
## Links
[Open the scripts in Google Earth Engine app](https://code.earthengine.google.com/?accept_repo=users/gulandras90/inlandExcessWater)
*You only have reading rights.*