File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
papers/Martin_Staadecker_Value_of_LDES_and_Factors/LDES_paper_graphs Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 194
194
# %% night time drop
195
195
df = daily_lmp [["Midnight" , "8pm" , "4am" ]].mean (axis = 1 )
196
196
(1 - df .loc [3 ] / df .iloc [0 ]) * 100 / ((3 - 1.94 ) * 10 )
197
+ # %% LMP stats
198
+ raw_load_balance .nunique ()
199
+ raw_load_balance
200
+ # %% Variability baseline
201
+ baseline = raw_load_balance [raw_load_balance .scenario_name == 1.94 ]
202
+ len (baseline [baseline .value == 0 ]) / len (baseline ) * 100 # Percent at 0 LMP
203
+ len (baseline [baseline .value > 40 ]) / len (baseline )
204
+ # %% Variability 20twh
205
+ df = raw_load_balance [raw_load_balance .scenario_name == 20 ]
206
+ df .value .quantile (.99 )
207
+ len (df [df .value == 0 ]) / len (df )
208
+ df .value .median ()
209
+ # %% Regional NORTH
210
+ df = raw_load_balance [raw_load_balance .region .isin (["CAN" , "OR" , "WA" ])]
211
+ df .groupby ("scenario_name" ).value .mean ()
212
+ # %% Regional CA
213
+ df = raw_load_balance [raw_load_balance .region == "CA" ]
214
+ df = df .groupby ("scenario_name" ).value .mean ()
215
+ df
216
+ - (1 - df / df .iloc [0 ]) * 100
217
+ # %% Regional SOUTH
218
+ df = raw_load_balance [raw_load_balance .region .isin (["MEX" , "AZ" , "NV" , "NM" ])]
219
+ df = df .groupby ("scenario_name" ).value .mean ()
220
+ df
221
+ # %% MONTHLY
222
+ cap
223
+ cap .loc [20 , :]
224
+ df = cap .loc [64 , :].sort_values (ascending = False )
225
+ df
You can’t perform that action at this time.
0 commit comments