Grid Resolution Change in Matlab

조회 수: 8 (최근 30일)
Joydeb Saha
Joydeb Saha 2020년 5월 12일
댓글: Walter Roberson 2020년 5월 13일
If I have a matrix of 10x200x300 double of horizontal resolution 0.25x0.25 (degrees). How can I change the horizontal resolution to 1x1 (degrees) in matlab?

답변 (2개)

Walter Roberson
Walter Roberson 2020년 5월 12일
편집: Walter Roberson 2020년 5월 12일
NewGrid = imresize(YourGrid, 1/4);
Each pane will be done independently, so the result would be 3 x 50 x 300
  댓글 수: 2
Joydeb Saha
Joydeb Saha 2020년 5월 13일
but where should I put the data matrix ?
Walter Roberson
Walter Roberson 2020년 5월 13일
YourGrid = Name_of_your_data_matrix_goes_here;

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


Joydeb Saha
Joydeb Saha 2020년 5월 13일
My main data is 744x721x1440 (0.25x0.25 in degrees) double. Where Time = 744x1, Lat = 721x1, Lon = 1400x1. I do time averafe to it I got the resized data as 1 x 721 x 1440 (0.25x0.25 in degrees). So when I transformed the grid resolution to 1x1 (in degrees) by your mentioned process it comes as 186x181x1440. Is it ok Sir ?
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 5월 13일
YourGrid = Name_of_your_data_matrix_goes_here;
Time_Averaged_Grid = squeeze(mean(YourGrid,1));
Time_Averaged_1degree_Grid = imresize(Time_Averaged_Grid, 1/4);

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by