File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 101
101
base_tbl <- base_tbl | >
102
102
dplyr :: select(" longitude" , " latitude" , " time_series" ) | >
103
103
dplyr :: rename(" base_data" = " time_series" )
104
+ # Assuming `ts_tbl` as the source of truth, the size of the following
105
+ # `join` must be the same as the current `ts_tbl`.
106
+ ts_tbl_size <- nrow(ts_tbl )
104
107
# joining samples data from cube and base_cube by longitude / latitude
105
108
ts_tbl <- dplyr :: left_join(
106
109
x = ts_tbl ,
107
110
y = base_tbl ,
108
111
by = c(" longitude" , " latitude" )
109
- )
112
+ ) | >
113
+ tidyr :: drop_na()
114
+ # checking samples consistency
115
+ .data_check(ts_tbl_size , nrow(ts_tbl ))
110
116
# add base class
111
117
class(ts_tbl ) <- c(" sits_base" , class(ts_tbl ))
112
118
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ sources:
128
128
resolution : 30
129
129
data_type : " FLT4S"
130
130
missing_value : -32768
131
- minimum_value : 0
131
+ minimum_value : -32767
132
132
maximum_value : 65534
133
133
scale_factor : 1
134
134
offset_value : 0
You can’t perform that action at this time.
0 commit comments