         (o/clean-probs ?prob-series nodata :> ?clean-series)
         (first-hit thresh ?clean-series :> ?first-hit-idx)
         (+ ?start-idx ?first-hit-idx :> ?period)
-        (date/convert-period-res t-res t-res-out ?period :> ?period-new-res)
+        (date/shift-resolution t-res t-res-out ?period :> ?period-new-res)
         (- ?period-new-res epoch :> ?cdm-period)
         (date/period->datetime t-res-out ?period-new-res :> ?date-str)
         (c/count ?count))))

        (o/clean-probs ?prob-series nodata :> ?clean-series)
        (first-hit thresh ?clean-series :> ?first-hit-idx)
        (+ start-period ?first-hit-idx :> ?period)
        (date/convert-period-res tres tres-out ?period :> ?period-new-res)
        (- ?period-new-res epoch :> ?rp)
        (min-period ?rp :> ?p)
        (r/modis->latlon ?sres ?modh ?modv ?s ?l :> ?lat ?lon)

        (o/clean-probs ?prob-series nodata :> ?clean-series)
        (first-hit thresh ?clean-series :> ?first-hit-idx)
        (+ start-period ?first-hit-idx :> ?period)
        (date/shift-resolution tres tres-out ?period :> ?period-new-res)
        (- ?period-new-res epoch :> ?rp)
        (min-period ?rp :> ?p)
        (:trap (hfs-seqfile "s3n://formatemp/output/spark-trapped")))))
