pro make_all_mindays,tel,stdte,endte,off=off,ql=ql
;
;+
; NAME:
;	MAKE_ALL_MINDAYS
;
; PURPOSE:
;	This procedure is an easy interface to the MK_DAILY_MIN procedure
;
; CATEGORY:
;	LASCO SYNOPTIC
;
; CALLING SEQUENCE:
;	MAKE_ALL_MINDAYS,Tel,Stdte,Endte
;
; INPUTS:
;	Tel:	Telescope to be processed, (string), eg. 'C1','C2','C3'
;	Stdte:	The starting date specified as a string: YYMMDD, eg. 960601
;	Endte:	The ending date specified as a string: YYMMDD, eg, 960630
;
; OUTPUTS:
;	This function generates images in $MONTHLY_IMAGES of the daily
;	minimums for the specfied telescope, and for each day specfied by the
;	starting and ending dates.
;
; RESTRICTIONS:
;	These routines only generate the default filter and polarizer images.
;	
; PROCEDURE:
;	A loop is generated between the start and end dates, in which the
;	routine MK_DAILY_MIN is called for each day.
;
; EXAMPLE:
;	To make all the daily median images for the month of June, 1996 for
;	C3:
;
;		MAKE_ALL_MINDAYS,'c3','960601','960630'
;
; MODIFICATION HISTORY:
; 	Written by:	RA Howard, 20 October, 1996
;	9/20/99   NBR	Had to add QL to mk_daily_med call
;	12/1999	  NBR	Make y2k compliant
;
;	11/05/01 @(#)make_all_mindays.pro	1.1 LASCO IDL LIBRARY
;-
;

IF strlen(stdte) GT 6 THEN BEGIN
   st = str2utc(stdte)
   en = str2utc(endte)
ENDIF ELSE BEGIN
   st = yymmdd2utc(stdte)
   en = yymmdd2utc(endte)
ENDELSE
;
jdstart = st.mjd
jdend = en.mjd
;
;  For each day call the routine to compute the daily median
;
FOR i=jdstart,jdend DO BEGIN
    IF (STRUPCASE(tel) eq 'C1')  THEN BEGIN
       IF (KEYWORD_SET(off))  THEN MK_DAILY_C1_MIN,tel,i,off=off,ql=ql $
                              ELSE MK_DAILY_C1_MIN,tel,i,off=0,ql=ql
    ENDIF ELSE BEGIN
       MK_DAILY_MIN,tel,i,QL=ql
    ENDELSE
ENDFOR
RETURN
END
