Skip to content

Commit

Permalink
all cog collections appear OK
Browse files Browse the repository at this point in the history
  • Loading branch information
floriscalkoen committed Jan 29, 2025
1 parent 9a509dd commit 9d46e52
Show file tree
Hide file tree
Showing 15 changed files with 1,473 additions and 491 deletions.
1 change: 1 addition & 0 deletions ci/envs/312-coastal-blue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ dependencies:
- boto3
- gcsfs
- google-cloud-storage
- obstore
- s3fs

# Plotting libraries
Expand Down
1 change: 1 addition & 0 deletions ci/envs/312-coastal-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ dependencies:
- boto3
- gcsfs
- google-cloud-storage
- obstore
- s3fs

# Plotting libraries
Expand Down
1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ dependencies:
# Cloud
- adlfs
- gcsfs
- obstore

# Spatial libraries
- cartopy
Expand Down
3 changes: 2 additions & 1 deletion scripts/python/stac_deltadtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import fsspec
import pystac
import pystac.media_type
import pystac.utils
import rasterio
import shapely
import stac_geoparquet
Expand Down Expand Up @@ -59,7 +60,7 @@
# Container and URI configuration
VERSION = "v1.1"
DATETIME_STAC_CREATED = datetime.datetime.now(datetime.UTC)
DATETIME_DATA_CREATED = datetime.datetime(2023, 10, 30, tzinfo=datetime.UTC)
DATETIME_DATA_CREATED = pystac.utils.now_in_utc()
CONTAINER_NAME = "deltares-delta-dtm"
CONTAINER_URI = f"az://{CONTAINER_NAME}/{VERSION}"
GEOPARQUET_STAC_ITEMS_HREF = f"az://items/{COLLECTION_ID}.parquet"
Expand Down
2 changes: 1 addition & 1 deletion src/coastpy/eo/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _load(self) -> xr.Dataset:
ds = self._add_metadata_from_stac(self.stac_items, ds)

if self.normalize:
ds = unscale(ds, scale_factor=10000, variables_to_ignore=["SCL"])
ds = unscale(ds, scale_factor=0.0001, variables_to_ignore=["SCL"])

return ds # type: ignore

Expand Down
Loading

0 comments on commit 9d46e52

Please sign in to comment.