#!/bin/csh -f

# 20090717 : EAM : Generate a fringe frame selecting y-band images with the sun down > 30 degrees

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-15T10:00:00 \
  -select_exp_type object \
  -select_exp_time_min 200.0 \
  -select_filter y.00000 \
  -select_sun_alt_max -30 \
  -filter y \
  -select_exp_type object \
  -comment 'MD%' \
  -use_begin 2009-01-01T00:00:00 \
  -time_begin 2009-01-01T00:00:00 \
  -random_subset \
  -random_limit 60

