Extended IDL Help

This page was created by the IDL library routine mk_html_help. For more information on this routine, refer to the IDL Online Help Navigator or type:

     ? mk_html_help

at the IDL command line prompt.

Last modified: Wed Mar 31 06:40:51 1999.


List of Routines


Routine Descriptions

CARRDATE[1]

[Next Routine] [List of Routines]
 NAME:
	CARRDATE

 PURPOSE:
	This function converts a carrington number and longitude into a 
       CDS date structure.

 CATEGORY:
	LASCO Synoptic

 CALLING SEQUENCE:
	Result = CARRDATE ( Cr, Clong)

 INPUTS:
	Cr:	Carrington Rotation Number
	Clong:	Carrington Longitude

 OPTIONAL INPUTS:
	None

 KEYWORDS:
	EL:	This keyword specifies that the date should be returned as an 
		East Limb Date
	WL:	This keyword specifies that the date should be returned as a 
		West Limb Date
	CMP:	This keyword specifies that the date should be returned as a 
		central meridian Date.  This is the default.

 OUTPUTS:
	Result:	The function result is the date as a CDS date structure
	
 COMMON BLOCKS:
	carr_long:	Contains the start date of the carrington rotations 
			from the almanac.  Generated by READ_CARR_LONG

 MODIFICATION HISTORY:
 	Written by:	RA Howard, NRL, 3/18/96
       10/17/96        RAH, Added check for cday being defined
			   , Changed output to CDS structure

	@(#)carrdate.pro	1.3 10/17/96 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/carrdate.pro)


CARRDATE[2]

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	CARRDATE

 PURPOSE:
	This function converts a carrington number and longitude into a 
       date.

 CATEGORY:
	LASCO Synoptic

 CALLING SEQUENCE:
	Result = CARRDATE ( Cr )

 INPUTS:
	Cr:	Carrington Rotation Number

 OPTIONAL INPUTS:
	None

 KEYWORDS:
	EL:	This keyword specifies that the date should be returned as an 
		East Limb Date
	WL:	This keyword specifies that the date should be returned as a 
		West Limb Date
	CMP:	This keyword specifies that the date should be returned as a 
		central meridian Date.  This is the default.
	Clong:	Carrington Longitude

 OUTPUTS:
	Result:	The function result is returned as a fractional modified
		Julian date.
	
 COMMON BLOCKS:
	carr_long:	Contains the start date of the carrington rotations 
			from the almanac.  Generated by READ_CARR_LONG

 MODIFICATION HISTORY:
 	Written by:	RA Howard, NRL, 3/18/96

	11/20/96 by N. RIch	added read_carr_long call if cday=0; changed 
				cday(n-1) to cday(n) and cday(n) to cday(n+1); 
				made dte variable same as day; initialized clong
				to 360 if not set and change clong to keyword;
				changed +/- in computing el and wl day
	12/30/96 by N. Rich	changed output to CDS structure

	@(#)carrdate.pro	1.1 10/05/96 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/carrdate2.pro)


CARRLONG

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	CARRLONG

 PURPOSE:
	This procedure computes the carrington number and longitude given the 
	date.

 CATEGORY:
	LASCO Synoptic

 CALLING SEQUENCE:
	CARRLONG, Date, Cr, Clong

 INPUTS:
	Date:	The date in CDS date/time structure

 OPTIONAL INPUTS:
	None
	
 KEYWORD PARAMETERS:
	EL:	Set this keyword to obtain the date of East Limb passage

	WL:	Set this keyword to obtain the date of West Limb passage

	CMP:	Set this keyword to obtain the date of central meridian passage
		This is the default.

 OUTPUTS:
	Cr:	The carrington rotation number corresponding to the input date
	Clong:	The carrington longitude corresponding to the input date

 COMMON BLOCKS:
	carr_long:	Contains the start date of the carrington rotations from
			the almanac.  Generated by READ_CARR_LONG

 EXAMPLE:
	CARRLONG, date, cnum, clong, /EL

 MODIFICATION HISTORY:
 	Written by:	RA Howard, NRL, 3/18/96
	10/17/95		RAH, Converted dates to CDS time structure

	@(#)carrlong.pro	1.2 10/17/96 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/carrlong.pro)


COMB_FULL_EQ

[Previous Routine] [Next Routine] [List of Routines]
 TITLE:
	COMB_FULL_EQ
 PURPOSE:
	This procedure combines the monthly equatorial region image
	and the monthly full field image into a single monthly model.

 CATEGORY:
	DATA_ANAL

 CALLING SEQUENCE:
	COMB_FULL_EQ,Tel,Td

 INPUTS:
	Tel:	String denoting the telescope: 'c1','c2','c3','c4'
                                               or 'eit'
	Td:	String denoting the date, in one of the following
		formats:	YYYY/MM/DD
				YYY-MM-DD
				YYMMDD

 KEYWORDS:
	FILTER:	If present this string specifies the filter to be used.
		The defaults are the following:
			C1 = 'FeXIV'
			C2 = 'Orange'
			C3 = 'Clear'
			C4 = 'Clear'
	POLAR:	If present this string specifies the polarizer (or sector)
               to be used.  The defaults are the following:
			C1 = 'Clear'
			C2 = 'Clear'
			C3 = 'Clear'
			C4 = '304'


 OUTPUTS:
	None.  The routine will store the minimum image in a file
		named tmdddddd.fts, where t is the telescope number,
		m is the letter 'm', and dddddd is the 6 digit date
		in the format YYMMDD.

 PROCEDURE:
	The routine looks for file names of the form, tmxxxYYMMDDfilpol.fts
	where t      = '1','2','3','4' for the telescope
             m      = 'm' for monthly
             xxx    = 'equ' or 'ful' for equatorial or full images
             YYMMDD = The year, month, day
             fil    = the filter code:
                             C1:  'fv', 'fx', 'na', 'ca', 'cl'
                             C2:  'or', 'rd', 'bl', 'ha'
                             C3:  'cl', 'or', 'rd', 'bl', 'dr'
                         C4/EIT:  'cl', 'a1', 'al4'
             pol    = the polarizer/sector code:
                             C1:  'cl', 'p0', 'pm', 'pp', 'ha'
                             C2:  'cl', 'p0', 'pm', 'pp'
                             C3:  'cl', 'p0', 'pm', 'pp', 'ha'
                         C4/EIT:  '304', '284', '195','171'

 WRITTEN:
	RA Howard, NRL, 9/27/96

     @(#)comb_full_eq.pro	1.1 10/21/96    LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/comb_full_eq.pro)


DIFBKGND

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	DIFBKGND

 PURPOSE:
	Difference the appropriate background image

 CATEGORY:
	DATA_ANAL

 CALLING SEQUENCE:
	Result = DIFBKGND(Img,Hdr)

 INPUTS:
	Img = Input Image array.  It is assumed that the array is full image,
	      (either 1024x1024 or 512x512) so that if the original image was 
	      a subimage, it must be put into the proper place in a full image 
	      array.
	Hdr = FITS header

 KEYWORDS:
	MINVAL:  If set, the minimum value for the byte scaling is set to
                this value.  The default is the minimum value in the image.
       MAXVAL:  If set, the maximum value for the byte scaling is set to
                this value.  The default is the maximum value in the image.
       LOGSCL:  If set, a logarithmic scaling is applied.  The default is
                linear scaling.
	ALTMIN:  If set, the minimum value for the byte scaling when the
                background image is NOT found is set to this value.  The
                default is the minimum value in the image.
	ALTMAX:  If set, the maximum value for the byte scaling when the
                background image is NOT found is set to this value.  The
                default is the maximum value in the image.
       ALTLOG:  If set, a logarithmic scaling is applied when the background
                image is NOT found.  The default is linear scaling.
       RATIO:   If set the input image is divided by the model.  Zeroes in
                the model or input are set to 1.  The default is to perform
                a subtraction.
       NO_SCALE:If set the output image is not byte scaled.  The default is 
                to byte scale the image.

 OUTPUTS:
	The function returns a byte scaled difference image.

 PROCEDURE:
	The input header is examined to extract the telescope, filter and 
	polarizer/sector.  The directory pointed to by the environment 
	variable $MONTHLY_IMAGES is searched for all monthly images that
	exist for that combination.  If only one monthly image is found it
	is used.  Otherwise the monthly image whose Mid-Date is closest to
	the date of the input image is used.

	No background subtraction is performed if the input image is a dark,
	cal lamp, and continuous mode.  In these cases the image is byte 
	scaled using histogram equalization.  If the image is not 1024x1024.  
	or 512x512 then no background subtraction is used, but the image is 
	scaled according to the input keywords.

 MODIFICATION HISTORY:
	Written, RA Howard, NRL, 16 October 1996

	24 Oct 96, RAH,  Added ratio
	25 Oct 96, RAH,  Added save of last background in common
	16 Jul 97, RAH,  Modified call to OFFSET_BIAS to pass header
	26 Feb 98, RAH,  Modified method for determining whether a background image was found

       @(#)difbkgnd.pro	1.5 03/03/98     LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/difbkgnd.pro)


LASER8EW

[Previous Routine] [Next Routine] [List of Routines]
 NAME:		CONGRID
 PURPOSE:	Simulate the action of the VAX/VMS CONGRID/CONGRIDI function.
		Shrink or expand the size of an image.
 CATEGORY:	Image processing.
 CALLING SEQUENCE:
	Result = CONGRID(Image, Xs, Ys [, Interp = Interp])
 INPUTS:
	Image = 2D array to resample.
	Xs = desired number of columns for result.
	Ys = number of rows for result.
 KEYWORD PARAMETERS:
	Interp = keyword which if set causes bilinear interpolation to be
		used.  Otherwise nearest neighbor method is used.
 OUTPUTS:
	Result = Image of same type as input, of size (Xs, Ys).
 COMMON BLOCKS:
	None.
 SIDE EFFECTS:
	None.
 RESTRICTIONS:
	Doesn't completely emulate the VAX/VMS CONGRID.  The case 
	of a rectangular grid is not implemented.  This can be done 
	using multiple calls to POLY_2D.
 PROCEDURE:
	Simple call POLY_2D with the warping coefficients.
 MODIFICATION HISTORY:
	DMS, Sept. 1988.

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/laser8ew.pro)


LASER8ONE

[Previous Routine] [Next Routine] [List of Routines]
 NAME:		CONGRID
 PURPOSE:	Simulate the action of the VAX/VMS CONGRID/CONGRIDI function.
		Shrink or expand the size of an image.
 CATEGORY:	Image processing.
 CALLING SEQUENCE:
	Result = CONGRID(Image, Xs, Ys [, Interp = Interp])
 INPUTS:
	Image = 2D array to resample.
	Xs = desired number of columns for result.
	Ys = number of rows for result.
 KEYWORD PARAMETERS:
	Interp = keyword which if set causes bilinear interpolation to be
		used.  Otherwise nearest neighbor method is used.
 OUTPUTS:
	Result = Image of same type as input, of size (Xs, Ys).
 COMMON BLOCKS:
	None.
 SIDE EFFECTS:
	None.
 RESTRICTIONS:
	Doesn't completely emulate the VAX/VMS CONGRID.  The case 
	of a rectangular grid is not implemented.  This can be done 
	using multiple calls to POLY_2D.
 PROCEDURE:
	Simple call POLY_2D with the warping coefficients.
 MODIFICATION HISTORY:
	DMS, Sept. 1988.

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/laser8one.pro)


MAKE_ALL_DAYS

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	MAKE_ALL_DAYS

 PURPOSE:
	This procedure is an easy interface to the MK_DAILY_MED procedure

 CATEGORY:
	LASCO SYNOPTIC

 CALLING SEQUENCE:
	MAKE_ALL_DAYS,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
	medians 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_MED is called for each day.

 EXAMPLE:
	To make all the daily median images for the month of June, 1996 for
	C3:

		MAKE_ALL_DAYS,'c3','960601','960630'

 MODIFICATION HISTORY:
 	Written by:	RA Howard, 20 October, 1996

	@(#)make_all_days.pro	1.2 07/23/97 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/make_all_days.pro)


MAKE_ALL_MONEXP

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	MAKE_ALL_MONEXP

 PURPOSE:
	This procedure is an easy interface to the MONITOR_EXP procedure

 CATEGORY:
	LASCO SYNOPTIC

 CALLING SEQUENCE:
	MAKE_ALL_MONEXP,Stdte,Endte

 INPUTS:
	Stdte:	The starting date specified as a string: YYMMDD, eg. 960601
	Endte:	The ending date specified as a string: YYMMDD, eg, 960630
	Lz:	0 for QL, 1 for LZ

 OUTPUTS:
	This function generates images in $MON_EXP of the statistics for each
	image for each day specfied by the starting and ending dates for all
	three LASCO telescopes.

 PROCEDURE:
	A loop is generated between the start and end dates, in which the
	routine MONITOR_EXP is called for each day.

 EXAMPLE:
	To compute all of the image statistics for the month of June, 1996:

		MAKE_ALL_MONEXP,'960601','960630'

 MODIFICATION HISTORY:
 	Written by:	RA Howard, 22 May 1997

	@(#)make_all_monexp.pro	1.1 09/26/97 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/make_all_monexp.pro)


MAKE_ALL_MONTHS

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	MAKE_ALL_MONTHS

 PURPOSE:
	This procedure is an easy interface to the MK_MONTHLY_MIN procedure

 CATEGORY:
	LASCO SYNOPTIC

 CALLING SEQUENCE:
	MAKE_ALL_MONTHS,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 monthly
	monthly for the specfied telescope, and for each 7th day in between 
	the starting and ending dates.

 KEYWORDS:
	ALL_YEARS: Use daily images from multiple years.
	FILT_POLR: String representing filter/polarizer combination; if not
		   set, defaults to 'clcl' for C3 and 'orcl' for C2
	DAYS_BETWN: Number of days between monthly mins; default is 7
	DAYS_COMPT: Number of days used to compute the min; default is 28

 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_MONTHLY_MIN is called for each day.  The starting date
	is always the wednesday of the month, which is the modified julian day 
	number evenly divided by 7.

 EXAMPLE:
	To make all the monthly minimum images for the month of June, 1996 for
	C3:

		MAKE_ALL_MONTHS,'c3','960601','960630'

 MODIFICATION HISTORY:
 	Written by:	RA Howard, 20 October, 1996
 	Mofified:	
		06 Oct 1997 SEP - Added ALL_YEARS flag
		1999/02/11  NBR - Added keywords FILT_POLR, DAYS_BETWN, DAYS_COMPT

	@(#)make_all_months.pro	1.2 02/11/99 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/make_all_months.pro)


MAKE_DAILY_IMAGE

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	MAKE_DAILY_IMAGE

 PURPOSE:
	This function generates the daily image for the SOHO summary images.

 CATEGORY:
	LASCO_SYNOPTIC

 CALLING SEQUENCE:
	Result - MAKE_DAILY_IMAGE (Date, Tele)

 INPUTS:
	Date:	Date for which the image is desired, (YYMMDD)
		If undefined, then uses the current date
	Tele:	Telescope designator, string of 'c2','c3'

 KEYWORD PARAMETERS:
	TIME:	If set use the image closest to the specified time (HHMM)
		else uses the latest image
	FITS:	If set create a FITS file as output
	GIF:	If set create a GIF file as output
	LZ:	IF set, use level 0 data else use quick look data
	SCREEN:	If set, writes the resultant image to the current display
		else writes to the Z buffer
	ARCHIVE:	If set, write to the SOHO Summary file area

 OUTPUTS:
	Result:	Returns the byte-scaled image if successful, else returns -1.

 RESTRICTION:
	Only works for C2 and C3

 PROCEDURE:
	If the input parameter, date, is defined, then that date is used
	otherwise the current date is used.  Then reads in the img_hdr.txt 
	file corresponding to the desired date.
	Finds the image that is closest to the input time if set, else
	finds the latest image.  The standard synoptic type of image is
	selected (C2: orange/clear; C3: clear/clear).  The image shold
	be large enough and not have too many missing blocks.
	Then the image is scaled by the background model.

 EXAMPLE:
	cimg = MAKE_DAILY_IMAGE('960810','c3')

 MODIFICATION HISTORY:
 	Written by:	S.E. Paswaters, NRL, Dec 1997

	@(#)make_daily_image.pro	1.3 02/26/99 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/make_daily_image.pro)


MK_ALL_MIN

[Previous Routine] [Next Routine] [List of Routines]
 TITLE:
	MK_ALL_MIN
 PURPOSE:
	This procedure generates the minimum of the all of the monthly
	minimum images.

 CATEGORY:
	DATA_ANAL

 CALLING SEQUENCE:
	MK_ALL_MIN,Tel,Filpol

 INPUTS:
	Tel:	String denoting the telescope: 'c1','c2','c3','c4'
	Filpol:	String denoting the filter/polarizer configuration

 OUTPUTS:
	None.  The routine will store the minimum image in a file
		named tm_all.fts, where t is the telescope number,
		m is the letter 'm', and _all is the string '_all'

 MODIFICATION HISTORY:
	WRITTEN 	RA Howard, NRL, 3 Oct 96
	 8 Nov 96	RAH, checks for bad blocks are <= 0
	30 Jan 97	SEP, check filenames for YYMMDD

	@(#)mk_all_min.pro	1.3 01/30/97 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/mk_all_min.pro)


MK_DAILY_C1_MED

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	MK_DAILY_C1_MED

 PURPOSE:
	This procedure generates an image by taking all the files of a given
	type for one day and finding the median value for each pixel.

 CATEGORY:
	DATA_ANAL

 CALLING SEQUENCE:
	MK_DAILY_C1_MED,Tel,Date

 INPUTS:
	Tel:	String denoting the telescope, 'c1','c2','c3','c4'
	Date:	Gives the date to be processed in one of the following formats:
			YYMMDD,	6 character string
			YYYY/MM/DD, 10 character string
			CDS Date Structure
			Long Word of the modified julian date

 OPTIONAL INPUTS:
	None

 KEYWORD PARAMETERS:
	FILTER:	String denoting the filter position.  The default depends on 
		the telescope:
			C1:  FeXIV
			C2:  Orange
			C3:  Clear
			C4:  Clear
	POLAR:	String denoting the polarizer position.  The default depends on
		the telescope:
			C1:  Clear
			C2:  Clear
			C3:  Clear
			C4:  304A
	WLL:	String denoting the lower FP wavelength of an interval. 
	WLU:	String denoting the upper FP wavelength of an interval. 
	ONOFF:  String denoting whether the on line or off line wavelength should be used
	QL:	If set uses QL data, else LZ

 OUTPUTS:
	None.

 SIDE EFFECTS:
	Writes a fits file to $MONTHLY_IMAGES.

 RESTRICTIONS:
	Only looks for full resolution, full width, any height.

 PROCEDURE:
	For each image that satifies the selection conditions, (naxis1=1024),
       filter and polarizer as requested), the median image is computed of 
	the median value of all the images for a single day after being
	normalized to the median exposure time.  

	If the number of images is less than 7 for any pixel, that pixel is 
	not computed in the first pass.  In the second pass, all full images
	within +/- 2 days of the given day.  

 EXAMPLE:
	To create the daily median image for 1 Sep 1996:

		MK_DAILY_C1_MED,'c3','960901'
	or
		MK_DAILY_C1_MED,'c3','1996/09/01'

 MODIFICATION HISTORY:
 	Written by:	R.A. Howard, NRL, 9/27/96

	Version 2,      RAH, 10/10/96, Modified to accept all image sizes
	Version 3,      RAH, 10/21/96, Added filter and polarizer as inputs
	Version 4,      SEP, 11/12/96, Fixed problem with equatorial img boundary lines.
				       Added check for ADCT compressed images.

	@(#)mk_daily_c1_med.pro	1.1 07/16/97 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/mk_daily_c1_med.pro)


MK_DAILY_MED

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	MK_DAILY_MED

 PURPOSE:
	This procedure generates an image by taking all the files of a given
	type for one day and finding the median value for each pixel.

 CATEGORY:
	DATA_ANAL

 CALLING SEQUENCE:
	MK_DAILY_MED,Tel,Date

 INPUTS:
	Tel:	String denoting the telescope, 'c1','c2','c3','c4'
	Date:	Gives the date to be processed in one of the following formats:
			YYMMDD,	6 character string
			YYYY/MM/DD, 10 character string
			CDS Date Structure
			Long Word of the modified julian date

 OPTIONAL INPUTS:
	None

 KEYWORD PARAMETERS:
	QL:	If set then use quick look date, else use level 0 data
	FILTER:	String denoting the filter position.  The default depends on 
		the telescope:
			C1:  FeXIV
			C2:  Orange
			C3:  Clear
			C4:  Clear
	POLAR:	String denoting the polarizer position.  The default depends on
		the telescope:
			C1:  Clear
			C2:  Clear
			C3:  Clear
			C4:  304A
	WLL:	String denoting the lower FP wavelength of an interval. 
	WLU:	String denoting the upper FP wavelength of an interval. 
	ONOFF:  String denoting whether the on line or off line wavelength should be used

 OUTPUTS:
	None.

 SIDE EFFECTS:
	Writes a fits file to $MONTHLY_IMAGES.

 RESTRICTIONS:
	Only looks for full resolution, full width, any height.

 PROCEDURE:
	For each image that satifies the selection conditions, (naxis1=1024),
       filter and polarizer as requested), the median image is computed of 
	the median value of all the images for a single day after being
	normalized to the median exposure time.  

	If the number of images is less than 7 for any pixel, that pixel is 
	not computed in the first pass.  In the second pass, all full images
	within +/- 2 days of the given day.  

 EXAMPLE:
	To create the daily median image for 1 Sep 1996:

		MK_DAILY_MED,'c3','960901'
	or
		MK_DAILY_MED,'c3','1996/09/01'

 MODIFICATION HISTORY:
 	Written by:	R.A. Howard, NRL, 9/27/96

	Version 2,      RAH, 10/10/96, Modified to accept all image sizes
	Version 3,      RAH, 10/21/96, Added filter and polarizer as inputs
	Version 4,      SEP, 11/12/96, Fixed problem with equatorial img boundary lines.
				       Added check for ADCT compressed images.
	Version 5,	RAH, 6/1/98, Added keyword parameter, QL to select QL or LZ images
					Force write to $MONTHLY_IMAGES
	Version 6,	NBR, 2/11/99,  Fix 1999 bug (LE instead of LT 99)


	@(#)mk_daily_med.pro	1.8 02/11/99 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/mk_daily_med.pro)


READ_CARR_LONG

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
	READ_CARR_LONG

 PURPOSE:
	This procedure reads in the carrington number and date information file.
	It is called from other routines as needed, and thus doesn't need to be
	called by the user explicitly.

 CATEGORY:
	LASCO Synoptic

 CALLING SEQUENCE:
	READ_CARR_LONG, Date, Cr, Clong

 INPUTS:
	None

 OPTIONAL INPUTS:
	None

 OUTPUTS:
	The only output is the storing of the carrington information into a common block.
	
 COMMON BLOCKS:
	carr_long:	Contains the start date of the carrington rotations from
			the almanac.  Generated by this routine.

 EXAMPLE:
       

 MODIFICATION HISTORY:
 	Written by:	RA Howard, NRL, 3/18/96

	@(#)read_carr_long.pro	1.4 11/07/96 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/read_carr_long.pro)


SYNSCAN

[Previous Routine] [Next Routine] [List of Routines]
 NAME: 
             SYNSCAN 
 
 PURPOSE: 
             This routine scans an image file and creates a  
             constant radius scan for synoptic maps. 
 
 CATEGORY: 
             REDUCTION 
 
 CALLING SEQUENCE: 
             SYNSCAN,Filename 
 
 INPUTS: 
             Filename:   Ascii string of the name of the  
                         FITS file 
 
 OPTIONAL INPUTS: 
             None 
        
 KEYWORD PARAMETERS: 
             None 
 
 OUTPUTS: 
             None 
 
 OPTIONAL OUTPUTS: 
             None 
 
 COMMON BLOCKS: 
             None 
 
 SIDE EFFECTS: 
             Creates a FITS file of the constant radius  
             scans in the current directory
 
 RESTRICTIONS: 
             The directory containing the FITS file should 
             be the local directory or !imgdir should be set
             to point to the directory
 
 PROCEDURE: 
 
 EXAMPLE: 
 
 MODIFICATION HISTORY: 
       Written by:     RA Howard, NRL, 26 Nov 1995. 
    Version 1     26 Nov 95 Initial Release 
    Version 2     13 Apr 96 Modified for keywords
 
	@(#)synscan.pro	1.1 10/05/96 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/synscan.pro)


WRITE_SUMMARIES

[Previous Routine] [Next Routine] [List of Routines]
 NAME:				WRITE_SUMMARIES

 PURPOSE:			Create FITS and GIF image of the summary image 

 CATEGORY:			REDUCTION

 CALLING SEQUENCE:		WRITE_SUMMARIES,Img,Hdr

 INPUTS:			Img = Input Image array
				Hdr = FITS header

 OPTIONAL INPUTS:
				Img2 = Input image array for C1 ase image
				Hdr2 = FITS header for Img2 array
	
 OUTPUTS:			FITS and GIF files are written

 RESTRICTIONS:			This must be done with IDL having an X window 
				display.

 PROCEDURE:			Scales the image to not larger than 512 x 512,
				and creates a FITS image with LASCO logo in
				image Derived from WRITE_LAST_IMG

 EXAMPLE:

 MODIFICATION HISTORY:		Written, RA Howard, NRL
    VERSION 1   rah    12 Apr 1996
    VERSION 2   rah    15 Apr 1996
    VERSION 3   rah    29 Jun 1996
    VERSION 4   rah    29 Oct 1996, Img2 array added to subtract C1 base
    VERSION 5   rah    21 Jul 1997, changed scaling on C2/C3 to ratio model


 @(#)write_summaries.pro	1.7 11/20/97 :NRL Solar Physics

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/write_summaries.pro)


WRITE_SUMMARIES2

[Previous Routine] [List of Routines]
 NAME:				WRITE_SUMMARIES

 PURPOSE:			Create FITS and GIF image of the summary image 

 CATEGORY:			REDUCTION

 CALLING SEQUENCE:		WRITE_SUMMARIES,Img,Hdr

 INPUTS:			Img = Input Image array
				Hdr = FITS header

 OPTIONAL INPUTS:		None
	
 OUTPUTS:			FITS and GIF files are written

 RESTRICTIONS:			This must be done with IDL having an X window 
				display.

 PROCEDURE:			Scales the image to not larger than 512 x 512,
				and creates a FITS image with LASCO logo in
				image Derived from WRITE_LAST_IMG

 EXAMPLE:

 MODIFICATION HISTORY:		Written, RA Howard, NRL
    VERSION 1   rah    12 Apr 1996
    VERSION 2   rah    15 Apr 1996
    VERSION 2.1 SPP    28 May 1996 (Replaced DATE-OBS and TIME-OBS
				     keywords with DATE_OBS and TIME_OBS).


	@(#)write_summaries2.pro	1.1 10/05/96 LASCO IDL LIBRARY

(See /net/cronus/opt/local/idl_nrl_lib/lasco/synoptic/write_summaries2.pro)