diff --git a/iff/aggregator.py b/iff/aggregator.py index 245866d0c660cd49ddf47c1edef57add73ba8861..2d670a640a88732f95e6e1674e8af7cd40016f2b 100644 --- a/iff/aggregator.py +++ b/iff/aggregator.py @@ -186,6 +186,12 @@ class Aggregator(object): # aggregated IFF files, not into the original VIIRS granule!!! # XXX needs generalizing (use self._bounds_key) # (try test case: iff start time > start time of 1st granule) + + # NICKB: attempted fix for the above + first_index = np.nonzero(self._bounds_key)[0][0] + if startY == 0: + startY = startY - first_index + f[f >= 0] += startY startY += f.shape[1] datalist.append(f)