 ;; based on the interpolated NDVI values.
 
 (def plot2 (c/time-series-plot forma-range
-                               (hp-filter (make-reliable #{2} #{1} reli ndvi) 2)
+                               (hp-filter 2 (make-reliable #{2} #{1} reli ndvi))
                                :title ""
                                :x-label ""
                                :y-label ""

;;                          :y-label ""
;;                          :series-label ""))

(defn add-bfast-ndvi []
  (c/add-lines plot-efp (range (count Yt)) Yt))

;; (defn add-bfast-slider []
;;   (let [x (range (count Yt))]

(defn add-filter []
  (doto (c/add-lines plot3
                     forma-range
                     (hp-filter 2 (make-reliable #{2} #{1} reli ndvi))
                     :series-label "FILTER")))


