Skip to content

Commit

Permalink
r.windfetch: use the r.horizon JSON format in 8.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Jan 30, 2025
1 parent e841d71 commit 5daeafd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raster/r.windfetch/r.windfetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ def point_fetch(land, coordinates, direction, step, minor_directions, minor_step
offset = minor_step * (minor_directions - 1) / 2
output = []
for point in json.loads(data):
distances_dict = {
horizons["azimuth"]: horizons["distance"] for horizons in point["horizons"]
}
distances_dict = dict(zip(point["azimuth"], point["horizon_distance"]))
output.append({"x": point["x"], "y": point["y"], "directions": [], "fetch": []})
i = 0
while i < 360:
Expand Down

0 comments on commit 5daeafd

Please sign in to comment.