             [forma.date-time :as date]
             [cascalog.ops :as c]))
 
-;; TODO: https://github.com/reddmetrics/forma-clj/pull/16#r782582
 (defbufferop min-period
   "Returns the minimum value in tuples."
   [tuples]

    series - A vector of numbers.

  Example usage:
    > (first-hit 5 [1 2 3 4 5 6 7 8 9 10])
    > 4
  "
  [thresh series]
  (first (positions (partial <= thresh) series)))


(ns forma.hadoop.jobs.cdm
  "Functions and Cascalog queries for converting data into map tile coordinates."
  (:use [cascalog.api]
        [cartodb.playground :only (insert-rows delete-all)]
        [forma.source.gadmiso :only (gadm->iso)]
        [forma.gfw.cdm :only (latlon->tile, read-latlon, latlon-valid?)]
        [forma.utils :only (positions)])
  (:require [forma.postprocess.output :as o]
