Skip to content

Instantly share code, notes, and snippets.

View itsGreghere's full-sized avatar

Greg Collins itsGreghere

View GitHub Profile
@aahoo
aahoo / energyplus weather file download python2.py
Last active October 26, 2023 22:36
Automatically download energyplus weather data files (epw and ddy), 2 versions python 2 and 3
import json
import re
import urllib2
path_to_save = '' # create a directory and write the name of directory here
data_file = urllib2.urlopen('https://github.com/NREL/EnergyPlus/raw/develop/weather/master.geojson')
data = json.load(data_file)
# or you can download master.geojson and run the below code instead of downloading from the net
# with open('master.geojson') as data_file:
# data = json.load(data_file)