Module Expr Str ImportFrom alias Import alias Import alias identifier Import alias identifier Import alias identifier Import alias identifier ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam defaults body Expr Str Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Str Assign AttributeStore NameLoad attr ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword Num keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num keyword Str Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num BinOpAdd Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Num attr Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Num NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpDiv SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Str Num Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Str Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Str Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad Str Num Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assert CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore ListComp Call AttributeLoad Str attr NameLoad BinOpAdd NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Num Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Str Num keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Str Num keyword NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad TupleLoad Str Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assert Call NameLoad AttributeLoad NameLoad attr Str Assert CompareEq Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Call NameLoad NameLoad Num For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assert CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index SubscriptLoad NameLoad Index Num attr Expr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Test Mast
-------

Test the MetMast class with nosetests

 __future__ print_function N/A os N/A pandas pd N/A numpy np N/A climatic cl N/A nose.tools nt pandas.util.testing assert_almost_equal TestMast N/A N/A setup N/A N/A self N/A N/A N/A Setup MetMast objects for testing N/A Set up simple import for testing with given columns, both with
        climatic and with pandas N/A N/A self simple_mast N/A N/A cl MetMast lat 45.5236 lon 122.675 height 80 time_zone US/Eastern N/A N/A self simple_cols N/A N/A Wind Speed 1 Mean 50 N/A Wind Speed Std Dev 1 50 N/A Wind Direction 1 50 N/A Wind Speed 2 Mean 40 N/A Wind Speed St Dev 2 40 N/A Wind Speed Direction 2 40 N/A Binned Direction 1 40 N/A N/A pkg_dir filename N/A N/A N/A os path split N/A N/A N/A os path abspath __file__ N/A N/A self simple_import N/A N/A N/A os path join pkg_dir data/test_data_import.csv N/A N/A self simple_pd N/A N/A pd read_table N/A self simple_import header 0 index_col 0 delimiter , names N/A self simple_cols N/A N/A N/A N/A self simple_mast wind_import N/A self simple_import columns N/A self simple_cols header_row 0 time_col 0 delimiter , N/A N/A self beresford N/A N/A cl MetMast N/A N/A self beres_cols N/A N/A Wind Speed 1 66 N/A Std Dev 1 66 N/A Wind Direction 1 66 N/A N/A pkg_dir filename N/A N/A N/A os path split N/A N/A N/A os path abspath __file__ N/A N/A self beres_import N/A N/A N/A os path join pkg_dir data/USDOE_beresford_051201.csv N/A N/A self beres_pd N/A N/A pd read_table N/A self beres_import header 57 index_col 0 delimiter , names N/A self beres_cols N/A N/A N/A N/A self beresford wind_import N/A self beres_import columns N/A self beres_cols header_row 57 time_col 0 delimiter , smart_headers False N/A test_repr N/A N/A self N/A N/A N/A repr_str climatic.MetMast(lat=45.5236, lon=122.675, height=80, time_zone='US/Eastern') N/A N/A N/A repr N/A self simple_mast repr_str N/A test_atts N/A N/A self N/A N/A N/A Test for standard input N/A N/A N/A N/A self simple_mast lat 45.5236 N/A N/A N/A N/A self simple_mast lon 122.675 N/A N/A N/A N/A self simple_mast height 80 N/A N/A N/A N/A self simple_mast time_zone US/Eastern N/A test_simple_import N/A N/A self N/A N/A N/A Test the simple import vs. standard panda dataframe N/A N/A assert_almost_equal N/A self simple_pd N/A N/A self simple_mast data N/A test_simple_import_no_cols N/A N/A self N/A N/A N/A Test import with no columns fed N/A N/A self no_col_mast N/A N/A cl MetMast N/A N/A N/A N/A self no_col_mast wind_import N/A self simple_import header_row 0 time_col 0 delimiter , N/A N/A self no_col_pd N/A N/A pd read_table N/A self simple_import header 0 index_col 0 delimiter , N/A N/A assert_almost_equal N/A N/A self no_col_mast data N/A self no_col_pd N/A test_complex_import N/A N/A self N/A N/A N/A Test a more complex import vs. standard panda dataframe N/A N/A assert_almost_equal N/A self beres_pd N/A N/A self beresford data N/A test_weibull N/A N/A self N/A N/A N/A Test the weibull generating method N/A bins N/A N/A np arange 0 N/A N/A N/A N/A N/A self beres_pd N/A N/A Wind Speed 1 66 max 1 1 N/A binned N/A N/A pd cut N/A N/A self beres_pd N/A N/A Wind Speed 1 66 bins N/A dist_10min N/A N/A N/A N/A pd value_counts binned reindex N/A binned levels N/A dist N/A N/A pd DataFrame N/A Binned: 10 Minute dist_10min N/A N/A dist N/A Binned: Hourly N/A N/A dist N/A Binned: 10 Minute 6 N/A dist N/A N/A dist fillna 0 N/A weib_dict N/A N/A N/A self beresford weibull column N/A Wind Speed 1 66 N/A N/A assert_almost_equal dist N/A weib_dict N/A Dist N/A N/A N/A nt assert_almost_equal 13.278 N/A weib_dict N/A Weibull A N/A N/A N/A nt assert_almost_equal 1.795 N/A weib_dict N/A Weibull k N/A test_sectorwise N/A N/A self N/A N/A N/A Test the sectorwise method N/A sectors12 N/A N/A N/A self beresford sectorwise column N/A Wind Direction 1 66 sectors 12 N/A sectors36 N/A N/A N/A self beresford sectorwise column N/A Wind Direction 1 66 sectors 36 N/A cnt N/A N/A pd value_counts N/A N/A N/A self beresford data N/A N/A Wind Direction 1 66 N/A summed_counts N/A N/A cnt sum N/A N/A N/A N/A N/A sectors12 N/A Counts sum summed_counts N/A N/A N/A N/A N/A sectors12 N/A Frequencies sum 1 N/A test_dup_timestamps N/A N/A self N/A N/A N/A Test timestamp duplicator check N/A stamp N/A N/A pd Timestamp 2005/12/01 18:10:00 N/A N/A N/A N/A N/A N/A self simple_mast data_overlap N/A 0 stamp N/A test_binned N/A N/A self N/A N/A N/A Test binning functionality N/A ws_bins N/A N/A np arange 0 41 1 N/A wd_bins N/A N/A np arange 0 375 15 makeindex N/A N/A bins N/A N/A N/A step N/A N/A bins N/A 1 N/A bins N/A 0 N/A new_index N/A N/A N/A [{0}-{1}] format x N/A x step N/A x bins N/A N/A N/A new_index pop -1 N/A new_index N/A N/A ws_index N/A makeindex ws_bins N/A wd_index N/A makeindex wd_bins N/A N/A N/A N/A self simple_mast binned column N/A Wind Speed 1 Mean 50 bins ws_bins stat max name WS1Max N/A N/A N/A N/A self simple_mast binned column N/A Wind Direction 1 50 bins wd_bins stat mean name WDMean N/A grouped N/A N/A N/A N/A self simple_mast data groupby N/A N/A Binned Direction 1 40 N/A test_mean N/A N/A N/A N/A grouped mean reindex wd_index N/A N/A hasattr N/A self simple_mast data_binned_WS1Max N/A N/A N/A len N/A N/A self simple_mast data_binned_WS1Max N/A N/A len ws_bins 1 N/A x N/A N/A N/A N/A self simple_mast data_binned_WS1Max iteritems N/A N/A N/A N/A N/A N/A x N/A 1 max N/A N/A N/A N/A N/A self simple_mast data N/A N/A x N/A 0 max N/A N/A assert_almost_equal N/A N/A N/A N/A self simple_mast data_binned_WDMean dropna N/A N/A test_mean dropna N/A N/A