Examples
========

Sample scripts are distributed with the *pybctc* source in the
``examples`` directory.  These show how *pybctc* might be used to build
useful utilities.

Currently distributed sample scripts are:

* ``load2010.py`` - prints 2010 load points.
* ``intertie2010.py`` - prints 2010 intertie flows.


``intertie2010.py``
-------------------

A simple application to list 2010 intertie flows.

Sample output::

        2010 BCTC Intertie Flows
        Date, US, AB
        2010-01-01 01:00:00-08:00 594MW, -144MW
        2010-01-01 02:00:00-08:00 468MW, -107MW
        2010-01-01 03:00:00-08:00 402MW, -106MW
        2010-01-01 04:00:00-08:00 385MW, -104MW
        2010-01-01 05:00:00-08:00 360MW, -80MW
        2010-01-01 06:00:00-08:00 468MW, 42MW
        2010-01-01 07:00:00-08:00 287MW, 132MW
        2010-01-01 08:00:00-08:00 171MW, 126MW
	[ output truncated to save space ]


``load2010.py``
---------------

A simple application to list 2010 intertie flows.

Sample output::

        2010 BCTC Control Area Load Points
        Date, Load
        2010-01-01 01:00:00-08:00 6899MW
        2010-01-01 02:00:00-08:00 6645MW
        2010-01-01 03:00:00-08:00 6440MW
        2010-01-01 04:00:00-08:00 6308MW
        2010-01-01 05:00:00-08:00 6306MW
        2010-01-01 06:00:00-08:00 6389MW
        2010-01-01 07:00:00-08:00 6562MW
	[ output truncated to save space ]