Skip to content

Commit

Permalink
Updates for 2024 resstock data (#1915)
Browse files Browse the repository at this point in the history
* Updates for 2024 resstock data

* Align new fixes with convention elsewhere in the file, remove print statements from debugging
  • Loading branch information
brtietz authored Dec 3, 2024
1 parent e55ff35 commit e37cd45
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions samples/Python Scripts/End Use Load Profiles/eulp/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ 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':
wf_folder = f'state={state}'
else:
if year == '2021':
wf_folder = f'{wf_type}'
else:
wf_folder = f'state={state}'


url = f'https://oedi-data-lake.s3.amazonaws.com/' \
Expand Down Expand Up @@ -182,12 +182,16 @@ def get_county_code(state, county, year, dataset, path):
County code as string, e.g., 'G0400130' for Maricopa County, Arizona.
"""

url_path = dataset
if year == '2024' and "resstock" in dataset:
url_path = "resstock_dataset_2024.1/resstock_tmy3"

# 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 e37cd45

Please sign in to comment.