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
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 |
|
buildstock_fetch.main.fetch_bldg_data(bldg_ids, file_type, output_dir, max_workers=5)
¶
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
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 |
|