trim function

Remove rows and columns from a raster that are all NA