   "Returns the section of fires data found appropriate based on the
   information in the estimation parameter map.
 
-  (let [est-map {:est-start \"2005-12-01\"
-                 :est-end \"2011-04-01\"
-                 :t-res \"32\"
-                 :neighbors 1
-                 :window-dims [600 600]
-                 :vcf-limit 25
-                 :long-block 15
-                 :window 5}
-        f-series []]
-    (adjust-fires est-map f-series)"
-  ;; TODO: add a sample f-series
+    (let [est-map {:est-start \"2005-12-01\"
+                   :est-end \"2011-04-01\"
+                   :t-res \"32\"
+                   :neighbors 1
+                   :window-dims [600 600]
+                   :vcf-limit 25
+                   :long-block 15
+                   :window 5}
+          f-series []]
+    ;=> (adjust-fires est-map f-series)"
+  ;; TODO: add a sample f-series, result
   [{:keys [est-start est-end t-res]} f-series]
   (let [[start end] (for [pd [est-start est-end]]
                       (date/datetime->period "32" pd))]

    both temp and confidence
    total fires

   Example: (schema/fire-value 1 0 3 4)
    {:temp-330 1, :conf-50 0, :both-preds 3, :count 4}"
  [t-above-330 c-above-50 both-preds count]
  {:temp-330 t-above-330
   :conf-50 c-above-50

(defn unpack-pixel-location
  "Unpacks pixel-location object into a tuple.

    (unpack-pixel-location
     {:spatial-res \"1000\", :mod-h 28, :mod-v 9, :sample 1199, :line 10})
    ;=> [\"1000\" 28 9 1199 10]"
  [loc]
  (map loc [:spatial-res :mod-h :mod-v :sample :line]))

(defn chunkloc->pixloc
  "Accepts a chunk location and a pixel index within that location and
   returns a pixel location.
 
     (chunkloc->pixloc
      {:spatial-res "1000", :mod-h 28, :mod-v 9, :index 59, :size 24000}
      23999)

    ;=> {:spatial-res "1000", :mod-h 28, :mod-v 9, :sample 1199, :line 1199}"
  [{:keys [spatial-res size index mod-h mod-v]} pix-idx]
  (apply pixel-location spatial-res mod-h mod-v
         (r/tile-position spatial-res size index pix-idx)))
