Skip to content

Commit

Permalink
Merge pull request #34 from ninahakansson/pre-master
Browse files Browse the repository at this point in the history
Faster writing in cfscene.py for pps
  • Loading branch information
mraspaud committed Sep 23, 2016
2 parents 1f46904 + 389733a commit 14d15a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mpop/satout/cfscene.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ def __init__(self, scene, dtype=np.int16, band_axis=2, time_dimension=False):
coordinates = (lats.info["var_name"] + " " +
lons.info["var_name"])
xy_names = ["y" + str_arc, "x" + str_arc]

if (chn.area, chn.info['units']) in area_units and not time_dimension:
if not time_dimension and (chn.area, chn.info['units']) in area_units:
str_cnt = str(area_units.index((chn.area, chn.info['units'])))
# area has been used before
band = getattr(self, "band" + str_cnt)
Expand Down

0 comments on commit 14d15a0

Please sign in to comment.