[Scipy-svn] r3345 - trunk/scipy/sandbox/timeseries
scipy-svn at scipy.org
scipy-svn at scipy.org
Fri Sep 21 11:33:20 EDT 2007
Author: mattknox_ca
Date: 2007-09-21 10:33:16 -0500 (Fri, 21 Sep 2007)
New Revision: 3345
Modified:
trunk/scipy/sandbox/timeseries/const.py
Log:
added documentation describing all frequency constants and their corresponding string aliases
Modified: trunk/scipy/sandbox/timeseries/const.py
===================================================================
--- trunk/scipy/sandbox/timeseries/const.py 2007-09-21 01:17:41 UTC (rev 3344)
+++ trunk/scipy/sandbox/timeseries/const.py 2007-09-21 15:33:16 UTC (rev 3345)
@@ -1,6 +1,73 @@
"""
-A collection of tools for timeseries
+This module contains all the integer frequency constants. Below is a detailed
+description of the constants, as well as a listing of the corresponding string
+aliases.
+All functions in the timeseries module that accept a frequency parameter can
+accept either the integer constant, or a valid string alias.
+
+|----------------------------------------------------------------------------|
+|CONSTANT | String aliases (case insensitive) and comments |
+|----------------------------------------------------------------------------|
+| Note: For annual frequencies, "Year" is determined by where the last month |
+| of the year falls. |
+|----------------------------------------------------------------------------|
+| FR_ANN | 'A', 'Y', 'ANNUAL', 'ANNUALLY', 'YEAR', 'YEARLY' |
+|----------------------------------------------------------------------------|
+| FR_ANNDEC | 'A-DEC', 'A-December', 'Y-DEC', 'ANNUAL-DEC', etc... |
+| | (annual frequency with December year end, equivalent to |
+| | FR_ANN) |
+|----------------------------------------------------------------------------|
+| FR_ANNNOV | 'A-NOV', 'A-NOVEMBER', 'Y-NOVEMBER', 'ANNUAL-NOV', etc...|
+| (annual frequency with November year end) |
+| ...etc for the rest of the months |
+|----------------------------------------------------------------------------|
+| Note: For the following quarterly frequencies, "Year" is determined by |
+| where the last quarter of the current group of quarters ENDS |
+|----------------------------------------------------------------------------|
+| FR_QTR | 'Q', 'QUARTER', 'QUARTERLY' |
+|----------------------------------------------------------------------------|
+| FR_QTREDEC | 'Q-DEC', 'QTR-December', 'QUARTERLY-DEC', etc... |
+| | (quarterly frequency with December year end, equivalent |
+| | to FR_QTR) |
+|----------------------------------------------------------------------------|
+| FR_QTRENOV | 'Q-NOV', 'QTR-NOVEMBER', 'QUARTERLY-NOV', etc... |
+| | (quarterly frequency with November year end) |
+| ...etc for the rest of the months |
+|----------------------------------------------------------------------------|
+| Note: For the following quarterly frequencies, "Year" is determined by |
+| where the first quarter of the current group of quarters STARTS |
+|----------------------------------------------------------------------------|
+| FR_QTRSDEC | 'Q-S-DEC', 'QTR-S-December', etc... (quarterly frequency |
+| | with December year end) |
+| ...etc for the rest of the months |
+|----------------------------------------------------------------------------|
+| FR_MTH | 'M', 'MONTH', 'MONTHLY' |
+|----------------------------------------------------------------------------|
+| FR_WK | 'W', 'WEEK', 'WEEKLY' |
+|----------------------------------------------------------------------------|
+| FR_WKSUN | 'W-SUN', 'WEEK-SUNDAY', 'WEEKLY-SUN', etc... (weekly |
+| | frequency with Sunday being the last day of the week, |
+| | equivalent to FR_WK) |
+|----------------------------------------------------------------------------|
+| FR_WKSAT | 'W-SAT', 'WEEK-SATURDAY', 'WEEKLY-SAT', etc... (weekly |
+| | frequency with Saturday being the last day of the week) |
+| ...etc for the rest of the days of the week |
+|----------------------------------------------------------------------------|
+| FR_DAY | 'D', 'DAY', 'DAILY' |
+|----------------------------------------------------------------------------|
+| FR_BUS | 'B', 'BUSINESS', 'BUSINESSLY' (this is a daily frequency |
+| | excluding Saturdays and Sundays) |
+|----------------------------------------------------------------------------|
+| FR_HR | 'H', 'HOUR', 'HOURLY' |
+|----------------------------------------------------------------------------|
+| FR_MIN | 'T', 'MINUTE', 'MINUTELY' |
+|----------------------------------------------------------------------------|
+| FR_SEC | 'S', 'SECOND', 'SECONDLY' |
+|----------------------------------------------------------------------------|
+| FR_UND | 'U', 'UNDEF', 'UNDEFINED' |
+|----------------------------------------------------------------------------|
+
:author: Pierre GF Gerard-Marchant & Matt Knox
:contact: pierregm_at_uga_dot_edu - mattknox_ca_at_hotmail_dot_com
:version: $Id: tcore.py 2836 2007-03-07 16:58:14Z mattknox_ca $
More information about the Scipy-svn
mailing list