Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 432 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 432 Bytes

array-cropper

Functions for cropping numpy arrays

Functions that crop numpy arrays of surrounding 0's or np.nan's (i.e. the reverse of np.pad)

Available functions

  • crop:- removes surrounding zeros of 1D to 5D array
  • ncrop:- removes surrounding zeros of N dimensional array
  • nancrop:- removes surrounding nan's from 1D to 5D array