Skip to content

Commit

Permalink
gis: Pass model to RasterLayer.from_file
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Sep 2, 2024
1 parent 3d29e4c commit 5b2a733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gis/population/population/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def load_data(self, population_gzip_file, lake_zip_file, world_zip_file, model):
world_size = gpd.GeoDataFrame.from_file(world_zip_file)
raster_layer = RasterLayer.from_file(
f"/vsigzip/{population_gzip_file}",
model=model,
cell_cls=UgandaCell,
attr_name="population",
)
Expand Down
1 change: 1 addition & 0 deletions gis/rainfall/rainfall/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(self, crs, water_height, model):
def set_elevation_layer(self, elevation_gzip_file, crs):
raster_layer = mg.RasterLayer.from_file(
f"/vsigzip/{elevation_gzip_file}",
model=self.model,
cell_cls=LakeCell,
attr_name="elevation",
)
Expand Down

0 comments on commit 5b2a733

Please sign in to comment.