Skip to content

Commit c870cd1

Browse files
committed
hydromt fixes
1 parent 17359f3 commit c870cd1

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

docker/hydromt/Dockerfile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ RUN apt-get update && apt-get install -y \
1515

1616
COPY requirements.txt /hydromt/
1717

18-
# # Install GDAL Python bindings matching system GDAL version
19-
# RUN pip install GDAL==$(gdal-config --version)
20-
# Install requirements (GDAL already removed from requirements.txt)
21-
2218
RUN pip install -r /hydromt/requirements.txt
2319
#COPY all_basins.geojson /hydromt/
2420
# RUN git clone -b feature/stac_zarr_storage https://github.com/interTwin-eu/openeo-processes-dask.git
@@ -28,7 +24,6 @@ RUN pip install -r /hydromt/requirements.txt
2824
# RUN cd openeo-processes-dask && pip install .
2925
# RUN cd .
3026
# RUN pip uninstall -y pydantic && pip install pydantic==2.8.2 openeo_pg_parser_networkx==2024.10.0
31-
# clone commit https://gitlab.inf.unibz.it/earth_observation_public/raster-to-stac/-/commit/0df2519c93698314becedf230255b8ce6b5c29a9
3227

3328
RUN git clone https://gitlab.inf.unibz.it/earth_observation_public/raster-to-stac.git
3429
RUN cd raster-to-stac && git checkout 0df2519c93698314becedf230255b8ce6b5c29a9
@@ -41,17 +36,24 @@ RUN cd raster-to-stac && sed -i "s/SEMANTIC_VERSION/$R2S_VERSION/g" pyproject.to
4136
RUN pip install ./raster-to-stac
4237

4338
# INSTALL openeo-processes-dask and submodule
44-
RUN git clone -b feature/load_stac_odc https://github.com/interTwin-eu/openeo-processes-dask.git
39+
# RUN git clone -b feature/load_stac_odc https://github.com/interTwin-eu/openeo-processes-dask.git
40+
# RUN cd openeo-processes-dask/openeo_processes_dask/specs && \
41+
# git clone https://github.com/eodcgmbh/openeo-processes.git -b 2024.7.0
42+
# RUN cd .
43+
# RUN cd openeo-processes-dask && pip install .
44+
# RUN cd .
45+
46+
# INSTALL openeo-processes-dask and submodule
47+
RUN git clone https://github.com/interTwin-eu/openeo-processes-dask.git
4548
RUN cd openeo-processes-dask/openeo_processes_dask/specs && \
4649
git clone https://github.com/eodcgmbh/openeo-processes.git -b 2024.7.0
4750
RUN cd .
4851
RUN cd openeo-processes-dask && pip install .
4952
RUN cd .
5053

51-
# RUN pip install pystac==1.14.0
54+
# RUN pip uninstall -y pydantic && pip install pydantic==2.8.2 openeo_pg_parser_networkx==2024.10.0
5255

53-
# overwrite the xarray installation with a later version
54-
RUN pip install xarray==2024.10.0
56+
RUN pip install pystac==1.14.0
5557

5658
##################### HydroMT Components setup #####################
5759

docker/hydromt/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ ujson==5.10.0
141141
universal_pathlib==0.2.6
142142
urllib3==2.4.0
143143
wrapt==1.17.2
144-
xarray==2024.3.0
144+
xarray==2024.10.0
145145
xmltodict==0.14.2
146146
xvec==0.2.0
147147
yarl==1.20.0

docker/hydromt/stac.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ def main(*args) -> None:
186186
requests.post(r2s.collection_url, json=stac_collection_to_post)
187187
stac_items = []
188188
with open(f"{output_dir}/inline_items.csv", "r") as f:
189-
logger.info(f"Attempting to upload the items to STAC API: {
190-
STAC_API_URL}{r2s.collection_id}/items")
189+
logger.info(f"Attempting to upload the items to STAC API: {STAC_API_URL}{r2s.collection_id}/items")
191190
stac_items = f.readlines()
192191
for it in stac_items:
193192
stac_data_to_post = json.loads(it)

0 commit comments

Comments
 (0)