add if statements for "keep all availble areas"
Add possibility to keep all availble areas for the potential area generation.
This commit is contained in:
parent
6bd32f83d0
commit
32248724bd
@ -289,6 +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:
|
||||||
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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user