PyGRASS is an object-oriented Python Application Programming Interface (API) for Geographic Resources Analysis Support System (GRASS) Geographic Information System (GIS), a powerful open source GIS widely used in academia, commercial settings and governmental agencies. We present the architecture of the PyGRASS library, covering interfaces to GRASS modules, vector and raster data, with a focus on the new capabilities that it provides to GRASS users and developers. Our design concept of the module interface allows the direct linking of inputs and outputs of GRASS modules to create process chains, including compatibility checks, process control and error handling. The module interface was designed to be easily extended to work with remote processing services (Web Processing Service (WPS), Web Service Definition Language (WSDL)/Simple Object Access Protocol (SOAP)). The new object-oriented Python programming API introduces an abstract layer that opens the possibility to use and access transparently the efficient raster and vector functions of GRASS that are implemented in C. The design goal was to provide an easy to use, but powerful, Python interface for users and developers who are not familiar with the programming language C and with the GRASS C-API. We demonstrate the capabilities, scalability and performance of PyGRASS with several dedicated tests and benchmarks. We compare and discuss the results of the benchmarks with dedicated C implementations.
The paper investigates the European space heating (SH) and domestic hot water (DHW) market in order to close knowledge gaps concerning its size. The stimulus for this research arises from incongruences found in SH and DHW market’s data in spite of over two decades of scientific research. The given investigation has been carried out in the framework of the Hotmaps project (Horizon 2020—H2020), which aims at designing an open source toolbox to support urban planners, energy agencies, and public authorities in heating and cooling (H&C) planning on country, regional, and local levels. Our research collects and analyzes SH and DHW market data in the European Union (EU), specifically the amount of operative units, installed capacities, energy efficiency coefficients as well as equivalent full-load hours per equipment type and country, with a bottom-up approach. The analysis indicates that SH and DHW account for a significant portion of the total EU energy utilization (more than 20%), amounting to almost 3900 TWh/y. At the same time, the energy consumption provided by district heating (DH) systems exceeds the one of condensing boilers. While DH systems applications are growing throughout the EU, the replacement of elderly, conventional boilers progresses at a slower pace.