Skip to content

Commit

Permalink
Merge pull request #11 from whyjz/px_v1.0
Browse files Browse the repository at this point in the history
Fixed small bugs
  • Loading branch information
whyjz authored Oct 8, 2019
2 parents d967d25 + a6c2d95 commit 0f21771
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Utilities/Python/UtilRaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ def ClippedByPolygon(self, polygon_shapefile):
# PROBABLY HAVE TO CHANGE TO out_image[0] HERE
# extract the valid values
# and return them as a numpy 1-D array
return np.extract(clipped_data != nodata, clipped_data)
# return np.extract(clipped_data != nodata, clipped_data)
return clipped_data

def GaussianHighPass(self, sigma=3, truncate=1.0):

Expand Down
4 changes: 2 additions & 2 deletions Utilities/Python/UtilXYZ.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def OutlierDetection2D(self, thres_sigma=3.0, plot=True):
plt.axis('scaled')
plt.xlim([ax_center[0] - ax_halfwidth, ax_center[0] + ax_halfwidth])
plt.ylim([ax_center[1] - ax_halfwidth, ax_center[1] + ax_halfwidth])
plt.ylabel('Offset-X (pixels)')
plt.xlabel('Offset-Y (pixels)')
plt.ylabel('Offset-Y (pixels)')
plt.xlabel('Offset-X (pixels)')
plt.subplot(122)
plt.scatter(x, y, c=z, **pt_style)
plt.scatter(x[~idx], y[~idx], c='xkcd:red', **pt_style)
Expand Down

0 comments on commit 0f21771

Please sign in to comment.