 
 (def map-dimensions [180 360])
 (def forma-res 0.5)
+
+(defn sqr
+  "Returns the square of x."
+  [x] (* x x))
 
 (defn dimensions-at-res
   "returns the pixel dimensions at the specified pixel width (in degrees)."

  (:use cascalog.api
        (forma sinu
               [hadoop :only (get-bytes)]))
  (:require [clojure.contrib.io :as io])
  (:import [java.io File InputStream]
           [java.util.zip GZIPInputStream]
           [forma LittleEndianDataInputStream]))

  (let [bytes (get-bytes stream)]
    (rain-tuples (input-stream bytes))))

(defmapcatop [rain-chunks [chunk-size]]
  ^{:doc "Takes in data for a single month of rain data, and converts
  it into chunks for use in FORMA."}
