Update build_renewable_profiles.py

This commit is contained in:
Jan Frederick 2020-04-03 12:09:17 +02:00
parent 32248724bd
commit b707578bfb

View File

@ -289,7 +289,7 @@ if __name__ == '__main__':
potentials = config['capacity_per_sqkm'] * vlanduse._cutout_cell_areas(cutout) potentials = config['capacity_per_sqkm'] * vlanduse._cutout_cell_areas(cutout)
potmatrix = matrix * spdiag(potentials.ravel()) potmatrix = matrix * spdiag(potentials.ravel())
if config.get('keep_all_available_areas', False) != True: if config.get('keep_all_available_areas', False) != True: # check config file if user wants to use all availbe areas for renewable potentials
potmatrix.data[potmatrix.data < 1.] = 0 # ignore weather cells where only less than 1 MW can be installed potmatrix.data[potmatrix.data < 1.] = 0 # ignore weather cells where only less than 1 MW can be installed
potmatrix.eliminate_zeros() potmatrix.eliminate_zeros()