-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_script.py
More file actions
20 lines (15 loc) · 809 Bytes
/
Copy pathexample_script.py
File metadata and controls
20 lines (15 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ------ 1. Login to GEE -------
import ee
ee.Authenticate()
ee.Initialize(project="example_project")
# ------ 2. Install tidalflat_classifier ------
from tidalflat_classifier.download_classifier import *
from tidalflat_classifier.run_classifier import *
# ------ 3. Download Tidal Flat Classifier -------
classifier = download_classifier()
# ------- 4. Run Classifier ----------
result = run_classifier(path_to_aoi="/home/your_amazing_area_of_interest.geojson", # define your aoi
start_year="2016", end_year="2019", classifier=classifier) # define your needed time, always use three-year-intervalls
# ------ 5. Download results ----------
url = result.getDownloadURL({'scale': 30,'fileFormat': 'GeoTIFF'})
print(url) # just copy URL to browser and download results (in EPSG:4326)