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,7 +289,8 @@ if __name__ == '__main__':
|
||||
|
||||
potentials = config['capacity_per_sqkm'] * vlanduse._cutout_cell_areas(cutout)
|
||||
potmatrix = matrix * spdiag(potentials.ravel())
|
||||
potmatrix.data[potmatrix.data < 1.] = 0 # ignore weather cells where only less than 1 MW can be installed
|
||||
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.eliminate_zeros()
|
||||
|
||||
resource = config['resource']
|
||||
|
Loading…
Reference in New Issue
Block a user