Home

Awesome

NYISOToolkit

A package for accessing power system data (NYISOData), generating statistics (NYISOStat), and creating visualizations (NYISOVis) from the New York Independent System Operator (NYISO).

Check out the NYISOToolkit Website!

CLCPA

How to Install

pip install git+https://github.com/m4rz910/NYISOToolkit#egg=nyisotoolkit

NYISOData

Example:

from nyisotoolkit import NYISOData, NYISOStat, NYISOVis
df = NYISOData(dataset='load_h', year='2019').df # year argument in local time, but returns dataset in UTC

#If you need to work with data in local time, then convert time zone
df = df.tz_convert('US/Eastern')

#Construct datasets for certain years
years = ['2013','2019','2020']
datasets = ['load_h','interface_flows_5m']
NYISOData.construct_databases(years=years, datasets=datasets, redownload=True, reconstruct=True, create_csvs=False)

Raw Data Source: http://mis.nyiso.com/public/

Dataset NameResolutionDescription
load_hhourlyday-ahead load by NYISO region
load_5m5-minreal-time load by NYISO region
load_forecast_hhourlyload forecast by NYISO region
fuel_mix_5m5-minreal-time aggregated fuel mix data
interface_flows_5m5-minreal-time flows between regions
lbmp_dam_hhourlyday-ahead zonal Locational Based Marginal Price (LBMP)
lbmp_rt_5m5-minreal-time zonal LBMP
lbmp_dam_h_refbushourlyday-ahead reference bus marginal cost of energy
lbmp_rt_h_refbushourlytime weighted average rt reference bus marginal cost of energy
asp_rt5-minreal-time zonal ancillary service prices
asp_damhourlyday-ahead zonal ancillary service prices

All datasets:

More Dataset Information

Load (load_h)

Load (load_5m)

Load Forecast (load_forecast_h)

Fuel Mix (fuel_mix_5m)

Interface Flows (interface_flows_5m)

Interface NameTypeMapping NameNotes
CENTRAL EASTInternalCENTRAL EAST - VC
DYSINGER EASTInternalDYSINGER EAST
MOSES SOUTHInternalMOSES SOUTH
SPR/DUN-SOUTHInternalSPR/DUN-SOUTH
TOTAL EASTInternalTOTAL EAST
UPNY CONEDInternalUPNY CONED
WEST CENTRALInternalWEST CENTRAL
HQ CHATEAUGUAYExternalSCH - HQ - NY
HQ CEDARSExternalSCH - HQ_CEDARS
HQ Import ExportExternalSCH - HQ_IMPORT_EXPORTsubset of HQ CHATEAUGUAY, excludes wheel-through
NPX NEW ENGLAND (NE)ExternalSCH - NE - NY
NPX 1385 NORTHPORT (NNC)ExternalSCH - NPX_1385
NPX CROSS SOUND CABLE (CSC)ExternalSCH - NPX_CSC
IESOExternalSCH - OH - NY
PJM KEYSTONEExternalSCH - PJ - NY
PJM HUDSON TPExternalSCH - PJM_HTP
PJM NEPTUNEExternalSCH - PJM_NEPTUNE
PJM LINDEN VFTExternalSCH - PJM_VFT

LBMP (lbmp_dam_h)

LBMP (lbmp_rt_5m)

Ancillary Service Price (asp_rt)

Ancillary Service Price (asp_dam)

NYISOVis

There are several visualizations currently supported - browse them on the NYISOToolkit Web App or in the nyisotoolkit/nyisovis/visualizations folder. The visualizations are focused on communicating New York's status toward achieving the power sector decarbonization goals outlined by the Climate Leadership and Community Protection Act (CLCPA).

No later than [June 13, 2021], the commission shall establish a program to require that:

Source: CLCPA p.17

Example:

from nyisotoolkit import NYISOData, NYISOStat, NYISOVis
nv = NYISOVis(year='2019') #figures saved in nyisotoolkit/nyisovis/visualization folder by default.  
nv.fig_carbon_free_timeseries(f='D')  # daily (D) or monthy (M) frequency is recommended
print(f"Figures saved by default to: {nv.out_dir} \nYou can change this by passing a pathlib object to the out_dir parameter in the NYISOVis object initialization.")

CLCPA