how to crop a 3d data using lat , long and save the cropped file?
3 views (last 30 days)
i am trying to crop a 3d data and save the cropped data. i tried a simple code for cropping
but it gave me the error as
Index in position 1 exceeds array bounds (must not exceed 34).
how do i crop the data?
Image Analyst on 22 Nov 2021
The array does not have 110 rows -- it has only 34. Are you sure you're indexing by RF(row, columns, slice) and not by RF(x, y, slice)? Because y is row, it comes first, like RF(y, x, slice). Otherwise just read to the end with
RF6 = RF(60 : end, 5 : end, :);
but it will have to have at least 60 rows and 5 columns.