-
Notifications
You must be signed in to change notification settings - Fork 0
/
STRF_200hPa_be362.m
146 lines (142 loc) · 4.48 KB
/
STRF_200hPa_be362.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Joining the daily %
% streamfunction (200 hPa) of all years %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
path(path,'C:\Users\Laís\Desktop\tese\scripts\Plot');
path(path,'C:\Users\Laís\Desktop\tese\scripts\toolbox_geral');
path(path,'C:\Users\Laís\Desktop\tese\scripts\toolbox_ocean');
%
clc
clear
%
cd G:/nc_files/sf_files/u-be362_200hPa
%
ncdisp('sf_1982.nc');
%
STRF = ncread('sf_1982.nc','atmosphere_horizontal_streamfunction');
STRF = squeeze(STRF);
%
lat = ncread('sf_1982.nc','latitude_2'); lat1 = lat;
%
lon = ncread('sf_1982.nc','longitude_2'); lon1 = lon;
%
STRF_n = ncread('sf_1983.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1984.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1985.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1986.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1987.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1988.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1989.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1990.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1991.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1992.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1993.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1994.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1995.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1996.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1997.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1998.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_1999.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2000.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2001.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2002.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2003.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2004.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2005.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2006.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2007.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2008.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2009.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2010.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
STRF_n = ncread('sf_2011.nc','atmosphere_horizontal_streamfunction');
STRF_n = squeeze(STRF_n);
STRF = cat(3,STRF,STRF_n);
%
cd G:/Lais_jasmin/u-be362/data/STRF_200hPa
save('STRF_200hPa','STRF','lat','lon','lat1','lon1','-v7.3');
cd G:/Lais_jasmin/u-be362/scripts