Skip to content

Commit

Permalink
changed lonlat_box param order
Browse files Browse the repository at this point in the history
fixed issue Unidata#48
  • Loading branch information
jcla490 authored and MoonRaker committed Sep 26, 2015
1 parent f195db7 commit 01dc89d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions siphon/http_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def add_query_parameter(self, **kwargs):
self.extra_params.update(kwargs)
return self

def lonlat_box(self, north, south, east, west):
def lonlat_box(self, west, east, south, north):
r'''Add a latitude/longitude bounding box to the query.
This adds a request for a spatial bounding box, bounded by (`south`, `north`)
Expand All @@ -175,23 +175,22 @@ def lonlat_box(self, north, south, east, west):
Parameters
----------
north : float
The bounding latitude to the north, in degrees north of the equator
south : float
The bounding latitude to the south, in degrees north of the equator
east : float
The bounding longitude to the east, in degrees east of the prime meridian
west: float
The bounding longitude to the west, in degrees east of the prime meridian
east : float
The bounding longitude to the east, in degrees east of the prime meridian
south : float
The bounding latitude to the south, in degrees north of the equator
north : float
The bounding latitude to the north, in degrees north of the equator
Returns
-------
self : ``DataQuery`` instance
Returns self for chaining calls
'''

self._set_query(self.spatial_query, north=north, south=south,
east=east, west=west)
self._set_query(self.spatial_query, west=west, east=east, south=south, north=north)
return self

def lonlat_point(self, lon, lat):
Expand Down

0 comments on commit 01dc89d

Please sign in to comment.