Skip to content

Commit

Permalink
Merge branch '220-bugfix-no_values_mask-layer-doesnt-exist' of github…
Browse files Browse the repository at this point in the history
….com:rosepearson/GeoFabrics into 220-bugfix-no_values_mask-layer-doesnt-exist
  • Loading branch information
rosepearson committed Nov 15, 2023
2 parents e5fc6f2 + 5e30780 commit 2a9c778
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/geofabrics/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,14 @@ def add_lidar(
-resolution,
dtype=raster_options["raster_type"],
)
metadata["instructions"]["dataset_mapping"]["lidar"] = {"no LiDAR": self.SOURCE_CLASSIFICATION["no data"]}
elevations = {"no LiDAR": dask.array.empty(shape=(len(y), len(x)), dtype=raster_options["raster_type"])}
metadata["instructions"]["dataset_mapping"]["lidar"] = {
"no LiDAR": self.SOURCE_CLASSIFICATION["no data"]
}
elevations = {
"no LiDAR": dask.array.empty(
shape=(len(y), len(x)), dtype=raster_options["raster_type"]
)
}
dem = self._create_data_set(
x=x,
y=y,
Expand Down

0 comments on commit 2a9c778

Please sign in to comment.