1 |
gforget |
1.1 |
|
2 |
|
|
---- downloading matlab toolboxes ---- |
3 |
|
|
|
4 |
gforget |
1.3 |
1) create a directory called `iap-idma' and two subdirectories |
5 |
|
|
called `iap-idma/matlab' and `iap-idma/release1' |
6 |
gforget |
1.1 |
|
7 |
gforget |
1.2 |
2) open a web browser and download the following two files: |
8 |
|
|
http://mit.ecco-group.org/opendap/ecco_for_las/version_4/checkpoints/c65r_gcmfaces.tar.gz |
9 |
|
|
http://mit.ecco-group.org/opendap/ecco_for_las/version_4/checkpoints/c65r_MITprof.tar.gz |
10 |
gforget |
1.1 |
|
11 |
gforget |
1.2 |
3) move these two files to the idma directory and uncompress them. |
12 |
gforget |
1.1 |
|
13 |
gforget |
1.3 |
4) the iap-idma directory should now contain two subdirectories |
14 |
gforget |
1.2 |
named `c65r_gcmfaces' and `c65r_MITprof'. Rename them simply |
15 |
|
|
as `gcmfaces' and `MITprof' |
16 |
gforget |
1.1 |
|
17 |
|
|
notes : |
18 |
gforget |
1.2 |
- disk space requirement ~ 800M (plus session specific items that will be added later) |
19 |
|
|
- 2011 or later matlab version is needed (for native netcdf implementation) |
20 |
|
|
- for session 1 you only need MITprof but gcmfaces will come |
21 |
|
|
handy later so your might as well download both right away |
22 |
gforget |
1.1 |
|
23 |
|
|
---- for session #1 ---- |
24 |
|
|
|
25 |
gforget |
1.2 |
1) see 'downloading matlab toolboxes' |
26 |
gforget |
1.1 |
|
27 |
gforget |
1.2 |
2) download idma_float_plot.m, idma_box_subset.m, and idma_box_mean.m from |
28 |
|
|
http://mitgcm.org/viewvc/MITgcm/MITgcm_contrib/gael/comm/course-idma2016/matlab/ |
29 |
gforget |
1.1 |
|
30 |
gforget |
1.2 |
3) move these files to the iap-idma/matlab directory |
31 |
gforget |
1.1 |
|
32 |
gforget |
1.2 |
4) using you favorite ftp client (e.g. fetch in iOS, secureFX in MS-windows, |
33 |
|
|
or wget in LINUX) to download the following directory: |
34 |
|
|
ftp://mit.ecco-group.org/ecco_for_las/version_4/release1/MITprof_release1 |
35 |
|
|
|
36 |
gforget |
1.3 |
5) move MITprof_release1 to the iap-idma/release1 directory |
37 |
gforget |
1.1 |
|
38 |
gforget |
1.2 |
6) start matlab, go to the iap-idma directory, and type: |
39 |
gforget |
1.1 |
addpath matlab/ |
40 |
gforget |
1.2 |
[p]=idma_float_plot('4900828'); |
41 |
gforget |
1.5 |
box_l=[-180 -140]; box_L=[-10 10]-30; box_D=[0 300]; |
42 |
|
|
[prof_T,prof_Testim,prof_Tweight]=idma_box_subset(box_l,box_L,box_D); |
43 |
|
|
[boxmean,tim,dep]=idma_box_mean(prof_T,prof_Tweight); |
44 |
|
|
figureL; pcolor(tim,-dep,boxmean); colorbar; |
45 |
gforget |
1.1 |
|
46 |
|
|
notes : |
47 |
gforget |
1.4 |
- disk space requirement ~ 6.4G |
48 |
gforget |
1.2 |
- idma_float_plot.m and idma_box_subset.m both add the |
49 |
|
|
iap-idma/MITprof/ and its subdirectories to the matlab path |
50 |
gforget |
1.4 |
- idma_box_subset is the most time consuming of the three |
51 |
|
|
scripts and may take ~3 minutes |