Skip to content

Commit dd43c64

Browse files
committed
fixed spatial loop in resolution_merge_1
1 parent b3a8efe commit dd43c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lower-level/resmerge-ll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ short **toa_ = NULL;
155155
/** do regression for every valid pixel, and for each 20m band
156156
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++**/
157157
for (i=0, p=0; i<ny; i++){
158-
for (j=0; j<ny; j++, p++){
158+
for (j=0; j<nx; j++, p++){
159159

160160
if (get_off(QAI, p) || get_cloud(QAI, p) > 0 || get_shadow(QAI, p)) continue;
161161

0 commit comments

Comments
 (0)