Update runRubbersheetAzimuth.py

Add "from scipy import ndimage"
LT1AB
HBaldwin3 2019-12-19 19:13:43 -06:00
parent 7df2b44a0c
commit 851858b228
1 changed files with 27 additions and 27 deletions

View File

@ -104,6 +104,8 @@ def fill(data, invalid=None):
Output:
Return a filled array.
"""
from scipy import ndimage
if invalid is None: invalid = np.isnan(data)
ind = ndimage.distance_transform_edt(invalid,
@ -279,5 +281,3 @@ def runRubbersheetAzimuth(self):
resampleOffset(filtAzOffsetFile, geometryAzimuthOffset, sheetOffset)
return None