コード例 #1
0
ファイル: ghtc2012.py プロジェクト: SEL-Columbia/ss_sql_views
def tbl_efficiency(date_start, date_end):
    print '% tbl_efficiency'
    print '%', date_start
    print '%', date_end
    dl = []
    for meter, cid in [('ml05', 57), ('ml06', 70), ('ml07', 102), ('ml08', 123)]:
        d = og.analyze_load_profile_curve(cid, date_start, date_end)
        og.plot_load_profile_curve_to_file(cid, date_start, date_end, meter+'-ldc.pdf')
        dl.append(d)
    df = p.DataFrame(dl)

    for row in df.index:
        print '%.2f' % df.ix[row]['capacity_factor'],
        print '&',
        print df.ix[row]['circuit_id'],
        print '\\\\'
コード例 #2
0
ファイル: ghtc2012.py プロジェクト: SEL-Columbia/ss_sql_views
'''
 25 "ml00"
164 "ml01"
143 "ml02"
213 "ml03"
192 "ml04"
 57 "ml05"
 70 "ml06"
102 "ml07"
123 "ml08"
'''

# todo: fit solar generation over same time period

'''
print
print 'ml03'
og.analyze_load_profile_curve(213, date_start, date_end)
og.plot_load_profile_curve_to_file(213, date_start, date_end, 'ml03-ldc.pdf')


print
print 'ml05'
og.analyze_load_profile_curve(57, date_start, date_end)
og.plot_load_profile_curve_to_file(57, date_start, date_end, 'ml05-ldc.pdf')

print
print 'ml06'
og.analyze_load_profile_curve(70, date_start, date_end)
og.plot_load_profile_curve_to_file(70, date_start, date_end, 'ml06-ldc.pdf')