convert cell to 3d matrix

1 visualización (últimos 30 días)
Ha Sen
Ha Sen el 2 de Jul. de 2018
Comentada: KSSV el 2 de Jul. de 2018
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 comentario
KSSV
KSSV el 2 de Jul. de 2018
You are accumulating all the series in workspace......don't do it.....write the data into a netCDF file in a loop.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by