From 1aa6969e09a0455d4cff26df93869e74e901cc23 Mon Sep 17 00:00:00 2001 From: EtienneKras <62947009+EtienneKras@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:49:10 +0200 Subject: [PATCH] additions to make the STAC work --- STAC/data/current/catalog.json | 12 - STAC/data/current/catalog2.json | 299 ------------------- STAC/data/scripts/SOTC/stac_to_cloud_sotc.py | 6 +- 3 files changed, 4 insertions(+), 313 deletions(-) delete mode 100644 STAC/data/current/catalog2.json diff --git a/STAC/data/current/catalog.json b/STAC/data/current/catalog.json index d29ab707c..78d5a6a7f 100644 --- a/STAC/data/current/catalog.json +++ b/STAC/data/current/catalog.json @@ -28,18 +28,6 @@ "type": "application/json", "title": "The Shoreline Monitor" }, - { - "rel": "child", - "href": "./world_pop/collection.json", - "type": "application/json", - "title": "World Population" - }, - { - "rel": "child", - "href": "./world_gdp/collection.json", - "type": "application/json", - "title": "World Gridded GDP" - }, { "rel": "child", "href": "./shore_mon_hr/collection.json", diff --git a/STAC/data/current/catalog2.json b/STAC/data/current/catalog2.json deleted file mode 100644 index c72d860d5..000000000 --- a/STAC/data/current/catalog2.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "type": "Catalog", - "id": "gca-catalog", - "stac_version": "1.0.0", - "description": "GlobalCoastalAtlas Catalog", - "links": [ - { - "rel": "root", - "href": "./catalog.json", - "type": "application/json", - "title": "GlobalCoastalAtlas STAC Catalog" - }, - { - "rel": "child", - "href": "./shore_mon_fut/collection.json", - "type": "application/json", - "title": "The Shoreline Monitor Future Projections" - }, - { - "rel": "child", - "href": "./sed_class/collection.json", - "type": "application/json", - "title": "Beach Sediment Classification" - }, - { - "rel": "child", - "href": "./shore_mon/collection.json", - "type": "application/json", - "title": "The Shoreline Monitor" - }, - { - "rel": "child", - "href": "./world_pop/collection.json", - "type": "application/json", - "title": "World Population" - }, - { - "rel": "child", - "href": "./world_gdp/collection.json", - "type": "application/json", - "title": "World Gridded GDP" - }, - { - "rel": "child", - "href": "./shore_mon_hr/collection.json", - "type": "application/json", - "title": "The Shoreline Monitor High Resolution" - }, - { - "rel": "child", - "href": "./shore_mon_drivers/collection.json", - "type": "application/json", - "title": "The Shoreline Monitor Drivers" - }, - { - "rel": "child", - "href": "./esl_gwl/collection.json", - "type": "application/json", - "title": "ESL by GWL" - }, - { - "rel": "child", - "href": "./sub_threat/collection.json", - "type": "application/json", - "title": "Land Subsidence Threat" - }, - { - "rel": "child", - "href": "./Exp_world_pop/collection.json", - "type": "application/json", - "title": "World Pop" - }, - { - "rel": "child", - "href": "./Exp_world_pop_parquet/collection.json", - "type": "application/json", - "title": "World Pop" - }, - { - "rel": "child", - "href": "./Haz-ESL/collection.json", - "type": "application/json", - "title": "Extreme Sea Level Projections" - }, - { - "rel": "child", - "href": "./Vul-Inf_Mort/collection.json", - "type": "application/json", - "title": "Infant Mortality Rate Indicator" - }, - { - "rel": "child", - "href": "./Exp-NS_Slopes/collection.json", - "type": "application/json", - "title": "Global Distribution of Nearshore Slopes" - }, - { - "rel": "child", - "href": "./Vul_MYS/collection.json", - "type": "application/json", - "title": "Mean Years of Schooling" - }, - { - "rel": "child", - "href": "./Vul_RS/collection.json", - "type": "application/json", - "title": "Recent Shocks" - }, - { - "rel": "child", - "href": "./Vul-GDP_Cap/collection.json", - "type": "application/json", - "title": "GDP per Capita" - }, - { - "rel": "child", - "href": "./Haz-Land_Sub_2010_COGs/collection.json", - "type": "application/json", - "title": "Potential Global Subsidence (2010)" - }, - { - "rel": "child", - "href": "./Haz-Land_Sub_2040_COGs/collection.json", - "type": "application/json", - "title": "Potential Global Subsidence (2040)" - }, - { - "rel": "child", - "href": "./Vul-Roads_Density_COGs/collection.json", - "type": "application/json", - "title": "Total Roads Density (GRIP4)" - }, - { - "rel": "child", - "href": "./Exp-Delta_DEM_COGs/collection.json", - "type": "application/json", - "title": "DeltaDTM: A global coastal digital terrain model" - }, - { - "rel": "child", - "href": "./Haz-ERA5_93-23/collection.json", - "type": "application/json", - "title": "ERA5 Significant Height of Combined Wind Waves and Swell" - }, - { - "rel": "child", - "href": "./Vul_World_Protected_Areas/collection.json", - "type": "application/json", - "title": "The World Database on Protected Areas (WDPA) and World Database on Other Effective Area-based Conservation Measures (WD-OECM)" - }, - { - "rel": "child", - "href": "./Haz-MRI-ESM2-0_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-MPI-ESM1-2-LR_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-KIOST-ESM_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-IPSL-CM6A-LR_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-CMCC-CM2-SR5_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-AWI-CM-1-1-MR_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-EC-EARTH3_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-ACCESS-CM2_Hind_93-14/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 1993-2014" - }, - { - "rel": "child", - "href": "./Haz-MRI-ESM2-0_Projected_71-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2071-2100 " - }, - { - "rel": "child", - "href": "./Haz-MPI-ESM1-2-LR_Projected_71-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2071-2100 " - }, - { - "rel": "child", - "href": "./Haz-KIOST-ESM_Projected_71-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2071-2100 " - }, - { - "rel": "child", - "href": "./Haz-IPSL-CM6A-LR_Projected_71-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2071-2100 " - }, - { - "rel": "child", - "href": "./Haz-CMCC-CM2-SR5_Projected_71-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2071-2100 " - }, - { - "rel": "child", - "href": "./Haz-AWI-CM-1-1-MR_Projected_71-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2071-2100 " - }, - { - "rel": "child", - "href": "./Haz-EC-EARTH3_Projected_40-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2040-2100 " - }, - { - "rel": "child", - "href": "./Haz-ACCESS-CM2_Projected_40-100/collection.json", - "type": "application/json", - "title": "Significant Height of Combined Wind Waves and Swell 2040-2100 " - }, - { - "rel": "child", - "href": "./Haz-Hs_Meucci_2100/collection.json", - "type": "application/json", - "title": "Projected 21st Century Changes in Extreme Wind-Wave Events" - }, - { - "rel": "child", - "href": "./Haz-TC_CAT3_RP/collection.json", - "type": "application/json", - "title": "TCWISE 1000year Generated category 3 Tropical cyclone wind maps Present and future" - } - ], - "assets": { - "metadata": { - "href": "https://www.deltares.nl/", - "type": "application/html", - "title": "Deltares Website", - "description": "Deltares Website", - "roles": [ - "metadata" - ] - } - }, - "summaries": { - "keywords": [ - "GlobalCoastalAtlas", - "DeltaPortfolio" - ] - }, - "extent": { - "spatial": { - "bbox": [ - [ - -180, - -90, - 180, - 90 - ] - ] - }, - "temporal": { - "interval": [ - [ - "2015-10-22T00:00:00Z", - null - ] - ] - } - }, - "license": "various", - "title": "GlobalCoastalAtlas STAC Catalog" -} \ No newline at end of file diff --git a/STAC/data/scripts/SOTC/stac_to_cloud_sotc.py b/STAC/data/scripts/SOTC/stac_to_cloud_sotc.py index cd4d5b4a0..ae3226884 100644 --- a/STAC/data/scripts/SOTC/stac_to_cloud_sotc.py +++ b/STAC/data/scripts/SOTC/stac_to_cloud_sotc.py @@ -13,14 +13,16 @@ GCS_PROJECT = "DGDS - I1000482-002" BUCKET_NAME = "dgds-data-public" BUCKET_PROJ = "gca/SOTC" - STAC_NAME = "gca-stac_sotc" + STAC_NAME = "gca-sotc" IN_DIRNAME = "current" # hard-coded input params at project level coclico_data_dir = pathlib.Path(p_drive, "11207608-coclico", "FASTTRACK_DATA") # upload dir to gcs from local drive - source_dir_fp = str(pathlib.Path(__file__).parent.parent.parent.joinpath(IN_DIRNAME)) + source_dir_fp = str( + pathlib.Path(__file__).parent.parent.parent.joinpath(IN_DIRNAME) + ) # source_dir_fp=r"C:\Users\rowe\Documents\GitHub\global-coastal-atlas\STAC\data\current" # load google credentials