eodash_catalog 0.3.14__tar.gz → 0.3.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of eodash_catalog might be problematic. Click here for more details.

Files changed (50) hide show
  1. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.bumpversion.cfg +1 -1
  2. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/Dockerfile +1 -1
  3. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/PKG-INFO +1 -1
  4. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/__about__.py +1 -1
  5. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/endpoints.py +10 -22
  6. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/generate_indicators.py +0 -11
  7. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/utils.py +1 -0
  8. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.dockerignore +0 -0
  9. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.github/workflows/ci.yml +0 -0
  10. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.github/workflows/python-publish.yml +0 -0
  11. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.gitignore +0 -0
  12. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.vscode/extensions.json +0 -0
  13. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/.vscode/settings.json +0 -0
  14. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/LICENSE.txt +0 -0
  15. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/README.md +0 -0
  16. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/pyproject.toml +0 -0
  17. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/requirements.txt +0 -0
  18. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/ruff.toml +0 -0
  19. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/__init__.py +0 -0
  20. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/duration.py +0 -0
  21. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/sh_endpoint.py +0 -0
  22. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/stac_handling.py +0 -0
  23. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/src/eodash_catalog/thumbnails.py +0 -0
  24. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/__init__.py +0 -0
  25. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/test-data/regional_forecast.json +0 -0
  26. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/test_generate.py +0 -0
  27. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/test_geoparquet.py +0 -0
  28. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-catalogs/testing-json.json +0 -0
  29. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-catalogs/testing.yaml +0 -0
  30. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
  31. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_cmems.json +0 -0
  32. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_cog.json +0 -0
  33. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_geodb.yaml +0 -0
  34. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_geodb_locations.yaml +0 -0
  35. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_geojson.yaml +0 -0
  36. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_locations_processing.json +0 -0
  37. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_process.yaml +0 -0
  38. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_projection.json +0 -0
  39. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
  40. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_sh_wms.json +0 -0
  41. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_sh_wms_locations.json +0 -0
  42. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
  43. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_tif_demo_1_json.json +0 -0
  44. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
  45. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_veda.json +0 -0
  46. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_veda_tiles.json +0 -0
  47. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-collections/test_wms_no_time.yaml +0 -0
  48. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-indicators/test_indicator.yaml +0 -0
  49. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-layers/baselayers.yaml +0 -0
  50. {eodash_catalog-0.3.14 → eodash_catalog-0.3.16}/tests/testing-layers/overlays.yaml +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.3.14
2
+ current_version = 0.3.16
3
3
  commit = True
4
4
  tag = True
5
5
  parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)\.(?P<build>\d+))?
@@ -29,4 +29,4 @@ RUN eodash_catalog --help
29
29
 
30
30
  CMD ["eodash_catalog"]
31
31
 
32
- LABEL version="0.3.14"
32
+ LABEL version="0.3.16"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eodash_catalog
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Summary: This package is intended to help create a compatible STAC catalog for the eodash dashboard client. It supports configuration of multiple endpoint types for information extraction.
5
5
  Project-URL: Documentation, https://github.com/eodash/eodash_catalog#readme
6
6
  Project-URL: Issues, https://github.com/eodash/eodash_catalog/issues
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2024-present Daniel Santillan <daniel.santillan@eox.at>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.3.14"
4
+ __version__ = "0.3.16"
@@ -397,6 +397,7 @@ def handle_collection_only(
397
397
  properties={},
398
398
  geometry=None,
399
399
  datetime=dt,
400
+ assets={"dummy_asset": Asset(href="")},
400
401
  )
401
402
  link = collection.add_item(item)
402
403
  link.extra_fields["datetime"] = format_datetime_to_isostring_zulu(dt)
@@ -1144,6 +1145,14 @@ def add_visualization_info(
1144
1145
  "role": ["data"],
1145
1146
  }
1146
1147
  )
1148
+ if collection_config.get("EodashIdentifier") == "FNF":
1149
+ extra_fields.update(
1150
+ {
1151
+ "wms:layers": endpoint_config.get("LayerId", "").replace(
1152
+ "{time}", (datetimes is not None and str(datetimes[0].year)) or "2020"
1153
+ ),
1154
+ }
1155
+ )
1147
1156
  dimensions = {}
1148
1157
  if dimensions_config := endpoint_config.get("Dimensions", {}):
1149
1158
  for key, value in dimensions_config.items():
@@ -1217,28 +1226,6 @@ def add_visualization_info(
1217
1226
  link,
1218
1227
  )
1219
1228
  stac_object.add_link(link)
1220
- elif endpoint_config["Name"] == "JAXA_WMTS_PALSAR":
1221
- target_url = "{}".format(endpoint_config.get("EndPoint"))
1222
- # custom time just for this special case as a default for collection wmts
1223
- time = None
1224
- if datetimes is not None:
1225
- time = datetimes[0]
1226
- extra_fields.update(
1227
- {
1228
- "wmts:layer": endpoint_config.get("LayerId", "").replace(
1229
- "{time}", (time and str(time.year)) or "2017"
1230
- )
1231
- }
1232
- )
1233
- stac_object.add_link(
1234
- Link(
1235
- rel="wmts",
1236
- target=target_url,
1237
- media_type="image/png",
1238
- title="wmts capabilities",
1239
- extra_fields=extra_fields,
1240
- )
1241
- )
1242
1229
  elif endpoint_config["Name"] == "xcube":
1243
1230
  if endpoint_config["Type"] == "zarr":
1244
1231
  # either preset ColormapName of left as a template
@@ -1528,6 +1515,7 @@ def handle_vector_tile_source(
1528
1515
  geometry=create_geometry_from_bbox(bbox),
1529
1516
  datetime=dt,
1530
1517
  extra_fields={},
1518
+ assets={"dummy_asset": Asset(href="")},
1531
1519
  )
1532
1520
  extra_fields_link = {}
1533
1521
  add_authentication(item, time_entry["Url"], extra_fields_link)
@@ -302,17 +302,6 @@ def process_collection_file(
302
302
  catalog,
303
303
  options,
304
304
  )
305
- elif endpoint_config["Name"] == "JAXA_WMTS_PALSAR":
306
- # somewhat one off creation of individual WMTS layers as individual items
307
- collection = handle_WMS_endpoint(
308
- catalog_config,
309
- endpoint_config,
310
- collection_config,
311
- coll_path_rel_to_root_catalog,
312
- catalog,
313
- options,
314
- wmts=True,
315
- )
316
305
  elif endpoint_config["Name"] == "Collection-only":
317
306
  collection = handle_collection_only(
318
307
  catalog_config, endpoint_config, collection_config, catalog
@@ -328,6 +328,7 @@ def add_single_item_if_collection_empty(endpoint_config: dict, collection: Colle
328
328
  datetime=datetime(1970, 1, 1, 0, 0, 0, tzinfo=pytztimezone("UTC")),
329
329
  start_datetime=datetime(1970, 1, 1, 0, 0, 0, tzinfo=pytztimezone("UTC")),
330
330
  end_datetime=datetime.now(tz=pytztimezone("UTC")),
331
+ assets={"dummy_asset": Asset(href="")},
331
332
  )
332
333
  collection.add_item(item)
333
334
  if not endpoint_config.get("OverwriteBBox"):