Catalog Example¶
In [1]:
Copied!
# !pip install gee_zonal
# !pip install gee_zonal
If it's the first time running, Authenticate GEE.
Make sure you assign a Cloud Project
In [ ]:
Copied!
# ee.Authenticate(auth_mode='notebook')
# ee.Authenticate(auth_mode='notebook')
In [1]:
Copied!
from gee_zonal import Catalog
from gee_zonal import Catalog
In [2]:
Copied!
cat = Catalog()
cat = Catalog()
Access the Earth Engine data catalog through Catalog.datasets
In [3]:
Copied!
cat.datasets.head()
cat.datasets.head()
Out[3]:
id | provider | title | start_date | end_date | startyear | endyear | type | tags | asset_url | thumbnail_url | |
---|---|---|---|---|---|---|---|---|---|---|---|
0 | AAFC/ACI | Agriculture and Agri-Food Canada | Canada AAFC Annual Crop Inventory | 2009-01-01 | 2020-01-01 | 2009 | 2020 | image_collection | [aafc, canada, crop, landcover] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
1 | ACA/reef_habitat/v1_0 | Allen Coral Atlas Partnership (ACA) | Allen Coral Atlas (ACA) - Geomorphic Zonation ... | 2018-01-01 | 2021-01-01 | 2018 | 2021 | image | [coral, ocean, planet_derived, reef, seagrass,... | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
2 | ACA/reef_habitat/v2_0 | Allen Coral Atlas Partnership (ACA) | Allen Coral Atlas (ACA) - Geomorphic Zonation ... | 2018-01-01 | 2021-01-01 | 2018 | 2021 | image | [coral, ocean, planet_derived, reef, seagrass,... | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
3 | AHN/AHN2_05M_INT | AHN | AHN Netherlands 0.5m DEM, Interpolated | 2012-01-01 | 2012-01-01 | 2012 | 2012 | image | [ahn, dem, elevation, geophysical, lidar, neth... | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
4 | AHN/AHN2_05M_NON | AHN | AHN Netherlands 0.5m DEM, Non-Interpolated | 2012-01-01 | 2012-01-01 | 2012 | 2012 | image | [ahn, dem, elevation, geophysical, lidar, neth... | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
The Catalog object also has search functionality. Search functions return a new catalog of datasets that matched the search parameters.
In [4]:
Copied!
results = cat.search_tags("ndvi")
results = cat.search_tags("ndvi")
In [5]:
Copied!
print(results)
print(results)
251 Landsat 8 Collection 1 Tier 1 8-Day NDVI Compo... 259 Landsat 8 Collection 1 Tier 1 32-Day NDVI Comp... 268 Landsat 8 Collection 1 Tier 1 Annual NDVI Comp... 292 Landsat 8 8-Day NDVI Composite [deprecated] 300 Landsat 8 32-Day NDVI Composite [deprecated] 309 Landsat 8 Annual NDVI Composite [deprecated] 326 Landsat 7 Collection 1 Tier 1 8-Day NDVI Compo... 334 Landsat 7 Collection 1 Tier 1 32-Day NDVI Comp... 343 Landsat 7 Collection 1 Tier 1 Annual NDVI Comp... 367 Landsat 7 8-Day NDVI Composite [deprecated] 375 Landsat 7 32-Day NDVI Composite [deprecated] 384 Landsat 7 Annual NDVI Composite [deprecated] 431 Landsat 4 TM Collection 1 Tier 1 8-Day NDVI Co... 439 Landsat 4 TM Collection 1 Tier 1 32-Day NDVI C... 448 Landsat 4 TM Collection 1 Tier 1 Annual NDVI C... 468 Landsat 4 TM 8-Day NDVI Composite [deprecated] 476 Landsat 4 TM 32-Day NDVI Composite [deprecated] 485 Landsat 4 TM Annual NDVI Composite [deprecated] 496 Landsat 5 TM Collection 1 Tier 1 8-Day NDVI Co... 504 Landsat 5 TM Collection 1 Tier 1 32-Day NDVI C... 513 Landsat 5 TM Collection 1 Tier 1 Annual NDVI C... 533 Landsat 5 TM 8-Day NDVI Composite [deprecated] 541 Landsat 5 TM 32-Day NDVI Composite [deprecated] 550 Landsat 5 TM Annual NDVI Composite [deprecated] 588 MOD13A1.006 Terra Vegetation Indices 16-Day Gl... 589 MOD13A2.006 Terra Vegetation Indices 16-Day Gl... 590 MOD13Q1.006 Terra Vegetation Indices 16-Day Gl... 609 MYD13A1.006 Aqua Vegetation Indices 16-Day Glo... 610 MYD13A2.006 Aqua Vegetation Indices 16-Day Glo... 611 MYD13Q1.006 Aqua Vegetation Indices 16-Day Glo... 638 MOD13A1.061 Terra Vegetation Indices 16-Day Gl... 639 MOD13A2.061 Terra Vegetation Indices 16-Day Gl... 640 MOD13Q1.061 Terra Vegetation Indices 16-Day Gl... 657 MYD13A1.061 Aqua Vegetation Indices 16-Day Glo... 658 MYD13A2.061 Aqua Vegetation Indices 16-Day Glo... 659 MYD13Q1.061 Aqua Vegetation Indices 16-Day Glo... 675 MODIS Combined 16-Day NDVI 680 MODIS Combined 16-Day NDVI [deprecated] 687 MODIS Terra Daily NDVI 692 MODIS Terra Daily NDVI [deprecated] 699 MOD13A1.005 Vegetation Indices 16-Day L3 Globa... 700 MOD13Q1.005 Vegetation Indices 16-Day Global 2... 707 MODIS Aqua Daily NDVI 712 MODIS Aqua Daily NDVI [deprecated] 719 MYD13A1.005 Vegetation Indices 16-Day L3 Globa... 720 MYD13Q1.005 Vegetation Indices 16-Day Global 2... 722 AG100: ASTER Global Emissivity Dataset 100-met... 727 GIMMS NDVI From AVHRR Sensors (3rd Generation) 768 NOAA CDR AVHRR NDVI: Normalized Difference Veg... 769 NOAA CDR AVHRR NDVI: Normalized Difference Veg... 807 VNP13A1: VIIRS Vegetation Indices 16-Day 500m 811 VNP22Q2: Land Surface Phenology Yearly L3 Glob...
In [6]:
Copied!
results = results.search_by_year(1995)
results = results.search_by_year(1995)
In [7]:
Copied!
print(results)
print(results)
496 Landsat 5 TM Collection 1 Tier 1 8-Day NDVI Co... 504 Landsat 5 TM Collection 1 Tier 1 32-Day NDVI C... 513 Landsat 5 TM Collection 1 Tier 1 Annual NDVI C... 533 Landsat 5 TM 8-Day NDVI Composite [deprecated] 541 Landsat 5 TM 32-Day NDVI Composite [deprecated] 550 Landsat 5 TM Annual NDVI Composite [deprecated] 727 GIMMS NDVI From AVHRR Sensors (3rd Generation) 768 NOAA CDR AVHRR NDVI: Normalized Difference Veg... 769 NOAA CDR AVHRR NDVI: Normalized Difference Veg...
In [8]:
Copied!
results = results.search_title("landsat")
results = results.search_title("landsat")
In [9]:
Copied!
results.datasets
results.datasets
Out[9]:
id | provider | title | start_date | end_date | startyear | endyear | type | tags | asset_url | thumbnail_url | |
---|---|---|---|---|---|---|---|---|---|---|---|
496 | LANDSAT/LT05/C01/T1_8DAY_NDVI | Landsat 5 TM Collection 1 Tier 1 8-Day NDVI Co... | 1984-01-01 | 2012-04-30 | 1984 | 2012 | image_collection | [landsat, ndvi, usgs] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... | |
504 | LANDSAT/LT05/C01/T1_32DAY_NDVI | Landsat 5 TM Collection 1 Tier 1 32-Day NDVI C... | 1984-01-01 | 2012-04-06 | 1984 | 2012 | image_collection | [landsat, ndvi, usgs] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... | |
513 | LANDSAT/LT05/C01/T1_ANNUAL_NDVI | Landsat 5 TM Collection 1 Tier 1 Annual NDVI C... | 1984-01-01 | 2012-01-01 | 1984 | 2012 | image_collection | [landsat, ndvi, usgs] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... | |
533 | LANDSAT/LT5_L1T_8DAY_NDVI | USGS | Landsat 5 TM 8-Day NDVI Composite [deprecated] | 1984-01-01 | 2012-04-30 | 1984 | 2012 | image_collection | [landsat, ndvi, usgs] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
541 | LANDSAT/LT5_L1T_32DAY_NDVI | USGS | Landsat 5 TM 32-Day NDVI Composite [deprecated] | 1984-01-01 | 2012-04-06 | 1984 | 2012 | image_collection | [landsat, ndvi, usgs] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |
550 | LANDSAT/LT5_L1T_ANNUAL_NDVI | USGS | Landsat 5 TM Annual NDVI Composite [deprecated] | 1984-01-01 | 2012-01-01 | 1984 | 2012 | image_collection | [landsat, ndvi, usgs] | https://developers.google.com/earth-engine/dat... | https://developers.google.com/earth-engine/dat... |