Skip to content

Commit 5e6ba7e

Browse files
grisaitiswholmgren
authored andcommitted
Fix #521: provide longitude before latitude when calling query.lonlat_box (#524)
* Fix #521: provide longitude before latitude when calling query.lonlat_box See signature of `siphon.DataQuery.lonlat_box`: https://github.com/Unidata/siphon/blob/a6529fbaf3165f93cdffa87080295431a647df2c/siphon/http_util.py#L174 * Document fix in release notes
1 parent 2a436c6 commit 5e6ba7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/sphinx/source/whatsnew/v0.6.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Bug fixes
7575
floats and NumPy arrays. (:issue:`508`)
7676
* Make GitHub recognize the license, add AUTHORS.md, clarify shared copyright.
7777
(:issue:`503`)
78+
* Fix argument order of longitude and latitude when querying weather forecasts by lonlat bounding box (:issue:`521`)
7879

7980

8081
Documentation

pvlib/forecast.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def set_query_latlon(self):
174174
isinstance(self.latitude, list)):
175175
self.lbox = True
176176
# west, east, south, north
177-
self.query.lonlat_box(self.latitude[0], self.latitude[1],
178-
self.longitude[0], self.longitude[1])
177+
self.query.lonlat_box(self.longitude[0], self.longitude[1],
178+
self.latitude[0], self.latitude[1])
179179
else:
180180
self.lbox = False
181181
self.query.lonlat_point(self.longitude, self.latitude)

0 commit comments

Comments
 (0)