stac-processor-gdmsar 0.3.20__tar.gz → 0.3.22__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.
Files changed (58) hide show
  1. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/PKG-INFO +2 -1
  2. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/pyproject.toml +1 -0
  3. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/__about__.py +1 -1
  4. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/process.py +1 -1
  5. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_element.py +11 -11
  6. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/atmospheric_phase_screen.md +1 -1
  7. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/filtered_wrapped_interferogram.md +1 -1
  8. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/los_displacement_time_series.md +1 -1
  9. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/mean_velocity_map.md +1 -1
  10. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/network_misclosures.md +1 -1
  11. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/root_catalog.md +1 -1
  12. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/run_collection.md +1 -1
  13. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/run_geocoded_radar_collection.md +1 -1
  14. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/run_geocoded_wgs84_collection.md +1 -1
  15. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/spatial_coherence.md +1 -1
  16. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/time_series.md +1 -1
  17. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/unwrapped_interferogram.md +1 -1
  18. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/wrapped_interferogram.md +1 -1
  19. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar.egg-info/PKG-INFO +2 -1
  20. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar.egg-info/requires.txt +1 -0
  21. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/tests/test.py +3 -2
  22. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/LICENCE.txt +0 -0
  23. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/README.md +0 -0
  24. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/setup.cfg +0 -0
  25. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/__init__.py +0 -0
  26. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/app.py +0 -0
  27. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/discover.py +0 -0
  28. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/explorer/__init__.py +0 -0
  29. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/explorer/base_explorer.py +0 -0
  30. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/explorer/local_explorer.py +0 -0
  31. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/explorer/source_explorer.py +0 -0
  32. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/id.py +0 -0
  33. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/metadata/common_metadata.py +0 -0
  34. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/metadata/extensions.py +0 -0
  35. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/metadata/products.py +0 -0
  36. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/metadata/templates.py +0 -0
  37. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_catalog.py +0 -0
  38. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_collection.py +0 -0
  39. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_geo.py +0 -0
  40. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_item.py +0 -0
  41. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_items_list.py +0 -0
  42. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/gdmsar_radar.py +0 -0
  43. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/processor/utils.py +0 -0
  44. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/__init__.py +0 -0
  45. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/auxiliary_data_collection.md +0 -0
  46. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/digital_elevation_model.md +0 -0
  47. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/extra_text_files.md +0 -0
  48. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/interferogram.md +0 -0
  49. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/interferogram_collection.md +0 -0
  50. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/inversion_parameters.md +0 -0
  51. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/lookup_table_sat_to_ground_coordinates.md +0 -0
  52. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/map_of_los_vector_enu.md +0 -0
  53. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/map_of_los_vector_neu.md +0 -0
  54. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/templates/temporal_coherence.md +0 -0
  55. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar/version.py +0 -0
  56. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar.egg-info/SOURCES.txt +0 -0
  57. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar.egg-info/dependency_links.txt +0 -0
  58. {stac_processor_gdmsar-0.3.20 → stac_processor_gdmsar-0.3.22}/stac_processor_gdmsar.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stac-processor-gdmsar
3
- Version: 0.3.20
3
+ Version: 0.3.22
4
4
  Summary: A stac-repository complient processor for GDM-SAR products
5
5
  Author-email: Alexandre Burel <alexandre.burel@cnrs.fr>, Pierre Fontbonne <pierre.fontbonne@uca.fr>
6
6
  Maintainer-email: Alexandre Burel <alexandre.burel@cnrs.fr>
@@ -157,6 +157,7 @@ Requires-Dist: deepdiff>=9.0.0
157
157
  Requires-Dist: orjson>=3.11.7
158
158
  Requires-Dist: pystac>=1.14.3
159
159
  Requires-Dist: pytest>=9.0.2
160
+ Requires-Dist: pytest-cov>=7.1.0
160
161
  Requires-Dist: requests>=2.32.5
161
162
  Requires-Dist: typer>=0.24.1
162
163
  Requires-Dist: waitress>=3.0.2
@@ -19,6 +19,7 @@ dependencies = [
19
19
  "orjson>=3.11.7",
20
20
  "pystac>=1.14.3",
21
21
  "pytest>=9.0.2",
22
+ "pytest-cov>=7.1.0",
22
23
  "requests>=2.32.5",
23
24
  "typer>=0.24.1",
24
25
  "waitress>=3.0.2",
@@ -1,3 +1,3 @@
1
- __version__ = "0.3.20"
1
+ __version__ = "0.3.22"
2
2
  __catalog_name__ = "GDM-SAR-In"
3
3
  __catalog_desc__ = "Ground Deformation Monitoring using SAR Interferometry"
@@ -59,7 +59,7 @@ def process(product_source: str, import_assets: bool = False, asset_location: st
59
59
  # add extra assets
60
60
  extra_assets = {
61
61
  # "download": Asset(f"https://formater.osug.fr/download/gdm-sar-permanent/{uuid}", title="Download tool", description="Link to the download page for the original source product, before STAC conversion.", media_type="text/html", roles=["metadata"]),
62
- "documentation": Asset("https://formater.pages.in2p3.fr/flatsim/product.html", title="Product description (general for NSBAS, including GDM-SAR-In and FLATSIM)",
62
+ "documentation": Asset("https://formater.pages.in2p3.fr/flatsim/doc_flatsim/product.html", title="Product description (general for NSBAS, including GDM-SAR-In and FLATSIM)",
63
63
  description="Documentation page describing the product names and acronyms, information about the generation of the products, and metadata definitions.", media_type="text/html", roles=["metadata"])
64
64
  }
65
65
  if not is_local(product_source):
@@ -117,15 +117,15 @@ class GDMElement(metaclass=abc.ABCMeta):
117
117
  else:
118
118
  self.stac_object.extra_fields["STAC hierarchy"] = hierarchy
119
119
  # self.stac_object.summaries.add("STAC hierarchy", hierarchy)
120
- # keep the navigation in the description for now, until stac browser v5 is available
120
+ ## keep the navigation in the description for now, until stac browser v5 is available
121
121
  # TODO remove all the following lines then, stac browser v5 will extract the breadcrumb from the extra fields and display it in the right place
122
- if isinstance(self.stac_object, pystac.Item):
123
- if "description" not in self.stac_object.properties or self.stac_object.properties["description"] is None:
124
- self.stac_object.properties["description"] = text
125
- else:
126
- self.stac_object.properties["description"] = text + "\n\n" + self.update_variables(self.stac_object.properties.get("description", ""))
127
- else:
128
- if self.stac_object.description is None:
129
- self.stac_object.description = text
130
- else:
131
- self.stac_object.description = text + "\n\n" + self.update_variables(self.stac_object.description)
122
+ # if isinstance(self.stac_object, pystac.Item):
123
+ # if "description" not in self.stac_object.properties or self.stac_object.properties["description"] is None:
124
+ # self.stac_object.properties["description"] = text
125
+ # else:
126
+ # self.stac_object.properties["description"] = text + "\n\n" + self.update_variables(self.stac_object.properties.get("description", ""))
127
+ # else:
128
+ # if self.stac_object.description is None:
129
+ # self.stac_object.description = text
130
+ # else:
131
+ # self.stac_object.description = text + "\n\n" + self.update_variables(self.stac_object.description)
@@ -14,4 +14,4 @@
14
14
  >
15
15
  > - band 1 is the atmospheric phase delay of the interferogram, normalized by a color palette.
16
16
 
17
- [source](https://formater.pages.in2p3.fr/flatsim/products/APS.html)
17
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/APS.html)
@@ -11,4 +11,4 @@
11
11
  >
12
12
  > - band 1 is the filtered wrapped phase of the interferogram, normalized by a color palette.
13
13
 
14
- [source](https://formater.pages.in2p3.fr/flatsim/products/InWF.html)
14
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/InWF.html)
@@ -10,4 +10,4 @@
10
10
  >
11
11
  > - band 1 is last time step of the cube.
12
12
 
13
- [source](https://formater.pages.in2p3.fr/flatsim/products/DTs.html)
13
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/DTs.html)
@@ -11,4 +11,4 @@
11
11
  >
12
12
  > - band 1 shows the mean velocity map.
13
13
 
14
- [source](https://formater.pages.in2p3.fr/flatsim/products/MV-LOS.html)
14
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/MV-LOS.html)
@@ -16,4 +16,4 @@
16
16
  >
17
17
  > - band 1 is the misclosure of the interferogram network for each pixel
18
18
 
19
- [source](https://formater.pages.in2p3.fr/flatsim/products/Net.html)
19
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/Net.html)
@@ -4,4 +4,4 @@ The **GDM-SAR-In** (Ground Deformation Monitoring using SAR Interferometry) on-d
4
4
 
5
5
  It is linked to the [Thematic Core Service « Satellite Data »](https://www.epos-eu.org/tcs/satellite-data) of the European research infrastructure [EPOS](https://www.epos-eu.org/), as GDM-SAR-In provides products that can be exposed on the [EPOS data portal](https://www.ics-c.epos-eu.org/).
6
6
 
7
- GDM-SAR-In uses the **NSBAS processing chain** (Doin et al., 2011, Grandin, 2015, see providers) to process radar images acquired by the Sentinel-1 satellites (in IW mode) of the [Copernicus](https://www.copernicus.eu/fr) program. It enables the user to calculate interferograms or **InSAR** time series, as well as other associated products. Detailed product descriptions are available in a [dedicated document](https://formater.pages.in2p3.fr/flatsim/).
7
+ GDM-SAR-In uses the **NSBAS processing chain** (Doin et al., 2011, Grandin, 2015, see providers) to process radar images acquired by the Sentinel-1 satellites (in IW mode) of the [Copernicus](https://www.copernicus.eu/fr) program. It enables the user to calculate interferograms or **InSAR** time series, as well as other associated products. Detailed product descriptions are available in a [dedicated document](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/).
@@ -4,7 +4,7 @@ The **GDM-SAR-In** (Ground Deformation Monitoring using SAR Interferometry) on-d
4
4
 
5
5
  It is linked to the [Thematic Core Service « Satellite Data »](https://www.epos-eu.org/tcs/satellite-data) of the European research infrastructure [EPOS](https://www.epos-eu.org/), as GDM-SAR-In provides products that can be exposed on the [EPOS data portal](https://www.ics-c.epos-eu.org/).
6
6
 
7
- GDM-SAR-In uses the **NSBAS processing chain** (Doin et al., 2011, Grandin, 2015, see providers) to process radar images acquired by the Sentinel-1 satellites (in IW mode) of the [Copernicus](https://www.copernicus.eu/fr) program. It enables the user to calculate interferograms or **InSAR** time series, as well as other associated products. Detailed product descriptions are available in a [dedicated document](https://formater.pages.in2p3.fr/flatsim/).
7
+ GDM-SAR-In uses the **NSBAS processing chain** (Doin et al., 2011, Grandin, 2015, see providers) to process radar images acquired by the Sentinel-1 satellites (in IW mode) of the [Copernicus](https://www.copernicus.eu/fr) program. It enables the user to calculate interferograms or **InSAR** time series, as well as other associated products. Detailed product descriptions are available in a [dedicated document](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/).
8
8
 
9
9
  This product contains data over {{nbdates}}.
10
10
 
@@ -6,6 +6,6 @@
6
6
  > - the Time-Serie phase: time serie calculation
7
7
  > - the Populate phase: generation of the products
8
8
 
9
- _[source](https://formater.pages.in2p3.fr/flatsim/product.html)_
9
+ _[source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/product.html)_
10
10
 
11
11
  Accordingly, this collection contains a subcollection of all generated interferograms and a single item corresponding to the time series. Auxiliary files can be found as assets to the items, collection, or catalog they are generally relevant to.
@@ -6,6 +6,6 @@
6
6
  > - the Time-Serie phase: time serie calculation
7
7
  > - the Populate phase: generation of the products
8
8
 
9
- _[source](https://formater.pages.in2p3.fr/flatsim/product.html)_
9
+ _[source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/product.html)_
10
10
 
11
11
  Accordingly, this collection contains a subcollection of all generated interferograms and a single item corresponding to the time series. Auxiliary files can be found as assets to the items, collection, or catalog they are generally relevant to.
@@ -11,4 +11,4 @@
11
11
  >
12
12
  > - band 1 is the spatial coherence of the interferogram, normalized by a color palette
13
13
 
14
- [source](https://formater.pages.in2p3.fr/flatsim/products/Coh.html)
14
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/Coh.html)
@@ -10,4 +10,4 @@
10
10
  >
11
11
  > - band 1 is last time step of the cube.
12
12
 
13
- [source](https://formater.pages.in2p3.fr/flatsim/products/DTs.html)
13
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/DTs.html)
@@ -11,4 +11,4 @@
11
11
  >
12
12
  > - band 1 is the unwrapped phase difference of the interferogram, normalized by a color palette
13
13
 
14
- [source](https://formater.pages.in2p3.fr/flatsim/products/InU.html)
14
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/InU.html)
@@ -11,4 +11,4 @@
11
11
  >
12
12
  > - band 1 is the wrapped phase of the interferogram, normalized by a color palette.
13
13
 
14
- [source](https://formater.pages.in2p3.fr/flatsim/products/InW.html#product-description)
14
+ [source](https://formater.pages.in2p3.fr/flatsim/doc_flatsim/products/InW.html#product-description)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stac-processor-gdmsar
3
- Version: 0.3.20
3
+ Version: 0.3.22
4
4
  Summary: A stac-repository complient processor for GDM-SAR products
5
5
  Author-email: Alexandre Burel <alexandre.burel@cnrs.fr>, Pierre Fontbonne <pierre.fontbonne@uca.fr>
6
6
  Maintainer-email: Alexandre Burel <alexandre.burel@cnrs.fr>
@@ -157,6 +157,7 @@ Requires-Dist: deepdiff>=9.0.0
157
157
  Requires-Dist: orjson>=3.11.7
158
158
  Requires-Dist: pystac>=1.14.3
159
159
  Requires-Dist: pytest>=9.0.2
160
+ Requires-Dist: pytest-cov>=7.1.0
160
161
  Requires-Dist: requests>=2.32.5
161
162
  Requires-Dist: typer>=0.24.1
162
163
  Requires-Dist: waitress>=3.0.2
@@ -2,6 +2,7 @@ deepdiff>=9.0.0
2
2
  orjson>=3.11.7
3
3
  pystac>=1.14.3
4
4
  pytest>=9.0.2
5
+ pytest-cov>=7.1.0
5
6
  requests>=2.32.5
6
7
  typer>=0.24.1
7
8
  waitress>=3.0.2
@@ -21,6 +21,7 @@ from stac_processor_gdmsar.version import version as api_version
21
21
  # use -s to see the print statements in the output
22
22
  # use -x option to stop after the first failure
23
23
  # use -vv for more verbose output
24
+ # use --cov=stac_processor_gdmsar to get the coverage report (requires pytest-cov to be installed)
24
25
 
25
26
  # set the main options
26
27
  cwd = os.path.dirname(__file__)
@@ -138,7 +139,7 @@ def process(source):
138
139
  diff_collection = compare_json(result_collection, expected_collection)
139
140
  assert diff_collection == {}, f"Collection content does not match expected content : {diff_collection}"
140
141
  # check the content of an item, it must match the expected content
141
- item_relative_path = "05ef8d62-da41-11ee-9f22-0242c0a87004/geo_interferogram_20171107_20171119_coh_item.json"
142
+ item_relative_path = "05ef8d62-da41-11ee-9f22-0242c0a87004/geo_interferogram_20171107_20171119_4rlks_coh_item.json"
142
143
  result_item = os.path.join(parent_result_dir, item_relative_path)
143
144
  expected_item = os.path.join(expected_result_directory, item_relative_path)
144
145
  diff_item = compare_json(result_item, expected_item)
@@ -235,7 +236,7 @@ def test_metadata():
235
236
  keywords = collection.keywords
236
237
  assert len(keywords) == 1
237
238
  assert "from 2026-04-01 to 2026-04-02" in keywords
238
- keywords = templates.get_keywords(["GDM_InWF_geo_20161026_20161101_sd_era_4rlks.tiff", "GDM_CosENU_geo_4rlks.tiff"], ["InWF"], "WGS84", ["test1", "test2"])
239
+ keywords = templates.get_keywords(["GDM_InWF_geo_20161026_20161101_sd_era_4rlks.tiff", "GDM_CosENU_geo_4rlks.tiff"], ["InWF"], "WGS84", "", ["test1", "test2"])
239
240
  assert len(keywords) == 4
240
241
  assert "test1" in keywords
241
242
  assert "test2" in keywords