convert cell to 3d matrix

조회 수: 1 (최근 30일)
Ha Sen
Ha Sen 2018년 7월 2일
댓글: KSSV 2018년 7월 2일
Hi, I have a data set which are world images (9km resolution) in daily time series. Cell size of 3856x1624 and 1180 time series. I want to reduce the cell size to 360 x180 (1 degree) and form it to 360x180x1180. I have tried imresize and reshape to obtain my desired data size. This works well for only one file but using the whole data set I get an error (exceeds the 27.5 GB...). In addition, using, for instance, 3 or 30 files and a loop I could obtain my result but it was distorted. For example, using 3 files and "imagesc" I can see that the whole image was divided into the 3 images. imagesc(x(:,:,1) I could see higher latitudes; imagesc(x(:,:,3) I could see lower latitudes.
Any help is appreciated.
  댓글 수: 1
KSSV
KSSV 2018년 7월 2일
You are accumulating all the series in workspace......don't do it.....write the data into a netCDF file in a loop.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by