1. Read your dataset into "data table" shaped matrices: NCHAN=NLON=144 columns, NSAMP=NT=240 rows. This involves a transpose, as above. Check it with quick contour plots (you don't have to show me the plots, just make sure you are on track). Are you on track? Yes!
2. Build the terms sequentially from left to right, to decompose your first variable into: data(lon,mon) = timelonmean + timemean(lon) + meanseasonalcycle1(lon,moy) + anomalies1(lon,mon) where moy = month of year (1-12, repeating 20 times) and mon = month of data series (1-240). Anomalies(lon, mon) is the residual, meaning it is equal to data minus all the others. For precip: For olr:
Confirm that the mean square of all the terms totals up to equal mean(data.*data), meaning that the decomposition is orthogonal.
For precip (pr):
Mean square of all the terms = 35.0759
mean(precip.*precip) = 35.0759 Confirmed!
For olr:
Mean square of all the terms = 58138.1406
mean(olr.*olr) = 58138.1211 Confirmed! 3. Build terms sequentially to decompose your first variable into: data(lon,mon) = timelonmean + lonmean(mon) + meanseasonalcycle2(lon,moy) + anomalies2(lon,mon).
For precip:
For olr: Does the mean square of all the terms add up to mean(data.*data)?
For precip (pr):
Mean square of all the terms = 35.5708
mean(precip.*precip) = 35.0759 Yes!
For olr:
Mean square of all the terms = 58151.1094
mean(olr.*olr) = 58138.1211 Yes! Is meanseasonalcycle1 = meanseasonalcycle2?No, see the plots above.
Is anomalies1 = anomalies2? They are almost equal, but not quite equal. Please see the plots below!: 4. Display images of anomalies(lon,mon) and the covariance matrix C(lon,lon) = anomalies' * anomalies using a symmetric, bloe-red anomaly color table. Indicate and describe how blobs in C relate to blobs in the anomalies array.???
5. Display the 3-month lagged covariance matrix C3(lon,lon) = anomalies(lon, 1:237)' * anomalies(lon, 3:240). How do its blobs relate to the blobs in C? What happens at 6 month or 12 month lag? (perhaps make a code loop to display all lags).
As the lag time increases, |C| decreases by some multiple/factor.
6. Concatenate the columns of your two fields datadata = [field1,field2]. Display the 288x288 combined covariance matrix CC([lon,lon],[lon,lon]).
Does some quadrant of it correspond to part 4? Yes, the lower-left quadrant of CC is equal to the negative of C.
Is there symmetry to CC? Yes, the upper-left quadrant and the lower-right quadrant of CC are very similar to each other.
Assignment:
1. Read your dataset into "data table" shaped matrices: NCHAN=NLON=144 columns, NSAMP=NT=240 rows. This involves a transpose, as above. Check it with quick contour plots (you don't have to show me the plots, just make sure you are on track). Are you on track?
Yes!
2. Build the terms sequentially from left to right, to decompose your first variable into:
data(lon,mon) = timelonmean + timemean(lon) + meanseasonalcycle1(lon,moy) + anomalies1(lon,mon)
where moy = month of year (1-12, repeating 20 times) and mon = month of data series (1-240). Anomalies(lon, mon) is the residual, meaning it is equal to data minus all the others.
For precip:
For olr:
Confirm that the mean square of all the terms totals up to equal mean(data.*data), meaning that the decomposition is orthogonal.
For precip (pr):
Mean square of all the terms = 35.0759
mean(precip.*precip) = 35.0759
Confirmed!
For olr:
Mean square of all the terms = 58138.1406
mean(olr.*olr) = 58138.1211
Confirmed!
3. Build terms sequentially to decompose your first variable into:
data(lon,mon) = timelonmean + lonmean(mon) + meanseasonalcycle2(lon,moy) + anomalies2(lon,mon).
For precip:
For olr:
Does the mean square of all the terms add up to mean(data.*data)?
For precip (pr):
Mean square of all the terms = 35.5708
mean(precip.*precip) = 35.0759
Yes!
For olr:
Mean square of all the terms = 58151.1094
mean(olr.*olr) = 58138.1211
Yes!
Is meanseasonalcycle1 = meanseasonalcycle2? No, see the plots above.
Is anomalies1 = anomalies2? They are almost equal, but not quite equal. Please see the plots below!:
4. Display images of anomalies(lon,mon) and the covariance matrix C(lon,lon) = anomalies' * anomalies using a symmetric, bloe-red anomaly color table.
Indicate and describe how blobs in C relate to blobs in the anomalies array. ???
5. Display the 3-month lagged covariance matrix C3(lon,lon) = anomalies(lon, 1:237)' * anomalies(lon, 3:240). How do its blobs relate to the blobs in C? What happens at 6 month or 12 month lag? (perhaps make a code loop to display all lags).
As the lag time increases, |C| decreases by some multiple/factor.
6. Concatenate the columns of your two fields datadata = [field1,field2]. Display the 288x288 combined covariance matrix CC([lon,lon],[lon,lon]).
Does some quadrant of it correspond to part 4? Yes, the lower-left quadrant of CC is equal to the negative of C.
Is there symmetry to CC? Yes, the upper-left quadrant and the lower-right quadrant of CC are very similar to each other.
My codes: