fixing some warnings in build_biomass_potentials.py, build_gas_input_locations.py, scripts/build_population_layouts.py
This commit is contained in:
parent
8215510f09
commit
74d31c4554
@ -28,7 +28,8 @@ def build_nuts_population_data(year=2013):
|
|||||||
swiss = [swiss.groupby(swiss.index.str[:i]).sum() for i in range(2, 6)]
|
swiss = [swiss.groupby(swiss.index.str[:i]).sum() for i in range(2, 6)]
|
||||||
|
|
||||||
# merge Europe + Switzerland
|
# merge Europe + Switzerland
|
||||||
pop = pd.DataFrame(pop.append(swiss), columns=["total"])
|
pop = pd.concat([pop, pd.concat(swiss)])
|
||||||
|
pop = pd.DataFrame(pop, columns=["total"])
|
||||||
|
|
||||||
# add missing manually
|
# add missing manually
|
||||||
pop["AL"] = 2893
|
pop["AL"] = 2893
|
||||||
|
@ -31,8 +31,6 @@ def build_gem_lng_data(lng_fn):
|
|||||||
& Country != @remove_country \
|
& Country != @remove_country \
|
||||||
& TerminalName != @remove_terminal \
|
& TerminalName != @remove_terminal \
|
||||||
& CapacityInMtpa != '--'")
|
& CapacityInMtpa != '--'")
|
||||||
|
|
||||||
df.CapacityInMtpa = df.CapacityInMtpa.astype(float)
|
|
||||||
|
|
||||||
geometry = gpd.points_from_xy(df['Longitude'], df['Latitude'])
|
geometry = gpd.points_from_xy(df['Longitude'], df['Latitude'])
|
||||||
return gpd.GeoDataFrame(df, geometry=geometry, crs="EPSG:4326")
|
return gpd.GeoDataFrame(df, geometry=geometry, crs="EPSG:4326")
|
||||||
|
@ -16,7 +16,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
cutout = atlite.Cutout(snakemake.config['atlite']['cutout'])
|
cutout = atlite.Cutout(snakemake.config['atlite']['cutout'])
|
||||||
|
|
||||||
grid_cells = cutout.grid_cells()
|
grid_cells = cutout.grid.geometry
|
||||||
|
|
||||||
# nuts3 has columns country, gdp, pop, geometry
|
# nuts3 has columns country, gdp, pop, geometry
|
||||||
# population is given in dimensions of 1e3=k
|
# population is given in dimensions of 1e3=k
|
||||||
|
Loading…
Reference in New Issue
Block a user