#!/bin/csh -f

echo "done"
exit 1
# 20090722 : EAM : Generate a fringe frame selecting y-band images with the sun down > 30 degrees and moon phase > 0.75

dettool -simple -dbname gpc1 -definebyquery \
  -det_type FRINGE \
  -workdir neb://@HOST@.0/gpc1/detrend.20090717 \
  -inst GPC1 \
  -select_pon_time_min 200000 \
  -select_dateobs_begin 2009-04-01T00:00:00 \
  -select_dateobs_end 2009-07-22T10:00:00 \
  -select_exp_type object \
  -select_exp_time_min 25.0 \
  -select_filter y.00000 \
  -select_sun_alt_max -30 \
  -select_sun_alt_max -30 \
  -select_moon_phase_min 0.75 \
  -comment 'ThreePi%' \
  -filter y \
  -use_begin 2009-01-01T00:00:00 \
  -time_begin 2009-01-01T00:00:00 \
  -random_subset \
  -random_limit 50
