Skip to content

Conversation

jmythms
Copy link
Collaborator

@jmythms jmythms commented Sep 8, 2025

This PR will update the current thermal load components data to the latest BuildStock data.

RESSTOCK vs old data comparison:

Component Mean diff MAE Sign agree (%) Corr
EQUIP 0.281 0.283 92.593 0.908
GRND 0.024 0.100 85.185 0.697
INFIL -0.093 0.150 59.259 0.921
ROOF -0.089 0.092 100.000 0.502
WALL 0.003 0.072 96.296 0.702
WIND_COND -0.116 0.118 75.926 0.902
WIND_SOL -0.001 0.066 100.000 0.945

@jmythms jmythms self-assigned this Sep 8, 2025
@jmythms
Copy link
Collaborator Author

jmythms commented Sep 8, 2025

Questions:

  1. Are we currently using the Climate Zone conversions in the R file in later Scout processing?
  2. There are no specific "people" components in the RESSTOCK file. There is however an internal_gains component? Repurpose that somehow?
  3. 1121 Buildings with nan type (out of 550,000 buildings).

Comment on lines +8 to +35
RESSTOCK_SEGMENT_TO_CATEGORY = {
# Windows / skylights
"windows_conduction": "WIND_COND",
"skylights_conduction": "WIND_COND",
"windows_solar": "WIND_SOL",
"skylights_solar": "WIND_SOL",
# Roof / ceilings
"roofs": "ROOF",
"ceilings": "ROOF",
# Walls / opaque
"walls": "WALL",
"foundation_walls": "WALL",
"rim_joists": "WALL",
"doors": "WALL",
# Infiltration / ventilation
"infiltration": "INFIL",
"mechanical_ventilation": "INFIL",
"natural_ventilation": "INFIL",
# Ground contact
"slabs": "GRND",
"floors": "GRND",
# Internal/equipment gains
"internal_gains": "EQUIP",
"internal_mass": "EQUIP",
"lighting": "EQUIP",
"whole_house_fan": "EQUIP",
"ducts": "EQUIP",
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Components: Resstock to Scout

Comment on lines 61 to 72
BLDG_MAPPING = {
'50 or more Unit': 'multi family home',
'Single-Family Detached': 'single family home',
'Single-Family Attached': 'single family home',
'Mobile Home': 'mobile home',
'20 to 49 Unit': 'multi family home',
'5 to 9 Unit': 'multi family home',
'3 or 4 Unit': 'multi family home',
'2 Unit': 'multi family home',
'10 to 19 Unit': 'multi family home',
'nan': None
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building types mapping: RESSTOCK to Scout

@jmythms
Copy link
Collaborator Author

jmythms commented Sep 8, 2025

Questions:

  1. Are we currently using the Climate Zone conversions in the R file in later Scout processing?
  2. There are no specific "people" components in the RESSTOCK file. There is however an internal_gains component? Repurpose that somehow?
  3. 1121 Buildings with nan type (out of 550,000 buildings).

@jmythms to lump components in ecm_prep.py, mix in people component into internal gains.

@jmythms jmythms marked this pull request as ready for review September 18, 2025 20:53
@jmythms jmythms requested a review from aspeake September 18, 2025 21:03
@jmythms jmythms marked this pull request as draft September 24, 2025 15:02
Comment on lines +1 to +12
# ==============================================================================
# COMMERCIAL THERMAL LOADS DATA PROCESSING SCRIPT
# ==============================================================================
# This script processes base thermal loads data for commercial buildings and
# converts it from climate zone-based to census division-based organization
# for use in building energy modeling and analysis.
#
# Input: Com_TLoads_Base.csv - Base thermal loads data by climate zone
# Output: Com_TLoads_PrepFinal.txt - Processed thermal loads by census division
# Com_Cdiv_Czone_ConvertTablePrep.txt - Conversion factors
# Com_Cdiv_Czone_ConvertTablePrep_Rev.txt - Reverse conversion factors
# ==============================================================================
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the R scripts here?

Comment on lines +1 to +9
# ===============================================================================
# Residential Thermal Loads Processing Script
# ===============================================================================
# This script processes residential thermal loads data and creates conversion
# tables for mapping between census divisions and climate zones.
#
# Part 1: Process residential thermal loads by building type and end use
# Part 2: Create census division to climate zone conversion tables from RECS data
# ===============================================================================
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Residential scripts are here.

Comment on lines +80 to +85
ALL_COLS = [
"Unnamed: 0",
"building_id",
"job_id",
"started_at",
"completed_at",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

@jmythms
Copy link
Collaborator Author

jmythms commented Sep 24, 2025

This PR will update the current thermal load components data to the latest BuildStock data.

RESSTOCK vs old data comparison:

Component Mean diff MAE Sign agree (%) Corr
EQUIP 0.281 0.283 92.593 0.908
GRND 0.024 0.100 85.185 0.697
INFIL -0.093 0.150 59.259 0.921
ROOF -0.089 0.092 100.000 0.502
WALL 0.003 0.072 96.296 0.702
WIND_COND -0.116 0.118 75.926 0.902
WIND_SOL -0.001 0.066 100.000 0.945

Divide heating and cooling

@jmythms
Copy link
Collaborator Author

jmythms commented Sep 24, 2025

verify if the other mseg_* files changed or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant