A Julia module for processing Finnish building stock data. Originally designed for the building stock structural data in Finnish building stock default structural data, as well as the optional detailed data in Finnish building stock detailed RT-card structural data, along with the building stock statistical data in Finnish building stock forecasts for 2020, 2030, 2040, and 2050, and processes them into something usable by the ArchetypeBuildingModel.jl.
Important
2024-08-16: The FlexiB project funding this research is ending, making it unlikely that this module will receive see further active development.
process_datastore.jl
, the main program file.process_datastore.json
, the Spine Toolbox tool definition for the main program above.src/FinnishBuildingStockData.jl
, the main module file.scripts/
contains a few example scripts for using this module.
Similar to other Julia modules, this module is installed via the Julia Pkg
package manager.
However, since this module is not included in the Julia General Registry,
it cannot be installed using the standard add
command.
Instead, the module needs to be downloaded manually and installed using the develop
command:
- Download the contents of this repository onto your computer, e.g. by cloning the repository.
- Start Julia and enter the package manager by pressing
]
. activate
the desired Julia environment, or not if you want to work in the main environment.- Install the module using the
develop
command with a path to the folder housing theProject.toml
file of this module.
This module is intended to be used as a part of a Spine Toolbox workflow, with the following rough steps:
- Create a Spine Data Connection referring to the
datapackage.json
infinnish_building_stock_forecasts
. - Create a Spine Importer with the
import_finnish_building_stock_forecasts.json
specification fromfinnish_building_stock_forecasts
. - Create a Spine Data Conenction referring to AT LEAST the
datapackage.json
infinnish_default_structural_data
, and optionally to the corresponding file infinnish_RT_structural_data
as well. - Create a Spine Importer with the
import_finnish_structural_data.json
specification fromfinnish_default_structural_data
. - Create a new Spine Datastore, and connect the above Importers to it.
- Create a Spine Tool with the
process_datastore.json
tool specification. - Create a new Spine Datastore as the output for the
process_datastore
tool. - Define the input and output database urls as keyword arguments for the
process_datastore
tool.
Naturally, as a Julia module, one can also access the functionality of this module from Julia by
julia> using FinnishBuildingStockData
However, this is only necessary for more advanced usage.
In v2.0.0, functionality was added to read and process data outside Spine Toolbox in order to
save processing time when dealing with large datasets. At the time of writing,
Spine DB API can be a bit slow when reading and manipulating large databases.
See scripts/raw_data_testscript.jl
for at least some guidance how this functionality works.
Online documentation is hosted here, but so far I haven't bothered to set up automatic workflows for keeping it up to date. Thus, for accessing the newest documentation, one has to build it locally by performing the following steps:
- Activate the
documentation
environment from the Julia Package manager
julia> ]
(FinnishBuildingStockData) pkg> Activate documentation
(docs) pkg> ]
julia>
- Run the
documentation/make.jl
script.
julia> include("documentation/make.jl")
- Open the newly built
documentation/build/index.html
to start browsing the documentation.
MIT, see LICENSE
for more information.
Please refer to the Cite this section of the FinnishBuildingStockData.jl
entry in
VTT's Research Information Portal.
This module was built for the Research Council of Finland project "Integration of building flexibility into future energy systems (FlexiB)" under grant agreement No 332421. |
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 774629. |