February 20th 2023

Python in the VE: VE Scripts – working with National Grid carbon intensity web-based data; making freeform profiles and APP files

Python in the VE: VE Scripts – working with National Grid carbon intensity web-based data; making freeform profiles and APP files

In our latest Python in the VE article series we cover working with National Grid carbon intensity web-based data; making freeform profiles and APP files.

What?
We access the UK National Grid website and download a live dataset of carbon intensity data; we process the data and import the data into the VE as freeform profiles. We also save the data into an APP file so we can chart it in VistaPro.

Why?
In this example we use the REQUESTS module, load the data into a Pandas dataframe, tidy the data then process the data into a format that we can import into the VE as a freeform profile. We also take the data, add meta-data and create an APP file.

Check out the full guide here

You can also download a sample APP file and CEF data here: www.iesve.com/support/faq/zip/ve-scripts-working-in-national-grid.zip

You can view other articles in my VE Python series HERE.