       (assoc chunk :date date))))
 
 (defn unpack-chunk-val
-  "Used by timeseries. Returns `[dataset-name t-res date collection]`,
-   where collection is a vector."
+  "Used by timeseries. Returns `[dataset-name t-res date location collection]`,
+   where collection is a vector and location is a `chunk-location`.
+
+   Example:
+
+  (schema/unpack-chunk-val {:date \"2006-01-01\"
+                            :temporal-res \"32\"
+                            :location {:spatial-res \"1000\", :mod-h 8, :mod-v 6, :index 0, :size 24000}     :dataset \"ndvi\"
+                            :value [0 1 2 3 4 5 6 7 8 9]})   
+
+    [\"ndvi\" \"32\" \"2006-01-01\" {:mod-h 8, :size 24000, :mod-v 6, :spatial-res \"1000\", :index 0} [0 1 2 3 4 5 6 7 8 9]"
   [chunk]
   (map chunk [:dataset :temporal-res :date :location :value]))
 


(defn neighbor-value
  "Accepts either a forma value or a sequence of sub-values."
  ([{:keys [fire-value short-drop long-drop t-stat]}]
     (neighbor-value fire-value 1
                     short-drop short-drop

      :min-t-stat     min-stat}))

(defn unpack-neighbor-val
  ;; TODO: come up with an example
  [neighbor-val]
  (map neighbor-val
       [:fire-value
