Skip to content

Commit

Permalink
use built in function to convert to colongitude
Browse files Browse the repository at this point in the history
  • Loading branch information
basaks committed Dec 22, 2017
1 parent d28c0cf commit 4537ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seismic/cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def process_event(event, stations, grid, wave_type):

def _find_block(grid, lat, lon, z):
y = 90. - lat
x = lon if lon > 0 else lon + 360.0
x = lon % 360
i = round(x / grid.dx) + 1
j = round(y / grid.dy) + 1
k = round(z / grid.dz) + 1
Expand Down

0 comments on commit 4537ea7

Please sign in to comment.