-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Line 36 in ea07b6d
| return elevations[SAMPLES - 1 - lat_row, lon_row].astype(int) |
To handle negative values, shouldn't you be taking the absolute value of lon_row and lat_row prior to passing them into elevations[SAMPLES - 1 - lat_row, lon_row].astype(int)? Otherwise I think lon_row will be off and lat_row will not work. For example: latitude -62.1935316, longitude -58.9801776 yields lat_row:-232,lon_row:-1176. lat_row of -232 will break since you are looking up elevations[1432, -1176]. Am I missing something?