-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b11304f
commit 16ec6f4
Showing
10 changed files
with
1,393 additions
and
881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
DatasetAttribution: | ||
- "© by Brockmann Consult GmbH 2024" | ||
|
||
DataStores: | ||
- Identifier: stac | ||
StoreId: stac | ||
StoreParams: | ||
url: https://s3.eu-central-1.wasabisys.com/stac/odse/catalog.json | ||
Datasets: | ||
- Identifier: EU cube | ||
Path: lcv_blue_landsat.glad.ard/lcv_blue_landsat.glad.ard_1999.12.02..2000.03.20/lcv_blue_landsat.glad.ard_1999.12.02..2000.03.20.json | ||
Style: EUCUBE | ||
|
||
Styles: | ||
- Identifier: EUCUBE | ||
ColorMappings: | ||
blue_p50: | ||
ColorBar: "viridis" | ||
ValueRange: [0., 30.] | ||
blue_p25: | ||
ColorBar: "viridis" | ||
ValueRange: [0., 30.] | ||
blue_p75: | ||
ColorBar: "viridis" | ||
ValueRange: [0., 30.] | ||
qa_f: | ||
ColorBar: "inferno" | ||
ValueRange: [0., 50.] | ||
|
||
ServiceProvider: | ||
ProviderName: "Brockmann Consult GmbH" | ||
ProviderSite: "https://www.brockmann-consult.de" | ||
ServiceContact: | ||
IndividualName: "Norman Fomferra" | ||
PositionName: "Senior Software Engineer" | ||
ContactInfo: | ||
Phone: | ||
Voice: "+49 4152 889 303" | ||
Facsimile: "+49 4152 889 330" | ||
Address: | ||
DeliveryPoint: "HZG / GITZ" | ||
City: "Geesthacht" | ||
AdministrativeArea: "Herzogtum Lauenburg" | ||
PostalCode: "21502" | ||
Country: "Germany" | ||
ElectronicMailAddress: "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
DatasetAttribution: | ||
- "© by Brockmann Consult GmbH 2024" | ||
|
||
DatasetChunkCacheSize: 100M | ||
|
||
DataStores: | ||
- Identifier: stac | ||
StoreId: stac | ||
StoreParams: | ||
url: https://earth-search.aws.element84.com/v1 | ||
stack_mode: True | ||
Datasets: | ||
- Identifier: Sentinel-2 L2a | ||
Path: sentinel-2-l2a | ||
StoreOpenParams: | ||
bbox: [9, 47, 10, 48] | ||
time_range: ["2020-07-01", "2020-07-31"] | ||
bands: ["red", "green", "blue"] | ||
groupby: "time" | ||
chunks: {"time": 1, "x": 2048, "y": 2048} | ||
Style: S2L2A | ||
|
||
Styles: | ||
- Identifier: S2L2A | ||
ColorMappings: | ||
red: | ||
ColorBar: "viridis" | ||
ValueRange: [0., 3000.] | ||
green: | ||
ColorBar: "viridis" | ||
ValueRange: [0., 3000.] | ||
blue: | ||
ColorBar: "viridis" | ||
ValueRange: [0., 3000.] | ||
rgb: | ||
Red: | ||
Variable: red | ||
ValueRange: [0., 3000.] | ||
Green: | ||
Variable: green | ||
ValueRange: [0., 3000.] | ||
Blue: | ||
Variable: blue | ||
ValueRange: [0., 3000.] | ||
|
||
ServiceProvider: | ||
ProviderName: "Brockmann Consult GmbH" | ||
ProviderSite: "https://www.brockmann-consult.de" | ||
ServiceContact: | ||
IndividualName: "Norman Fomferra" | ||
PositionName: "Senior Software Engineer" | ||
ContactInfo: | ||
Phone: | ||
Voice: "+49 4152 889 303" | ||
Facsimile: "+49 4152 889 330" | ||
Address: | ||
DeliveryPoint: "HZG / GITZ" | ||
City: "Geesthacht" | ||
AdministrativeArea: "Herzogtum Lauenburg" | ||
PostalCode: "21502" | ||
Country: "Germany" | ||
ElectronicMailAddress: "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from xcube.core.store import new_data_store | ||
import matplotlib.pyplot as plt | ||
|
||
store = new_data_store( | ||
"stac", url="https://earth-search.aws.element84.com/v1", stack_mode=True | ||
) | ||
print(store.list_data_ids()) | ||
ds = store.open_data( | ||
data_id="sentinel-2-l2a", | ||
bbox=[9, 47, 10, 48], | ||
time_range=["2020-07-01", "2020-07-05"], | ||
bands=["red", "green", "blue"], | ||
groupby="id", | ||
crs="EPSG:4326", | ||
chunks={"time": 1, "x": 2048, "y": 2048}, | ||
) | ||
print(ds.num_levels) | ||
ds = ds.get_dataset(2) | ||
print(ds) | ||
print(ds.time.values) | ||
ds.red.isel(time=1).plot() | ||
plt.show() |
929 changes: 466 additions & 463 deletions
929
test/cassettes/test_store/StacDataStoreTest.test_get_data_ids_data_type.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.