eWaterCycle / eWaterCycle/ewatercycle

Bug: wrong x and y in lat_lon_to_closest_variable_indices and lat_lon_boundingbox_to_variable_indices

Open
#104 15 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
41
Forks
6
Avg merge
8d 23h
Merged PRs (30d)
2

Description

The longitude value is obtained by **x** coordinates whereas latitude by **y**:
```python
"longitude": bmi.get_grid_x(grid),
"latitude": bmi.get_grid_y(grid),
```

This is not the case in two functions implemented in util.py:
[lat_lon_to_closest_variable_indices](https://github.com/eWaterCycle/ewatercycle/blob/1156a4ff7cdc1fc7143d0cc1137695c405581f55/ewatercycle/util.py#L43)
[lat_lon_boundingbox_to_variable_indices](https://github.com/eWaterCycle/ewatercycle/blob/1156a4ff7cdc1fc7143d0cc1137695c405581f55/ewatercycle/util.py#L69)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.