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
|
str
|
The product type (e.g., 'resstock', 'comstock') |
required |
release_year
|
str
|
The release year (e.g., '2021', '2022') |
required |
weather_file
|
str
|
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
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 | |
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
2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 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 | |