-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bde2ef
commit 0cf40db
Showing
3 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
22 changes: 11 additions & 11 deletions
22
code/end_to_end_gee/01-Earth-Engine-Basics/03c_Filtering_Image_Collection_(exercise)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// Add one more filter in the script below to select images | ||
// from only one of the satellites - Sentinel-2A - from the | ||
// Sentinel-2 constellation | ||
|
||
// Hint1: Use the 'SPACECRAFT_NAME' property | ||
// Hint2: Use the ee.Filter.eq() filter | ||
|
||
var geometry = ee.Geometry.Point([77.60412933051538, 12.952912912328241]); | ||
Map.centerObject(geometry, 10); | ||
|
||
var s2 = ee.ImageCollection('COPERNICUS/S2_HARMONIZED'); | ||
|
||
var filtered = s2.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 30)) | ||
var filtered = s2 | ||
.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 30)) | ||
.filter(ee.Filter.date('2019-01-01', '2020-01-01')) | ||
.filter(ee.Filter.bounds(geometry)); | ||
// Remove this comment and add a filter here | ||
|
||
|
||
print(filtered.size()); | ||
|
||
// Exercise | ||
// Delete the 'geometry' variable | ||
// Add a point at your chosen location | ||
// Change the filter to find images from January 2023 | ||
|
||
// Note: If you are in a very cloudy region, | ||
// make sure to adjust the CLOUDY_PIXEL_PERCENTAGE |
22 changes: 11 additions & 11 deletions
22
docs/code/end_to_end_gee/01-Earth-Engine-Basics/03c_Filtering_Image_Collection_(exercise)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// Add one more filter in the script below to select images | ||
// from only one of the satellites - Sentinel-2A - from the | ||
// Sentinel-2 constellation | ||
|
||
// Hint1: Use the 'SPACECRAFT_NAME' property | ||
// Hint2: Use the ee.Filter.eq() filter | ||
|
||
var geometry = ee.Geometry.Point([77.60412933051538, 12.952912912328241]); | ||
Map.centerObject(geometry, 10); | ||
|
||
var s2 = ee.ImageCollection('COPERNICUS/S2_HARMONIZED'); | ||
|
||
var filtered = s2.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 30)) | ||
var filtered = s2 | ||
.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 30)) | ||
.filter(ee.Filter.date('2019-01-01', '2020-01-01')) | ||
.filter(ee.Filter.bounds(geometry)); | ||
// Remove this comment and add a filter here | ||
|
||
|
||
print(filtered.size()); | ||
|
||
// Exercise | ||
// Delete the 'geometry' variable | ||
// Add a point at your chosen location | ||
// Change the filter to find images from January 2023 | ||
|
||
// Note: If you are in a very cloudy region, | ||
// make sure to adjust the CLOUDY_PIXEL_PERCENTAGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters