Skip to content

Commit

Permalink
Updates for 2024 resstock data
Browse files Browse the repository at this point in the history
  • Loading branch information
brtietz committed Nov 18, 2024
1 parent ea128b9 commit c45e560
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions samples/Python Scripts/End Use Load Profiles/eulp/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_weather_data(state, county_code, year, dataset, path):

# 2021 stores eather files in folders by wf_type
# 2022 stores weather files in folders by state
if year == '2022':
if int(year) >= 2022:
wf_folder = f'state={state}'
else:
wf_folder = f'{wf_type}'
Expand Down Expand Up @@ -182,12 +182,19 @@ def get_county_code(state, county, year, dataset, path):
County code as string, e.g., 'G0400130' for Maricopa County, Arizona.
"""

url_path = dataset
print(year == str(2024))
print("resstock" in dataset)
if year == str(2024) and "resstock" in dataset:
url_path = "resstock_dataset_2024.1/resstock_tmy3"
print(url_path)

# url to lookup table for year and dataset
url = f'https://oedi-data-lake.s3.amazonaws.com/' \
f'nrel-pds-building-stock/' \
f'end-use-load-profiles-for-us-building-stock/' \
f'{year}/' \
f'{dataset}/' \
f'{url_path}/' \
f'geographic_information/' \
f'spatial_tract_lookup_table.csv'

Expand Down

0 comments on commit c45e560

Please sign in to comment.