parse_input_times $SMEI/ucsd/gen/python/eon.py
[Previous] [Next]
 NAME:
	parse_input_times
 PURPOSE:
	Parses input dates and delta times from command line
 CALLING SEQUENCE:
	tt = parse_input_times( is_date, marker, arg )
 INPUTS:
	is_date     True : 'arg' is a date
	            False: 'arg' is a delta time
	marker      identifies the type of information
 	            that 'arg' represents

	            marker = 're=<regex string>'
	            Then 'arg' is string to be processed
	            with the regex.

	            marker = '<time format string>'
	            Then 'arg' is string to be processed
	            with this format. If the format is
				unspecified, i.e. None, then guess.

				marker = '<year, month, day, ...>'
	            Then 'arg' is interpreted as a single
				value for one the many time components
	            used for dates and delta times.

	arg         one of the input args from the command line
 OUTPUTS:
	tt          dictionary with fields needed by the
	            eon_date or eon_delta __init__ method.
	            The following relevant combinations can occur.

	For times specified as a string in some format:

	tt['ctime'  ] = arg             '2009-10-10 20:00:00'
	tt['regex'  ] = None
	tt['format' ] = time format     'YYYY-MM-DD hh:mm:ss'

	For times specified as a regex:
	re=^daily\.l\d\.t\d\.c\d{6}\.(\d{4})(\d{2})(\d{2})\..+\.warts(\.gz)?$
	daily.l7.t3.c001991.20120518.her-gr.warts.gz

	tt['ctime'  ] = arg
	tt['regex'  ] = marker[3:]
	tt['format' ] = None

	For times specified by a list of separate components:
	"year=2000 doy=10 hour=5 ...."

	tt['ctime'  ] = None
	tt['format' ] = None
	tt['regex'  ] = None
	tt['year'   ] = value or None
	tt['doy'    ] = value or None (always None for delta time)
	tt['month'  ] = value or None (always None for delta time)
	tt['day'    ] = value of None
	tt['hour'   ] = value or None
	tt['minute' ] = value or None
	tt['second' ] = value or None
	tt['chipsec'] = value or None
	tt['tz'     ] = value or None (always None for delta time)

	For times presented as a single number:

	tt['ctime'  ] = None
	tt['format' ] = None
	tt['regex'  ] = None
	tt[marker   ] = arg             '123456789.00'


pgi_setup $SMEI/com/linux/pgi_setup
[Previous] [Next]
 NAME:
	pgi_setup
 PURPOSE:
	Sets up environment for Portland compilers
 CATEGORY:
	smei/com/linux
 CALLING SEQUENCE:
	. $COM/pgi_setup
 INPUTS:
	(none)
 CALLED BY:
	login
 PROCEDURE:
	Sets up environment for Portland compilers.
	Version 5.2-4 was installed in /zshare/pgi/linux86/5.2/bin
	Version 6.0-5 was installed in /zshare/pgi/linux86/6.0/bin
 MODIFICATION HISTORY:
	OCT-2004, Paul Hick (UCSD/CASS; pphick@ucsd.edu)