convert cell to 3d matrix

1 vue (au cours des 30 derniers jours)
Ha Sen
Ha Sen le 2 Juil 2018
Commenté : KSSV le 2 Juil 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 commentaire
KSSV
KSSV le 2 Juil 2018
You are accumulating all the series in workspace......don't do it.....write the data into a netCDF file in a loop.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by