Modules
buildstock_fetch.main.fetch_bldg_ids(product, release_year, weather_file, release_version, state, upgrade_id)
¶
Fetch a list of Building ID's
Provided a state, returns a list of building ID's for that state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product
|
ResCom
|
The product type (e.g., 'resstock', 'comstock') |
required |
release_year
|
ReleaseYear
|
The release year (e.g., '2021', '2022') |
required |
weather_file
|
Weather
|
The weather file type (e.g., 'tmy3') |
required |
release_version
|
str
|
The release version number (e.g., '1') |
required |
state
|
str
|
The state to fetch building ID's for. |
required |
Returns:
| Type | Description |
|---|---|
list[BuildingID]
|
A list of building ID's for the given state. |
Source code in buildstock_fetch/main.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | |
buildstock_fetch.main.fetch_bldg_data(bldg_ids, file_type, output_dir, max_workers=5, weather_states=None)
¶
Download building data for a given list of building ids
Downloads the data for the given building ids and returns list of paths to the downloaded files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bldg_ids
|
list[BuildingID]
|
A list of BuildingID objects to download data for. |
required |
Returns:
| Type | Description |
|---|---|
tuple[list[Path], list[str]]
|
A list of paths to the downloaded files. |
Source code in buildstock_fetch/main.py
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 | |