Skip to content

Commit 2cf2546

Browse files
committedAug 26, 2024·
Add an example for cold_detect_flex
1 parent a0ddcb2 commit 2cf2546

File tree

2 files changed

+48
-22
lines changed

2 files changed

+48
-22
lines changed
 

‎README.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ This repo provides dockerfiles that illustrate a reproduceable method for
160160
compling and installing PYCOLD. See `dockerfiles/README.rst
161161
<dockerfiles/README.rst>`__ for details.
162162

163-
3. Using pycold for pixel-based processing
163+
3. Using pycold for pixel-based processing (more see `jupyter examples <tool/notebook/pycold_example.ipynb>`)
164164
------------------------------------------
165165

166166
COLD:
@@ -170,6 +170,14 @@ COLD:
170170
from pycold import cold_detect
171171
cold_result = cold_detect(dates, blues, greens, reds, nirs, swir1s, swir2s, thermals, qas)
172172
173+
COLD algorithm for any combination of band inputs from any sensor:
174+
175+
.. code:: python
176+
177+
from pycold import cold_detect
178+
# input a user-defined array instead of multiple lists
179+
cold_result = cold_detect_flex(dates, np.stack((band1, band2, band3), axis=1), qas, tmask_b1=1, tmask_b2=2)
180+
173181
S-CCD:
174182

175183
.. code:: python

‎tool/notebook/pycold_example.ipynb

+39-21
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.