Skip to content

Commit

Permalink
Revert concatenation to it's original place, in order to keep the tes…
Browse files Browse the repository at this point in the history
…ts working.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed May 8, 2015
1 parent de8cf46 commit 30e9994
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mpop/satin/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def area_def_names_to_extent(area_def_names, proj4_str,
maximum_extent = list(default_extent)
continue

lon_sides = np.concatenate((boundaries[0].side1, boundaries[0].side2,
boundaries[0].side3, boundaries[0].side4))
lat_sides = np.concatenate((boundaries[1].side1, boundaries[1].side2,
boundaries[1].side3, boundaries[1].side4))
lon_sides = (boundaries[0].side1, boundaries[0].side2,
boundaries[0].side3, boundaries[0].side4)
lat_sides = (boundaries[1].side1, boundaries[1].side2,
boundaries[1].side3, boundaries[1].side4)

maximum_extent = boundaries_to_extent(proj4_str, maximum_extent,
default_extent,
Expand All @@ -98,7 +98,8 @@ def boundaries_to_extent(proj4_str, maximum_extent, default_extent,
pro = Proj(proj4_str)

# extents for edges
x_dir, y_dir = pro(lon_sides, lat_sides)
x_dir, y_dir = pro(np.concatenate(lon_sides),
np.concatenate(lat_sides))

# replace invalid values with NaN
x_dir[np.abs(x_dir) > 1e20] = np.nan
Expand Down

0 comments on commit 30e9994

Please sign in to comment.