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 101101 base_tbl <- base_tbl | >
102102 dplyr :: select(" longitude" , " latitude" , " time_series" ) | >
103103 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 )
104107 # joining samples data from cube and base_cube by longitude / latitude
105108 ts_tbl <- dplyr :: left_join(
106109 x = ts_tbl ,
107110 y = base_tbl ,
108111 by = c(" longitude" , " latitude" )
109- )
112+ ) | >
113+ tidyr :: drop_na()
114+ # checking samples consistency
115+ .data_check(ts_tbl_size , nrow(ts_tbl ))
110116 # add base class
111117 class(ts_tbl ) <- c(" sits_base" , class(ts_tbl ))
112118 }
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ sources:
128128 resolution : 30
129129 data_type : " FLT4S"
130130 missing_value : -32768
131- minimum_value : 0
131+ minimum_value : -32767
132132 maximum_value : 65534
133133 scale_factor : 1
134134 offset_value : 0
You can’t perform that action at this time.
0 commit comments