Merge branch 'renewable_profiles_option_using_all_available_areas' of https://github.com/JanFrederickUnnewehr/pypsa-eur into JanFrederickUnnewehr-renewable_profiles_option_using_all_available_areas
This commit is contained in:
commit
4448cb747e
@ -294,6 +294,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 not config.get('keep_all_available_areas', False): # check config file whether user wants to use all availbe weather cells for renewable profile and potential generation
|
||||||
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