#!/bin/csh -f

# 20090716 : EAM : It turns out that the camera reports bogus DARKTIME
# value occasionally.  I've changed gpc1/ppMerge.config to use the
# EXPTIME instead, and initial test show that does a much better job.
# Here I am re-attempting a dark analysis using the full range of
# temperatures.

dettool -dbname gpc1 -definebyquery \
  -det_type DARKTEST \
  -workdir neb://@HOST@.0/gpc1/detrend.20090716 \
  -inst GPC1 \
  -select_ccd_temp_min -75 \
  -select_pon_time_min 160000 \
  -select_dateobs_begin 2009-04-01T00:00:00 \
  -select_dateobs_end 2009-07-15T10:00:00 \
  -select_exp_type dark \
  -comment 'darks_%' \
  -use_begin 2009-01-01T00:00:00 \
  -time_begin 2009-01-01T00:00:00 \
  -random_subset \
  -random_limit 60
