ticoi 0.0.1__py3-none-any.whl

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 ticoi might be problematic. Click here for more details.

@@ -0,0 +1,152 @@
1
+ Metadata-Version: 2.4
2
+ Name: ticoi
3
+ Version: 0.0.1
4
+ Summary: A package to run Temporal Inversion using linear Combinations of Observations, and Interpolation (TICOI)
5
+ Project-URL: Homepage, https://github.com/ticoi/ticoi.git
6
+ Project-URL: Issues, https://github.com/pypa/sampleproject/issues
7
+ Author: Lei Guo
8
+ Author-email: Laurane Charrier <laurane.charrier@outlook.com>
9
+ License: GPL-3.0-only
10
+ License-File: LICENSE
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.10
14
+ Requires-Dist: aiohttp
15
+ Requires-Dist: dask
16
+ Requires-Dist: geopandas
17
+ Requires-Dist: h5netcdf
18
+ Requires-Dist: jdcal
19
+ Requires-Dist: joblib
20
+ Requires-Dist: matplotlib
21
+ Requires-Dist: notebook
22
+ Requires-Dist: numba
23
+ Requires-Dist: numpy
24
+ Requires-Dist: pandas
25
+ Requires-Dist: pyproj
26
+ Requires-Dist: rasterio
27
+ Requires-Dist: requests
28
+ Requires-Dist: rioxarray
29
+ Requires-Dist: scikit-learn
30
+ Requires-Dist: scipy
31
+ Requires-Dist: seaborn
32
+ Requires-Dist: shapely
33
+ Requires-Dist: statsmodels
34
+ Requires-Dist: tqdm
35
+ Requires-Dist: xarray
36
+ Requires-Dist: zarr
37
+ Description-Content-Type: text/markdown
38
+
39
+ # TICOI
40
+
41
+ [![Language](https://img.shields.io/badge/python-3.10%2B-blue.svg?style=flat-square)](https://www.python.org/)
42
+ [![Python test](https://github.com/ticoi/ticoi/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/ticoi/ticoi/actions/workflows/python-app.yml)
43
+ [![License](https://img.shields.io/badge/license-GPLv3+-blue.svg?style=flat-square)](https://github.com/ticoi/ticoi/blob/main/LICENSE)
44
+ [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
45
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
46
+
47
+ TICOI is a tool to postprocess surface velocity time series estimated from remote sensing (e.g., ice flow, landslides).
48
+ The method is based on the temporal closure principle. It fuses velocity measurements which are multi-temporal (with
49
+ different temporal baselines) and multi-sensor (from different satellite images),
50
+ and may have been computed by different processing chains. It takes as input NetCDF files containing the image-pair
51
+ velocities, that you may have generated yourself, or natively supports data from the [NASA ITS_LIVE project](https://its-live.jpl.nasa.gov/) or from
52
+ [Millan et al. (2022)](https://www.theia-land.fr/en/blog/product/glacier-surface-flow-velocity/).
53
+
54
+ The package is based on the methodological developments published in:
55
+
56
+ - Charrier, L., Dehecq, A., Guo, L., Brun, F., Millan, R., Lioret, N., ... & Halas, P. (2025). TICOI: an operational
57
+ Python package to generate regular glacier velocity time series. EGUsphere, 2025, 1-40.
58
+
59
+ - Charrier, L., Yan, Y., Koeniguer, E. C., Leinss, S., & Trouvé, E. (2021). Extraction of velocity time series with an
60
+ optimal temporal sampling from displacement observation networks. IEEE Transactions on Geoscience and Remote Sensing,
61
+ 60, 1-10.
62
+
63
+ The main principle of TICOI relies on the temporal closure of the displacement measurement network.
64
+ Measured displacements with different temporal baselines are expressed as linear combinations of estimated
65
+ displacement (see the Figure below).
66
+ The aim is to take advantage of different types of information (displacement measured using different temporal
67
+ baselines,
68
+ on images from different types of satellite) to extract glacier velocity time series, with a given temporal sampling.
69
+ This enable the
70
+ harmonization of various datasets, and the creation of standardized sub-annual velocity products.
71
+
72
+ <p align="center">
73
+ <img src="examples/image/Temporal_closure.png" alt="Temporal_closure" width="800"/>
74
+ </p>
75
+
76
+ ## INSTALLATION
77
+
78
+ ### With `mamba`
79
+
80
+ Clone the git repo and create a `mamba` environment (see how to install `mamba` in
81
+ the [mamba documentation](https://mamba.readthedocs.io/en/latest/)):
82
+
83
+ ```bash
84
+ git clone git@github.com:ticoi/ticoi.git
85
+ cd ticoi
86
+ mamba env create -f environment.yml # Add '-n custom_name' if you want.
87
+ mamba activate environment # Or any other name specified above
88
+ ```
89
+
90
+ ### With `pip`
91
+
92
+ ```bash
93
+ python3.10 -m venv ticoi-env
94
+ source ticoi-env/bin/activate
95
+ pip install git+https://github.com/ticoi/ticoi.git
96
+ ```
97
+
98
+ ## TUTORIALS
99
+
100
+ ### Basic examples
101
+
102
+ **- notebook**
103
+
104
+ * [How to process one pixel of a NetCDF file](examples/basic/notebook/pixel_demo_local_ncdata.ipynb)
105
+ * [How to process one pixel of ITS_LIVE data, stored on a cloud](examples/basic/notebook/pixel_demo_its_live_on_cloud.ipynb)
106
+
107
+ **- python_script**
108
+
109
+ * [How to process one cube](examples/basic/python_script/cube_ticoi_demo.py)
110
+ * [How to process one pixel](examples/basic/python_script/pixel_ticoi_demo.py)
111
+
112
+ ### Advanced examples
113
+
114
+ * [How to process one ITS_LIVE cube directly from the cloud](/examples/advanced/cube_ticoi_demo_its_live.py)
115
+ * [How to format several geotiff files into a netCDF file](examples/advanced/cube_prep_from_geotiff.py)
116
+ * [How to apply GLAFT on TICOI results](examples/advanced/glaft_for_ticoi_results.py)
117
+
118
+ ## TO USE YOUR OWN DATASET
119
+
120
+ ### You have geotiff files
121
+
122
+ You need to convert them into netcdf, by
123
+ modifying [this script](examples/advanced/cube_prep_from_geotiff.py).
124
+
125
+ ### You have netcdf files
126
+
127
+ If it is [ITS_LIVE data]((https://its-live.jpl.nasa.gov/)), or [Millan et al., 2022](https://www.theia-land.fr/en/blog/product/glacier-surface-flow-velocity/), you can directly use them!
128
+ If not, you have to create your own dataloader, within which the dimension should be ("mid_date", "y", "x"), and the
129
+ variables should be "vx", "vy", and should contain the projection information in the ds.proj4 attribute. You can add in this [file](src/ticoi/cube_data_classxr.py).
130
+
131
+ ## HYPERPARAMETERS AND OUTPUTS
132
+
133
+ * to understand the output of pixel_demo please
134
+ check [README_output](README_output.md)
135
+ * to understand the parameters you can change, please
136
+ check [README_possible_parameters](README_possible_parameters.md)
137
+
138
+ ## TO CONTRIBUTE
139
+
140
+ We welcome any contribution to this package! See guidelines [here](CONTRIBUTING.md).
141
+
142
+ [packaging guide]: https://packaging.python.org
143
+
144
+ [distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/
145
+
146
+ [src]: https://github.com/pypa/sampleproject
147
+
148
+ [rst]: http://docutils.sourceforge.net/rst.html
149
+
150
+ [md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
151
+
152
+ [md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
@@ -0,0 +1,18 @@
1
+ ticoi/__about__.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
2
+ ticoi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ ticoi/core.py,sha256=uW-t8g46sKEuJ2e_Xh--MXHRNwbyruOm84a3N6qRAT0,67652
4
+ ticoi/cube_data_classxr.py,sha256=HSSVZmnfR3eDe_TnagmBHEPO1uAgqq_Jfgmy-sdZPik,103777
5
+ ticoi/cube_writer.py,sha256=mGz79Drme9Ub983t_pS1-VIRHpSxRwU21GAoznkqYq4,32806
6
+ ticoi/example.py,sha256=YqUPXH7YcW75O1w3VFkcgyOFChnn1OR0syxVop-lWM8,3300
7
+ ticoi/filtering_functions.py,sha256=IYEZTllbrfmZ_EqtXFYyWaNFGaZ7akjmJ7HkYdcKIjU,26633
8
+ ticoi/interpolation_functions.py,sha256=XXSDSMMHvgsu4CC5Nkwiy_n2VZxtXzYjcsut-Z5q6wg,9975
9
+ ticoi/inversion_functions.py,sha256=OmYeIFYsLcWV7y4w_75KEPW7dd8OiMyAqzcRskgU-O8,54910
10
+ ticoi/mjd2date.py,sha256=JvTybLkn0fgSIwjF5oMWh3ikiw7Acflq1-9yeqGcP_g,904
11
+ ticoi/optimize_coefficient_functions.py,sha256=IRoumcK_KAspz4qeYEEaYDLsO_nvY3lke3L5pOzIxeU,8397
12
+ ticoi/pixel_class.py,sha256=xv29Z3w7xTgdRQN7Qe6zeARwT-KdRMW8thIoJCj5Sw8,81771
13
+ ticoi/seasonality_functions.py,sha256=4oMsHxgD1jlkJSsIDGFHmb311b48IkrT2xUx3Z4X-1g,9153
14
+ ticoi/utils.py,sha256=tfmP2g5iF1MEq_Z1CBNCSz0KsMPRHI_lUgGEz_nGi3o,29403
15
+ ticoi-0.0.1.dist-info/METADATA,sha256=fLQzemVjfHH9dJ9eYCt5wNrm9JIIdw055fejxdS84eM,6441
16
+ ticoi-0.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ ticoi-0.0.1.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
18
+ ticoi-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.