필터 지우기
필터 지우기

Calculating anomalies to create a map

조회 수: 2 (최근 30일)
desert_scientist90
desert_scientist90 2019년 10월 25일
답변: Gurumoorthi K 2023년 6월 16일
Hi all,
I have the zscores for the years with high precipitation and low precipitation I am trying to calculate the difference in precipitation between high years and low years. For each grid. The data set is for precipitation with the dimensions of x=141, y=71 and t=38. After that I will try to display on the map the significance by using a student test of means. My code for the first part of is the following but it not working as my expectation. Rain file contains the raw data, out contain the z-scores and mean rain contain rain average.
Thanks for your help
for x=1:141
for y=1:71
z(x,y)=rain(x,y)-MeanRain
end
end
  댓글 수: 2
darova
darova 2019년 10월 25일
Can you show your result and the result you expect to see?
desert_scientist90
desert_scientist90 2019년 10월 25일
Hi I still debugging my code but it looks like this
I am getting multiple errors from idexing to indices on left are not compatible with right. I am execting to be able to display the difference between my high and low composite (already calculated on zm3) and display it at each data grid to make my map.
for yr=0:37
j=1:141;
i=1:71;
zm3(j,i,yr+1)=rain(:,:,2+yr*38);
end

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

답변 (1개)

Gurumoorthi K
Gurumoorthi K 2023년 6월 16일
Hi,
I hope you might have completed anomaly. Can you pleace share how to calculate SST anomaly from 1982-2022. I am using dridded netcdf file.

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by