simplestac 2.0.0__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 (49) hide show
  1. simplestac-2.0.0/.gitattributes +4 -0
  2. simplestac-2.0.0/CHANGELOG.md +142 -0
  3. simplestac-2.0.0/LICENSE +661 -0
  4. simplestac-2.0.0/PKG-INFO +235 -0
  5. simplestac-2.0.0/README.md +206 -0
  6. simplestac-2.0.0/docs/SUMMARY.md +4 -0
  7. simplestac-2.0.0/docs/changelog.md +1 -0
  8. simplestac-2.0.0/docs/css/code_select.css +7 -0
  9. simplestac-2.0.0/docs/css/style.css +23 -0
  10. simplestac-2.0.0/docs/gen_api_pages.py +33 -0
  11. simplestac-2.0.0/docs/gen_example_pages.py +32 -0
  12. simplestac-2.0.0/docs/index.md +5 -0
  13. simplestac-2.0.0/docs/javascripts/code_select.js +7 -0
  14. simplestac-2.0.0/docs/javascripts/katex.js +10 -0
  15. simplestac-2.0.0/environment.yml +30 -0
  16. simplestac-2.0.0/examples/README.md +11 -0
  17. simplestac-2.0.0/examples/download_data.py +47 -0
  18. simplestac-2.0.0/examples/local_stac.py +220 -0
  19. simplestac-2.0.0/examples/remote_stac.py +228 -0
  20. simplestac-2.0.0/mkdocs.yml +101 -0
  21. simplestac-2.0.0/pixi.lock +4424 -0
  22. simplestac-2.0.0/pyproject.toml +137 -0
  23. simplestac-2.0.0/setup.cfg +4 -0
  24. simplestac-2.0.0/simplestac/__init__.py +7 -0
  25. simplestac-2.0.0/simplestac/extents.py +223 -0
  26. simplestac-2.0.0/simplestac/formats/S1_GRD.json +60 -0
  27. simplestac-2.0.0/simplestac/formats/S1_RTC_GEODES.json +55 -0
  28. simplestac-2.0.0/simplestac/formats/S2_L2A_THEIA.json +166 -0
  29. simplestac-2.0.0/simplestac/formats/common_name_table.csv +17 -0
  30. simplestac-2.0.0/simplestac/local.py +496 -0
  31. simplestac-2.0.0/simplestac/raster.py +360 -0
  32. simplestac-2.0.0/simplestac/search.py +398 -0
  33. simplestac-2.0.0/simplestac/types.py +2 -0
  34. simplestac-2.0.0/simplestac/utils.py +1692 -0
  35. simplestac-2.0.0/simplestac.egg-info/PKG-INFO +235 -0
  36. simplestac-2.0.0/simplestac.egg-info/SOURCES.txt +47 -0
  37. simplestac-2.0.0/simplestac.egg-info/dependency_links.txt +1 -0
  38. simplestac-2.0.0/simplestac.egg-info/requires.txt +14 -0
  39. simplestac-2.0.0/simplestac.egg-info/scm_file_list.json +44 -0
  40. simplestac-2.0.0/simplestac.egg-info/scm_version.json +8 -0
  41. simplestac-2.0.0/simplestac.egg-info/top_level.txt +1 -0
  42. simplestac-2.0.0/tests/__init__.py +0 -0
  43. simplestac-2.0.0/tests/conftest.py +140 -0
  44. simplestac-2.0.0/tests/download_data.py +157 -0
  45. simplestac-2.0.0/tests/test_extents.py +60 -0
  46. simplestac-2.0.0/tests/test_local.py +216 -0
  47. simplestac-2.0.0/tests/test_remote.py +163 -0
  48. simplestac-2.0.0/tests/test_s1_grd.py +91 -0
  49. simplestac-2.0.0/tests/test_s1_rtc_geodes.py +90 -0
@@ -0,0 +1,4 @@
1
+ /.zenodo.json export-ignore
2
+ /.gitlab-ci.yml export-ignore
3
+ /.gitignore export-ignore
4
+ __pycache__ export-ignore
@@ -0,0 +1,142 @@
1
+
2
+ # Changelog
3
+
4
+ ## v2.0.0
5
+
6
+ ### Major Changes
7
+
8
+ - `ItemCollection.to_xarray` now uses `odc-stac` instead of `stackstac` (not maintained)
9
+ - the output is now an `xarray.Dataset` only with the assets **common to all items**.
10
+ - masking and scaling is the default as well as for `apply_items` and `apply_rolling`. The data can be read in the encoded format with `mask_and_scale=False` to save memory.
11
+ - with `stackstac`, items and assets properties were forwarded by default as xarray coordinates. Now `to_xarray` include args `id_coords` and `with_properties` in order to get item ids and properties as coordinates.
12
+ - 'S2_L2A_THEIA' collection format now includes extension `grid:code` instead of `s2:mgrs_tile`
13
+
14
+ ### Add
15
+
16
+ - S1_GRD and S1_RTC_GEODES formats for local collection build
17
+
18
+ ### Fix
19
+
20
+ - `get_epsg`: getting epsg code from pystac extension
21
+
22
+ ## v1.2.5
23
+
24
+ ### Fix
25
+
26
+ - `harmonize_sen2cor_offset` a double if condition prevented to use some sensor
27
+ versions (MR !16).
28
+ - `projv2_to_projv12` for the case of `ItemCollection.from_file` (issue #13)
29
+ - if none of the expected assets are present in an item directory: add a warning
30
+ and skips item (issue #11)
31
+ - changed pattern for THEIA format to include S2C and to avoid item pattern
32
+ match with sub-directories (e.g. "DATA/{pattern}_PVD_ALL", ...) (issue #11)
33
+
34
+ ## v1.2.4
35
+
36
+ ### Add
37
+
38
+ - support for zip files when building ItemCollection (issue #8)
39
+
40
+ ### Change
41
+
42
+ - remove constraint on pystac version
43
+
44
+ ## v1.2.3
45
+
46
+ ### Add
47
+
48
+ - `ItemCollection.get_epsg`: get the epsg of items or assets
49
+
50
+ ### Fix
51
+
52
+ - `unify_properties` for `inplace=False`
53
+ - `harmonize_sen2cor_offset` based on processing baseline version instead of
54
+ datetime (issue #5)
55
+ - `update_scale_offset` unscale offset before rescale if new scale (issue #6)
56
+
57
+ ## v1.2.2
58
+
59
+ ### Add
60
+
61
+ - `ItemCollection.filter_assets`: filter assets (keep or drop)
62
+
63
+ ### Fix
64
+
65
+ - log as info if writing had an error (issue #2)
66
+ - convert projection v2 to projection v1.2 (issue #3)
67
+
68
+ ## v1.2.1
69
+
70
+ ### Add
71
+
72
+ - add xarray.Dataset support to apply_formula
73
+ - make write_raster ready for delayed write
74
+
75
+ ## v1.2.0
76
+
77
+ ### Change
78
+
79
+ - changed default write_raster args from driver="COG" to {driver="GTIFF", compress="DEFLATE", tiled=True},
80
+ as COG has no benefit for local use (overviews takes processing time and disk space).
81
+ --> increases writing speed by x2-3 as overviews do not have to be computed
82
+ - made the COG validation quiet at asset creation
83
+
84
+ ### Fix
85
+
86
+ - CRS issue in ItemCollection.to_xarray
87
+
88
+ ## v1.1.3
89
+
90
+ ### Add
91
+
92
+ - function `update_scale_offset` to add or update raster scale and offset values to the assets of the collection. These values will then be automatically used to deliver rescaled values when calling to_xarray.
93
+
94
+ ### Fix
95
+
96
+ - issue with new version of stac-geoparquet, cf <https://github.com/stac-utils/stac-geoparquet/issues/76>
97
+ - numpy < 2.0 in environment.yml (issue with numpy >= 2.0)
98
+
99
+ ## v1.1.2
100
+
101
+ ### Add
102
+
103
+ - parameter `pattern` to `ItemCollection.drop_non_raster` and `drop_asset_without_proj`
104
+ - support for recursive item search in `build_item_collection`
105
+ - parameter `collection_ready` to `apply_item`, `apply_items`, `apply_rolling`
106
+
107
+ ### Fix
108
+
109
+ - fix issue of drop_non_raster with no proj:bbox: now looking for any "proj:" or "raster:" properties.
110
+ A parameter `pattern` was added to
111
+
112
+ ## v1.1.1
113
+
114
+ ### Add
115
+
116
+ - add modifier to write_assets
117
+ - add function add_reduced_coords to fix the issue <https://github.com/pydata/xarray/issues/8317>
118
+
119
+ ### Fix
120
+
121
+ - end_datetime expanding by default to the end of the day in seconds, e.g. 2019-12-31T23:59:59Z.
122
+
123
+ ## v1.1.0
124
+
125
+ ### Add
126
+
127
+ - function `write_assets`: write item assets (rasters only at the moment) of an ItemCollection locally and return the corresponding ItemCollection.
128
+ - function `harmonize_sen2cor_offset`: adds an `offset` property to the assets so it is taken into account by `to_xarray`.
129
+ - method `ItemCollection.drop_duplicates`: drop duplicated ID returned by pgstac.
130
+ - method `ItemCollection.drop_non_raster`: drop non raster assets.
131
+ - method `ItemCollection.to_xarray` default arg `gdal_env`: now it inlcudes GDAL retries in case of failure while reading url
132
+ - function `extract_points` and method `ItemCollection.extract_points` to extract points time series.
133
+ - `writer_args` to `ItemCollection.apply_...` methods and function in order to specify the outputs format, e.g. the encoding.
134
+ - in local.py, `start_datetime` and `end_datetime` can now be used instead of `datetime` in the template used to build a local ItemCollection.
135
+ - module `extents.py` to manipulate STAC extents.
136
+ - tests for CI
137
+
138
+ ### Fix
139
+
140
+ - `apply_formula` with "in" operator in apply_formula.
141
+ - COG type of local STAC assets (instead of GTiff)
142
+ - imports in `simplestac.utils`