64
64
# hard-coded STAC templates
65
65
#TODO:Modify cur_cwd to adapt to your computer.
66
66
CUR_CWD = pathlib .Path .cwd ()
67
- STAC_DIR = CUR_CWD / "STAC/data/current"
67
+ STAC_DIR = CUR_CWD / "global-coastal-atlas/ STAC/data/current"
68
68
# STAC_DIR = r"D:\Projects\STAC\Repositories\global-coastal-atlas\STAC\data\current"
69
69
70
70
# hard-coded input params which differ per dataset
117
117
def create_collection (
118
118
description : str | None = None , extra_fields : dict [str , Any ] | None = None
119
119
) -> pystac .Collection :
120
+
120
121
providers = [
121
122
pystac .Provider (
122
123
name = "Deltares" ,
@@ -135,7 +136,7 @@ def create_collection(
135
136
),
136
137
]
137
138
138
- start_datetime = datetime .datetime (2024 , 1 , 18 , tzinfo = datetime .timezone .utc )
139
+ start_datetime = datetime .datetime (2024 , 7 , 16 , tzinfo = datetime .timezone .utc )
139
140
140
141
extent = pystac .Extent (
141
142
pystac .SpatialExtent ([[0 , 299900 , 280000 , 624900 ]]),
@@ -224,7 +225,7 @@ def create_collection(
224
225
225
226
# %%
226
227
def create_item (block , item_id , antimeridian_strategy = antimeridian .Strategy .SPLIT ):
227
- dst_crs = rasterio .crs .CRS .from_epsg (4326 )
228
+ dst_crs = rasterio .crs .CRS .from_epsg (28992 )
228
229
229
230
# when the data spans a range, it's common practice to use the middle time as the datetime provided
230
231
# in the STAC item. So then you have to infer the start_datetime, end_datetime and get the middle
0 commit comments