mees_log_read $SSW/optical/mees/idl/catalog/mees_log_read.pro
[Previous] [Next]

 Reads the Mees Solar Observatory daily log text file
 and returns the information in a structure.


FUNCTION mees_log_read, file


 INPUT PARAMETERS:
	file = name of log file to read, string.

 RETURNS:
	outstr = log output structure, one element per log text line.

 CALLS: ***
	CREATE_STRUCT [1], CREATE_STRUCT [2], DETABIFY [1], DETABIFY [2], DETABIFY [3]
	STR_SEP, anytim [1], anytim [2], anytim [3], anytim [4], anytim [5], mees_prog_info
 RESTRICTIONS:  Does not work well on early data formats.  Problem
	is connected with Tab spacing of files.  (17-Jul-2000)

 HISTORY:
	Written  Oct 14, 1999  Barry LaBonte
	Use ANYTIM in place of FMT_TIM to get century  July 13, 2000  BJL
	Use STR_DETAB to align columns  August 2, 2000  BJL
	Better logic for even older files  January 3, 2001  BJL
	Ditto   May 8, 2001  BJL
	Replace STR_DETAB with DETABIFY  Nov 4, 2002  BJL
	Handle cardinal points positions Oct 22, 2003  BJL


mees_log_start $SSW/optical/mees/idl/catalog/mees_log_start.pro
[Previous] [Next]

 Main program for daily Mees Log plot


  MEES_LOG_START


 RESTRICTIONS:
	Uses GUNZIP to read Mees Met files.

 HISTORY:
	 Written  October 25, 1999  Barry LaBonte
	Updated filename generation  Sept 13, 2000  BJL


mees_name_format $SSW/optical/mees/idl/catalog/mees_name_format.pro
[Previous] [Next]

 Generates complete URLs for access to Mees databases


FUNCTION mees_name_format, datatype, date, local=local


 INPUT PARAMETERS:
	datatype = Data name, may include preceding 'MEES_'. Valid names are:
		IVM_CAL		Imaging Vector Magnetograph inverted
					instrument matrix
		IVM_CALVAR	IVM calibration variation with wavelength
               IVM_DARK        Imaging Vector Magnetograph dark current
               IVM_FP          Imaging Vector Magnetograph Fabry-Perot
		IVM_SCAT	Imaging Vector Magnetograph scattered light
		LOG		Observing log
		MET		Weather 
		
	date = Date of desired file, any standard format.

 OPTIONAL INPUT KEYWORDS:
	local - If set, returns as string array, with
		[site URL, directory, filename].

 RETURNS:
	URL, string.

 CALLS: ***
	STR_SEP, anytim [1], anytim [2], anytim [3], anytim [4], anytim [5], anytim2doy [1]
	anytim2doy [2]
 CALLED BY:
	remote_name_format
 HISTORY:
	Written  September 13, 2000  Barry LaBonte


mees_prog_info $SSW/optical/mees/idl/catalog/mees_prog_info.pro
[Previous] [Next]

 Returns information about observing setups for instruments
 at Mees Solar Observatory


FUNCTION mees_prog_info, inray


 INPUT PARAMETERS:
	inray = array of requests, string array.  inray(0,*) = instrument
		ID, inray(1,*) = program ID.
		Valid instrument IDs are:
		'MWLT', 'K-LINE', 'POI', 'CORON', 'STOKES', 'IVM', 'MCCD'.

 RETURNS:
	outray = array of information, string array.  Elements are:
		outray(0,*) = Temporal cadence, seconds. Set to -1 if single
				observations only.
		outray(1,*) = FOV, arcseconds.
		outray(2,*) = Pixel scale, arcseconds.
		outray(3,*) = Wavelength, nm.

 CALLED BY:
	mees_log_read
 RESTRICTIONS:
	Returns blanks if an invalid instrument/program pair are requested.

 HISTORY:
	Written  October 19, 1999  Barry LaBonte
       Add DLM14  Jan 07, 2003  BJL
	Add DLM08  Aug 15, 2003  BJL
	Add DLM15, DLM16  Oct 27, 2003  BJL