Y_CHECKER $SSW/soho/cds/idl/util/misc/y_checker.pro
[Previous] [Next]
 Project     : SOHO - CDS

 Name        : Y_CHECKER

 Purpose     : A routine called by COSMIC_RAY_ZAPPER.

 Category    : Analysis

 Explanation : When looking for spikes in the Y direction, I've made things 
		a bit more involved because sometimes spikes are not a single 
		pixel but a pair of pixels next to each other. Suppose we have 
		4 adjacent pixels with counts a, b, c, d. Then if b and c are 
		both part of the cosmic ray and s.t. b,c>>a,d then comparing 
		b directly with a and c will not reveal a cosmic ray. 
		However, by then comparing b with a and d will reveal that b 
		is a cosmic ray and so it will be flagged.

		In comparing with a and d, I'm using a stronger cutoff 
		criterion.

 Syntax      : Y_CHECKER, COL, YCO, Y_SIZ, CUTOFF, Y_RAY, ARB_AMOUNT, $
			ANY_DROPOUTS

 Inputs      : COL	= if the potential cosmic ray is at (L0,X0,Y0), then 
			  COL is simply the ARR(L0,X0,*)

		YCO	= in the above notation, YCO is Y0

		Y_SIZ	= the size of the COL

		CUTOFF	= same as in COSMIC_RAY_ZAPPER

		Y_RAY	= the flag for signalling a cosmic ray

		ARB_AMOUNT	= set in COSMIC_RAY_ZAPPER and used to replace
				  any zero values in U

		ANY_DROPOUTS	= 0 if no drop-outs in the data array
				  1 if drop-outs in data array

 Calls       : ***
	AVERAGE, RAY_NEIGHBOUR
 CALLED BY:
	CLEAN_SPIKE
 Restrictions: COL must have dimension greater than 1
		
 Side effects: 

 Prev. Hist. : 

 History     : Version 1, 15/9/96 	PRY 

 Contact     : Peter Young,  Cambridge University


ydb_exist [3] $SSW/soho/mdi/idl_old/gen/ys_util/ydb_exist.pro
[Previous] [Next]
NAME:
	ydb_exist
PURPOSE:
	Check if the needed YDB files are on-line (like PNT, ATR, ATT, ...)
CALLING SEQUENCE:
	ans = ydb_exist(index, 'PNT')
	ans = ydb_exist(times, 'ATR')
	ans = ydb_exist([sttim, entim], 'PNT', /range)
INPUT:
	times	- list of times in any of the 3 formats
	prefix	- The prefix of the database files to be checked
 CALLS: ***
	CONCAT_DIR [1], CONCAT_DIR [2], CONCAT_DIR [3], FILE_EXIST [2], UNIQ [1], UNIQ [2]
	UNIQ [3], concat_dir [4], data_type [1], data_type [2], file_exist [1]
	file_exist [3], tim2orbit [1], tim2orbit [2], week_loop [1], week_loop [2]
	week_loop [3]
 CALLED BY:
	goes_plot [1], goes_plot [2], goes_plot [3], goes_plot [4], goes_plot [5], rd_pnt
	rd_week_file [2], sxt_cen [1], sxt_cen [2], weekid [2]
OPTIONAL KEYWORD INPUT:
	range	- If set, then "times" is a two element array which
		  is the start and stop time of the range needed.
OUTPUT:
	ans	- Boolean value.  If any of the needed files exist, 
		  then returns a 1, otherwise it returns a 0
HISTORY: 
	Written 18-Aug-93 by M.Morrison (taking PNT_EXIST as start)
	12-Oct-93 (MDM) - Added /RANGE option
	13-Oct-93 (MDM) - Added capability of checking the range based on
			  week/year number input
			- Added /QDEBUG option
	 2-Mar-94 (MDM) - Added strlowcase statement
	16-Mar-94 (MDM) - Modified to check to see if the DIR_SXT_xxx
			  environment variable exists before doing a FILE_EXIST
       16-Feb-95 (RDB) - Changed file search to *.* - cause of VMS problem


ydb_pre2dir [1] $SSW/soho/mdi/idl_old/gen/ys_util/ydb_pre2dir.pro
[Previous] [Next]
   Name: ydb_pre2dir

   Purpose: return local directory for input file prefixes or subdir name
   
   Calling Sequence:
      local=ydb_pre2dir(PREFIX [,/toplev] )

   Calling Examples:
      t=findfile(ydb_pre2dir('nar'))
      cd,ydb_pre2dir('gev',/top)	; local parent directory of gev...
   
 CALLS: ***
	BREAK_FILE [1], BREAK_FILE [2], BREAK_FILE [3], break_file [4], get_logenv [1]
	get_logenv [2], strsplit, uniqo [1], uniqo [2]
 CALLED BY:
	rd_ydbtap
   History:
      15-Jun-1994 (SLF) - originally, utility for rd_ydbtap.pro


yesno [2] $SSW/soho/mdi/idl_old/gen/ys_util/yesno.pro
[Previous] [Next]
NAME:
	yesno
PURPOSE:
	To determine what the answer to a yes or no question was
	will take the following:

	-----   YES  -------           -----  NO  -------
	     
	        YES                           NO
		yes                           no
		Y                             N
		y                             n
               1                             0
                                             <CR>
INPUT/OUTPUT:
	in	- The value to be checked
		Yes will return an integer  1
		No will return an integer  0

 CALLED BY:
	BCS_FREE_DATA, hardcopy [1], hardcopy [2], yesnox [1], yesnox [2]
HISTORY:
	Written by Michael VanSteenberg Update  5/27/81


yesnox [2] $SSW/soho/mdi/idl_old/gen/ys_util/yesnox.pro
[Previous] [Next]
NAME:
	yesnox
PURPOSE:
	Ask a yes/no question and check the answer
	for validity (calls "yesno")
INPUT:
	str	- The question string
OUTPUT:
	in	- Returns a 0 for no, a 1 for yes
OPTIONAL INPUT:
	default	- Select the default answer.  If a 
		  <CR> is chosen, select the default answer
		  If not present, the default answer is "NO"
 CALLS: ***
	yesno [1], yesno [2]
 CALLED BY:
	Alt_tim_sel, GET_TRANGE, HXTPIXON, HXT_QLOOK, OPEN_ANACUBE, PIXEL_LC, PREP_HXTDAT
	RD_TAR, SIMPLE_TV2, TEMP_BCK_TIME_INTV, WR_PLAN_AREA, XMOVIE_SFM, any_fsp, ar_prep
	box_sxthxt_fsp, cancel_dsn, choose_interval, daily_forecast [2], dbase2disk
	delete_week [1], delete_week [2], ext_subset [1], ext_subset [2], file_purge [1]
	file_purge [2], fix_pars0, focus_trace [1], focus_trace [2], focus_trace_flt
	gbo_obs_coord, go_get_sirius, go_rdtap [1], go_rdtap [2], go_yo_prod_batch
	goes_teem, goesem_eqn [1], goest_eqn [1], grs32_fsp, grsl_fsp, hxs_fsp, hxsgrs_fsp
	hxt_fsp, hxt_survey, hxtbox_fsp, input_time [1], input_time [2], jitter_gif_xyimg
	lastspd, mdifocus2, mdiiss, mdilaser, mk_mdi_iap, mk_mo_disk, mk_mo_disk2
	mk_orbit_sum, mk_pix [1], mk_pix [2], mk_ssc_batch [1], mk_ssc_batch [2]
	mult_th_fsp, op_get_special, op_times, plot_ssl, quit, sector_avg, sel_region
	sxt_etemp, sxt_summary, sxt_uniq [1], sxtbox_fsp, teambb [1], teambb [2]
	term_score2, video_menu, yoyo_man2
HISTORY:
	Written 1988 by M.Morrison


YEVENT $SSW/soho/sumer/idl/contrib/germerott/sumer_head/yevent.pro
[Previous] [Next]
 PROJECT:
       SOHO - SUMER

 NAME:
       YEVENT()

 PURPOSE: 
       returns y detector events in cts/s including specific scale factor

 CATEGORY:
       
 
 EXPLANATION:
       
 SYNTAX: 
       Result = yevent()

 EXAMPLES:
       
 INPUTS:
       header - BYTARR(92) Image Header

 OPTIONAL INPUTS: 
       None.

 OUTPUTS:
       None.

 OPTIONAL OUTPUTS:
       None.

 KEYWORDS: 
       None.

 CALLS: ***
	DETECTOR
 COMMON:
       None.

 RESTRICTIONS: 
       None.

 SIDE EFFECTS:
       None.

 HISTORY:
       Version 1, October 7, 1996, Dietmar Germerott, MAPE Lindau. Written

 CONTACT:
       Dietmar Germerott, MAPE Lindau (germerott@linax1.mpae.gwdg.de)


YMD2JD [3] $SSW/soho/mdi/idl_old/gen/jhuapl/ymd2jd.pro
[Previous] [Next]
 NAME:
       YMD2JD
 PURPOSE:
       From Year, Month, and Day compute Julian Day number.
 CATEGORY:
 CALLING SEQUENCE:
       jd = ymd2jd(y,m,d)
 INPUTS:
       y = Year (like 1987).                    in
       m = month (like 7 for July).             in
       d = month day (like 23).                 in
 KEYWORD PARAMETERS:
 OUTPUTS:
       jd = Julian Day number (like 2447000).   out
 CALLED BY:
	JD2YMD [1], JD2YMD [2], JD2YMD [3], SUN [1], SUN [2], WEEKDAY [1], WEEKDAY [2]
	WEEKDAY [3]
 COMMON BLOCKS:
 NOTES:
 MODIFICATION HISTORY:
       R. Sterner,  23 June, 1985 --- converted from FORTRAN.
       Johns Hopkins University Applied Physics Laboratory.
       RES 18 Sep, 1989 --- converted to SUN

 Copyright (C) 1985, Johns Hopkins University/Applied Physics Laboratory
 This software may be used, copied, or redistributed as long as it is not
 sold and this copyright notice is reproduced on each copy made.  This
 routine is provided as is without any express or implied warranties
 whatsoever.  Other limitations apply as described in the file disclaimer.txt.


YMD2SEC [2] $SSW/soho/mdi/idl_old/gen/utplot/ymd2sec.pro
[Previous] [Next]
 NAME: YMD2SEC
 PURPOSE: Convert YY/MM/DD string to sec.  Or if YMD and SEC parameters
	aren't passed, to return arrays containing first of month and 
	first of year relative to start of year and 79/1/1 respectively
 CALLING SEQUENCE: 
	YMD2ED,YMD=YMD,SEC=SEC,DAYS_MONTH=DAYS_MONTH,IUTYEARS=IUTYEARS,
		ALT=ALT,ERROR=ERROR
 INPUT PARAMETERS:
	YMD -	ASCII string YY/MM/DD
	ALT -	If set, then just return DAYS_MONTH and IUTYEARS arrays
 OUTPUT PARAMETERS:
	SEC -	Result. Number of seconds since 79/1/1,0000 corresponding to
		beginning of day specified in YMD.
	DAYS_MONTH - Array containing first of month relative to start of year
		in double precision seconds.
	IUTYEARS - Array containing first of year relative to 79/1/1 in double
		precision seconds for 21 years starting at 80/1/1.
	ERROR -	=0/1. If set to 1, indicates error in YY/MM/DD format.
 CALLED BY:
	ATIME [1], ATIME [2], SET_UTPLOT [1], SET_UTPLOT [2], utplot_UTIME [1]
	utplot_UTIME [2]
 MODIFICATION HISTORY:
	Written by Richard Schwartz, Feb. 1991
	27-May-93 (MDM) - Modification to work past the year 2000


yo_file_check [1] $SSW/soho/mdi/idl_old/gen/ys_util/yo_file_check.pro
[Previous] [Next]
   Name: yo_file_check

   Purpose: verify integrity of Yohkoh data files

   Calling Sequence:
     yo_file_check, filearray [,badfiles, status=status, allgood=algood, /quiet] 

   Input Paramters:
      infiles - string or string array of filesnames to check

   Output Parameters:
      badfiles - names of infiles which failed one or more tests
    
   Keyword Parameters:
      status - (output) - status flags to indicate test failures ; logical OR
	                   (0=ok,1=missing,2=too small,4=size,8=integer,16=real)
      allgood - (output) - scaler boolean (1=allok, 0= 1 or more files bad)
                           (so caller can use: if allgood then ... else ....)
      quiet  - (input) - switch, if set, suppress most error messages
      delete - (input) - switch, if set, delete bad files

   Method:
      check - file_exist? file_size=internal size?
              internal integer and real value verifications

 CALLS: ***
	FILE_STAT [1], FILE_STAT [2], Rd_Pointer [1], Rd_Pointer [2], data_chk [1]
	data_chk [2], file_list [1], file_list [2], file_stat [3], prstr [1], prstr [2]
 CALLED BY:
	dbase2disk, mo_patch
   History:
      3-Jun-1994 (SLF) - rewrite yo_file_check (by MDM) - external size checks
                         perform internal data integrity checks
      7-Jun-1994 (SLF) - add ALLGOOD, INDIR, and DELETE keywords


yo_tape_widg [1] $SSW/soho/mdi/idl_old/gen/ys_util/yo_tape_widg.pro
[Previous] [Next]

 File YO_TAPE_WIDG.PRO

 CALLS:
 CALLED BY
	MAKE_WIDG_EV [1], MAKE_WIDG_EV [2]


YO_TAPE_WIDG [2] $SSW/soho/mdi/idl_old/gen/ys_util/yo_tape_widg.pro
[Previous] [Next]

 NAME: 
	YO_TAPE_WIDG

 PURPOSE:
     	Create a widget and populate it with the values passed in ARRAY

 CATEGORY:
       YOHKOH tape 

 CALLING SEQUENCE:
       var = yo_tape_widg(array, [types=types, typ_index=typ_index, one=one])

 CALLED BY:
	GO_RDTAP

 CALLS TO:
	MAKE_WIDG_EV	throught the XMANAGER

 INPUTS:
       ARRAY       A string or string array of values to be used as buttons.
		    When the keyword TYPES is present, then these will be 
		    the names of the buttons in the first column only.

 OPTIONAL INPUTS:
	TYPES	    A string or string array containing the values to be used 
		    as button names in the second column of buttons.

	ONE	    If set then only one button may be turned on at a time.

 OUTPUTS:
	The result returns the select indices of the array ARRAY.

 OPTIONAL OUTPUTS:
	TYP_INDEX   Returns the selected indices of the array TYPES,
		    but only when the keyword TYPES is present.

 CALLS: ***
	MAKE_WIDG_EV [1], MAKE_WIDG_EV [2], XMANAGER
 CALLED BY:
	MAKE_WIDG_EV [1], MAKE_WIDG_EV [2]
 COMMON BLOCKS:
	COMMON EVENT,  $            	; needed for the event handler
			INDEX, $	; record the status of the buttons	
			IST,   $        ; remember the last selected button
			IEN,   $	; remember the second to last
			EXCLUS		; if set, simulate exclusive buttons

 SIDE EFFECTS:
	Widgets are created.

 RESTRICTIONS:
	Must have widgets available.

 PROCEDURE:
	Based on the key words present, construct a widget populated with
	the values passed in as array.  Upon return from the event handler
	determine which button(s) were selected by the user and return the
	indices

 MODIFICATION HISTORY:
       OCT 93 - Elaine Einfalt (HSTX)


yod_sz [1] $SSW/soho/mdi/idl_old/gen/ys_util/yod_sz.pro
[Previous] [Next]
	NAME:
		yod_sz
	PURPOSE:
		Return a list of file sizes in bytes.
	CALLING SEQUENCE:
               size = yod_sz( files, hdr, drecs [, d_sz=d_sz])

               size    is vector of file sizes of requested files.
               files   is the input request list of file names.
		hdr	contains info for week files from 'xbd'.
               drecs   is the contents w/sizes from 'xbd' file.
		d_sz    optional input, long-word file size list with
			the same length as infn.

 CALLS: ***
	PREFIXCK, yow_sz [1], yow_sz [2]
 CALLED BY:
	get_afile_size [1], get_afile_size [2]
	HISTORY:
		written 8-Nov-91, gal
		2-Mar-92, update for new prefix list.
		bug update, 17-Sep-92


YODAT [1] $SSW/soho/mdi/idl_old/gen/ys_util/yodat.pro
[Previous] [Next]
ROUTINE:
	YODAT
PURPOSE:
	Read an any of the reformatted data files
INPUT:
	This is a program and there are several questions asked.  Sample
	responses are listed below.

	The first question is the input file name.  Examples:
		menu
		many spr*			;all spr files in whole path
		menu bda920224*
		many /yd3/reformat/sfr*	
		many sfr* last			;sfr files in last dir in path
		many sfr* flares		;sfr files in flares directory
		many /yd*/*/hda920325*
		many ./wda*			;wda files in default dir
		spr*				;spr files in default dir
		time
		same bda
	The second question is for datasets to extract.  The options are listed
	there in detail.  Further questions are optionally asked depending on 
	instrument file being read and the kind of data present in it.

	It is possible to extract ground based data using YODAT.  If the first
	character of the input file name is "g", then it is assumbed to be GBO
	data of FITS format.  The MANY and MENU options will work for extracting
	GBO data but only if the filename portion is entered on the same line as
	MENU or MANY (ie: "many gbh*" will work, but entering "many" and then
	entering "gbh*" at the second question will not work).  Using the many
	option will only work if all images selected are the same size.  Do not
	select very many images at once since it the concatenation is not very
	efficient.
HISTORY:
	MDM	Early-1991
       JRL     Updated 18-sep-91 to create info_array
       MDM     Updated 25-Sep-91 to assemble observing regions
	MDM     Updated  1-Oct-91 to only read BCS DP_Sync if asked to
	MDM Ver 3.3 4-Oct  - Allowed SEQ_NUM selection for FFI (as well as PFI)
	MDM Ver 3.4 10-Oct - Changed default answer for "Assemble OR" question
			     to yes
			   - Also, removed GET_INFO asking if the data should
			     be written to disk
			   - Also added RD_QS for BCS files
	MDM Ver 3.5 11-Oct - Returned GET_INFO to printing out information
	MDM Ver 3.6 11-Oct - Changed case statement that calls reading routines
			     to only look at first letter of the file name
			     (instead of the whole prefix)
	MDM Ver 3.7 17-Oct - For SXT, when printing out the summary of what
			     Sequence lines are used, print out the parameters
			     for the FIRST (only first) image for that sequence
			   - Also added option -888 to get out without reading
			     any file.
	MDM Ver 3.8 19-Oct - Put in "stop" when "ndset"=0
			   - Also, if file # entered is -1, stop
	MDM Ver 3.9 20-Oct - Modified how option -888 works (first read roadmap,
			     and have option to read DP section). 
	MDM Ver 4.0 21-Oct - Added the menu option for the input file.
       CDP/JRL Ver 4.1 29-Oct - Set stdset_out=0 even when not used by
                               not used by test_rd (used by other routines).
	MDM Ver 4.2  7-Nov-91 - Expanded the SXT seq_num information being printed.
	MDM Ver 4.3 10-Nov-91 - New method of determining what type of file it is
				is to check the "fheader.st$instrument) field.
				Old method was to look at the first letter of the
				file name.
	MDM Ver 4.4 13-Nov-91 - Used new calling sequence for "seq_summary"
				Added option to select sequence by menu
	MDM Ver 4.5 20-Nov-91 - Added capability to select multiple sequences
				using the sequence menu option
	MDM Ver 4.6 21-Nov-91 - Added "SAME" option to select a different instrument
				with the same fileid
	MDM Ver 4.7 22-Nov-91 - Fixed bug with using SXT -777 option (if asked for
				invalid option, it never recovered)
	MDM Ver 4.8  3-Dec-91 - Changed the "normal" option of entering # of data
				sets and starting dataset to check that it does no
				run past the last dataset in the file.
				Also deleted the "significant update" message
				and removed the compiliation of all "_struct" routines
	MDM Ver 5.0 12-Dec-91 - Major changes
				Allowed multiple files to be selected (added "MANY" option)
				Allow user to specify the time (added "TIME" option)
	MDM Ver 5.1 28-Feb-92 - * Removed code that turned "SS" dataset #'s into 
				  a structure and replaced with MK_DSET_STR.
				* Print out total # of datasets
				* Put "break_file" call back in (after 
				  upgrading it to handle arrays of filenames
				* Fixed but with "TIME" option for cases where
				  time span is short (doesn't cross file boundry)
				* Adjusted "SAME" option code to work for
				  multiple file input.
	MDM Ver 6.0  8-Mar-92 - * Added options to plot the lightcurve for
					- HXT sum_l, sum_m1, sum_m2, sum_h
					- WBS sxs1, sxs2, hxs
					- BCS total_cnts(1,2,3,4)
				* Also added option to extract flare data only
	MDM Ver 6.1 10-Mar-92 - * Added "show_obs3" and "plot_fov" options for 
				  SXT
	MDM Ver 6.2 10-Mar-92 - * As per Bob Bentley suggestion, the "dset_arr"
				  will always be the structure equivalent.  This
				  meant that the new options added in Ver 6.0
				  dataset #s are held in the variable "ssss"
	MDM Ver 6.3 12-Mar-92 - * Added "stdset_out" to be defined when using
				  the "ss" option and any of the options using
				  PLOT_LCUR
	MDM Ver 6.4 19-Mar-92 - * Changed the variable name of the roadmap that
				  is returned from the "RD_xxx" routines to be
				  "roadmap2" since it is only the roadmap for 
				  the files that are read for the particular
				  extraction.  The full roadmap of all files is
				  still held in "roadmap".
	MDM Ver 6.5 20-Mar-92 - * Try to trap on an unrecognized command option
				* Added titles to the PLOT_LCUR options
	MDM Ver 6.6 24-Mar-92 - * For the TIME option, make sure that the file
				  names are time ordered before doing search on
				  start/end times
	MDM Ver 6.7 24-Mar-92 - * Return DSET_STR for all calls to RD_xxx
				* Ask before reading HXA scan data for ADA files
	MDM Ver 6.8 25-Mar-92 - * Fixed typo in TIME option (abcde vs abcd)
	MDM Ver 6.9 25-Apr-92 - * Changed the way that SXT was calling sequence
				  summary listing.  It will not do that by default
				  any more, only when asked to do it.
				* Added the TEST_RD_NSAMP option
	MDM Ver 7.0  2-May-92 - * Adjusted TEST_RD_NSAMP option to work for 
				  SXT PFI observing regions
				* Had to add a goto statement with -774 option.
				* GT_DP_MODE was updates so that now option
				  -333 (all flare mode extraction) works for BCS
				* Modified MANY and MENU options to work if a
				  directory is passed with the file specification.
				* Modified MANY and MENU to accept a third 
				  parameter.  If the word "LAST" is added after
				  the file specification, then only files in the 
				  last non-empty directory is listed.
	MDM Ver 7.1  3-May-92 - * Fixed bug in MANY and MENU option when used
				  without any second or third parameter
				* Adjusted code to always call MK_DSET_STR
				  DSET_ARR is always in indicy to roadmap
				  DSET_STR is always the structure
	MDM          2-Jun-92 - * Modified to not stop when there are no datasets
				  only when input file is BCS (so that it can
				  read the DP_SYNC)
	MDM Ver 7.2 24-Jun-92 - * Modification to SXT extraction selection by
				  sequence table number and sequence number
				  (avoid problems with extraction from same file
				  twice)
	MDM Ver 8.0 26-Jun-92 - * Expanded to allow extraction of the standard
				  ground based FITS files.
	MDM Ver 8.1 26-Jun-92 - * Added QTEST_RD_SCALE option for GBO access
	MDM Ver 8.2 29-Jul-92 - * Added capability to read HXI datafiles
	MDM Ver 8.3  3-Aug-92 - * Modified GBO file access instruction information
	MDM Ver 9.0 26-Oct-92 - * Renamed from TEST_RD to YODAT
	MDM Ver 9.1 22-Feb-93 - * Sort the files by date when using the MANY option
				  (as per Kevin Kluge's suggestion)
			        * Added option -772 for SSWHERE
	SLF Ver 9.2  7-Jul-93 - * Use rfits2 for GBO (allow compreessed data)
		     9-Aug-93 - * Corrected typo in SXT sequence table extraction
				  option
	MDM         12-Oct-93 - * Updated the INDEX.SXT.SHAPE_SAV field when an
				  OR is assembled
	MDM Ver 9.3 16-Mar-94 - * For SGI machines, which use the /CD option on
				  the FILE_LIST call, there was a problem when the
				  user specified the directory in the file name.
				  The directory needed to be stripped out so that
				  it was passed to FILE_LIST properly
				* Figures out when the file is ground based
				  (by a leading character "g")


yoh_ieee2vax [1] $SSW/soho/mdi/idl_old/gen/ys_util/yoh_ieee2vax.pro
[Previous] [Next]
 NAME:
	yoh_ieee2vax
 PURPOSE:
	To convert Unix IDL floating/double to VAX IDL data types.
 CALLING SEQUENCE:
	yoh_ieee2vax, a
 PARAMETERS:
	a - The data variable to be converted.  This may be a scalar
	    or an array.
 CALLS: ***
	dec2sun [1], dec2sun [2], ieee2vax [1], ieee2vax [2]
 CALLED BY:
	RFITS [1], RFITS [2], RFITS [3], rdwrt [1], rdwrt [2], rdwrt [3]
 RESTRICTIONS:
	Only tested for data from IEEE standard Unix machines (e.g. SUN)
		*** Double precision does not work ***
 MODIFICATION HISTORY:
	Written 13-Apr-93 by M.Morrison
	 6-May-93 (MDM) - Fixed a typo


yoh_vax2ieee [1] $SSW/soho/mdi/idl_old/gen/ys_util/yoh_vax2ieee.pro
[Previous] [Next]
 NAME:
	yoh_vax2ieee
 PURPOSE:
	To convert Unix IDL floating/double to VAX IDL data types.
 CALLING SEQUENCE:
	yoh_vax2ieee, a
 PARAMETERS:
	a - The data variable to be converted.  This may be a scalar
	    or an array.
 CALLS: ***
	dec2sun [1], dec2sun [2], vax2ieee [1], vax2ieee [2]
 CALLED BY:
	rd_gbe_raw, rdwrt [1], rdwrt [2], rdwrt [3]
 RESTRICTIONS:
	Only tested for data from IEEE standard Unix machines (e.g. SUN)
		*** Double precision does not work ***
 MODIFICATION HISTORY:
	Written 13-Apr-93 by M.Morrison
	 8-Jun-93 (MDM) - Corrected an error.  The calls to DEC2SUN and
			  IEEE2VAX were reversed


yohkoh_format [3] $SSW/soho/mdi/idl_old/gen/utplot/yohkoh_format.pro
[Previous] [Next]
 Set atime outputs to Yohkoh format dd-mon-yy hh:mm:ss.xxx
 
 Mod. 1/10/94 by AKT to return old format.
 CALLED BY
	BATSE_ONTIMES, DO_ARCHIVEPLOTS, DO_EVENTLISTS, DO_FDBFILES, DO_PSPLOTS, FLDISPLAY
	FLIST, FSPLOT, HXRBS, QLARCHIVE, QLDISPLAY, RAWDUMP, batse_menu, pro ratesdump


yow_sz [1] $SSW/soho/mdi/idl_old/gen/ys_util/yow_sz.pro
[Previous] [Next]
	NAME:
		yow_sz
	PURPOSE: 
		Return the sizes of weekly files.
	CALLING SEQUENCE:
		week_sz = yow_sz(infn, drecs [, d_sz=d_sz])

		week_sz    vector of weekly file sizes
		infn       input vector of file names.
		hdr	   header info from xbd file.
		drecs      structure of fileid and sizes from xbd.
		[d_sz	   input, long word file size list for
			   infn from yod_sz.
 CALLS: ***
	STR2ARR [1], STR2ARR [2]
 CALLED BY:
	yod_sz [1], yod_sz [2]
	HISTORY:
		written 4-Sep-92, gal


ys_contrib [1] $SSW/soho/mdi/idl_old/gen/ys_util/ys_contrib.pro
[Previous] [Next]
   Name: ys_contrib

   Purpose:
      Handle user contribution area

   Keyword Parameters:
      file - input file to handle
      get  - if set, mail requested software

 CALLS: ***
	ARR2STR [1], Arr2Str [2], FILE_EXIST [2], MESASGE, PATH_LIB [1], PATH_LIB [2]
	STR2ARR [1], STR2ARR [2], file_exist [1], file_exist [3], mail [1], mail [2]
	rd_tfile [1], rd_tfile [2], str_replace [1], str_replace [2]
   History:
      17-Feb-94 (SLF) Written



ys_file_check [1] $SSW/soho/mdi/idl_old/gen/ys_util/ys_file_check.pro
[Previous] [Next]
   Name: ys_file_check

   Purpose: verify integrity of Yohkoh data files

   Calling Sequence:
     ys_file_check, filearray [,badfiles, status=status, allgood=algood, /quiet] 

   Input Paramters:
      infiles - string or string array of filesnames to check

   Output Parameters:
      badfiles - names of infiles which failed one or more tests
    
   Keyword Parameters:
      status - (output) - status flags to indicate test failures ; logical OR
	                   (0=ok,1=missing,2=too small,4=size,8=integer,16=real)
      allgood - (output) - scaler boolean (1=allok, 0= 1 or more files bad)
                           (so caller can use: if allgood then ... else ....)
      quiet  - (input) - switch, if set, suppress most error messages
      delete - (input) - switch, if set, delete bad files

   Method:
      check - file_exist? file_size=internal size?
              internal integer and real value verifications

 CALLS: ***
	FILE_STAT [1], FILE_STAT [2], Rd_Pointer [1], Rd_Pointer [2], data_chk [1]
	data_chk [2], file_list [1], file_list [2], file_stat [3], prstr [1], prstr [2]
 CALLED BY:
	cp_fns [1], cp_fns [2]
   History:
      3-Jun-1994 (SLF) - extend yo_file_check (by MDM) - unix/vms / data tests
      7-Jun-1994 (SLF) - add ALLGOOD, INDIR, and DELETE keywords


YYDOY_2_UT TIME $SSW/soho/mdi/idl_old/gen/utplot/yydoy_2_ut.pro
[Previous] [Next]
FUNCTION: YYDOY_2_UT, TIME

Purpose: Converts time from Year (YY)  and Day of Year (DOY)
		into the UTIME format, sec from 79/1/1.

Inputs:  Time - [YY,DOY] a 2 element or 2 x n vector 
		 or a string or string array in the format 'YYDOY'
		 where YY is the last 2 digits of the year from 1950-2049, 
		 i.e. 80 for 1980 and 
		 DOY starts from 1
Output:  Returns time in double precision seconds from 
	  79/01/01, the standard UT format.  
	  
 CALLS: ***
	DATATYPE [1], DATATYPE [2], DATATYPE [3], UTIME [1], UTIME [2], YYDOY_2_UT
Restrictions:
		 Limited to 1950-2049, 'YYDOY' must have 5 characters.
RAS, 93/1/25
	
*******************************************************************************


YYMMDD $SSW/soho/lasco/idl/display/yymmdd.pro
[Previous] [Next]
 NAME:
	YYMMDD
 PURPOSE:
       YYMMDD returns a list of "numerical" directories (e.g., '970803/')
       It rejects other directories (e.g. assorted/, bad_dates/)
 CALLING SEQUENCE:
	yymmdd, ff
 INPUTS:
       ff -- a list of directories
 OUTPUTS:
       Returns only "numerical" directories  
 CALLS: ***
	VALID_NUM [1], VALID_NUM [2], VALID_NUM [3]
 CALLED BY:
	DMOVIE [1], DMOVIE [2], DO_WRITE_DD, GET_LIST, MKDI_C1, MKQUERY, WLISTER, WLOAD
 SIDE EFFECTS:

 RESTRICTIONS:
       Uses  the CDS routine VALID_NUM to check for numerical directories
 PROCEDURE:

 MODIFICATION HISTORY:
       Written by:     A. Vourlidas  9/12/97


YYMMDD2UTC $SSW/soho/lasco/idl/util/yymmdd2utc.pro
[Previous] [Next]
 NAME:
	YYMMDD2UTC

 PURPOSE:
	This function converts a date string in the format [YY]YYMMDD[_][HHMMSS]
       into a modified julian date structure

 CATEGORY: UTIL, time

 CALLING SEQUENCE:
	Result = YYMMDD2UTC(Dates)

 INPUTS:
	Dates:	Date string in the format yymmdd, yyyymmdd, or yyyymmdd_hhmmss,
               or mjd or CDS time structure

 OUTPUTS:
	This function returns a CDS date structure.  If the input is an array of
	date strings, then the output will be an array of structures.

 CALLS: ***
	DATATYPE [1], DATATYPE [2], DATATYPE [3], STR2UTC [1], STR2UTC [2], STR2UTC [3]
 CALLED BY:
	CHECK_EXP_FACTOR_DUPS, CHECK_MONEXP_DUPS, COMPUTE_MONEXP_FACTORS, CORRSUBIMAGE
	CORR_ALLSUBS, DELETE_EXPFAC, GETBKGIMG, MAKE_ALL_DAYS, MAKE_ALL_MINDAYS
	MAKE_ALL_MONTHS, MAKE_DAILY_IMAGE, MAKE_DIFF_MPEG, OFFSET_BIAS, READ_EXP_FACTOR
	READ_MONEXP_DATA, REDUCE_DAILY, get_daily_list cam dte QLql FILTERfilter
 MODIFICATION HISTORY:
 	Written by:	RA Howard, 1995
	V2:  RAH, Jun 2, 1997, input dates can be long, string or CDS time structure
	V3:  RAH, Sep 22, 1997, corrected CDS time structure to be longs not integers
   2005.03.17, nbr - allow/use _hhmmss in argument
   2005.03.30, nbr - fix bug that modified argument

	@(#)yymmdd2utc.pro	1.6 03/30/05 LASCO IDL LIBRARY