1 |
|
|
2 |
---- downloading matlab toolboxes ---- |
---- downloading matlab toolboxes ---- |
3 |
|
|
4 |
0) login as guest |
1) create a directory called `iap-idma' and two subdirectories |
5 |
|
called `iap-idma/matlab' and `iap-idma/release1' |
6 |
|
|
7 |
1) open web browser and download setup_gcmfaces_and_mitprof.csh |
2) open a web browser and download the following two files: |
8 |
from http://mitgcm.org/viewvc/MITgcm/MITgcm_contrib/gael/ |
ftp://mit.ecco-group.org/ecco_for_las/version_4/checkpoints/gcmfaces_20160114.tar.gz |
9 |
|
ftp://mit.ecco-group.org/ecco_for_las/version_4/checkpoints/c65r_MITprof.tar.gz |
10 |
|
|
11 |
notes : |
3) move these two files to the idma directory and uncompress them. |
|
to download this script: click on the file name, then |
|
|
on the download button near the top of the page |
|
|
if you are using a windows computer then the shell |
|
|
script method wont do it -- see 'alternative download method' |
|
|
|
|
|
2) open terminal window and download tooloxes via shell script: |
|
|
csh |
|
|
mkdir iap-idma |
|
|
mv Downloads/setup_gcmfaces_and_mitprof.csh iap-idma/ |
|
|
cd iap-idma |
|
|
source ./setup_gcmfaces_and_mitprof.csh |
|
|
|
|
|
notes : |
|
|
disk space requirement ~ 800M (plus session specific items) |
|
|
2011 or later matlab version is needed (for native netcdf implementation) |
|
12 |
|
|
13 |
2') alternative download method: |
4) the iap-idma directory should now contain two subdirectories |
14 |
- open a web browser and go to |
named `gcmfaces' and `c65r_MITprof'. Rename c65r_MITprof as `MITprof'. |
|
http://mit.ecco-group.org/opendap/ecco_for_las/version_4/checkpoints/c65r_gcmfaces.tar.gz |
|
|
http://mit.ecco-group.org/opendap/ecco_for_las/version_4/checkpoints/c65r_MITprof.tar.gz |
|
|
- move the two downloaded files to your iap-idma directory |
|
|
- click on each of the two files to unpack c65r_gcmfaces and c65r_MITprof |
|
|
- rename c65r_gcmfaces as gcmfaces and c65r_MITprof as MITprof |
|
15 |
|
|
16 |
notes : |
notes : |
17 |
for session 1 you only need MITprof but gcmfaces will come |
- disk space requirement ~ 800M (plus session specific items that will be added later) |
18 |
handy later so your might as well download both right away |
- 2011 or later matlab version is needed (for native netcdf implementation) |
19 |
the shell script method uses CVS (see http://mitgcm.org/public/using_cvs.html) |
- for session 1 you only need MITprof but gcmfaces will come |
20 |
and should be preferred if possible (e.g. under linux or IOS on a MAC) |
handy later so your might as well download both right away |
|
since CVS allows for updates later on. |
|
21 |
|
|
22 |
---- for session #1 ---- |
---- for session #1 ---- |
23 |
|
|
24 |
1,2) same as above (see 'downloading matlab toolboxes') |
1) see 'downloading matlab toolboxes' |
25 |
|
|
26 |
3) download idma_float_plot.m from http://mitgcm.org/viewvc/MITgcm/MITgcm_contrib/gael/comm/course-idma2016/matlab/ |
2) download idma_float_plot.m, idma_box_subset.m, and idma_box_mean.m from |
27 |
|
http://mitgcm.org/viewvc/MITgcm/MITgcm_contrib/gael/comm/course-idma2016/matlab/ |
28 |
|
|
29 |
4) in terminal window |
3) move these files to the iap-idma/matlab directory |
|
mv ~/Downloads/idma_float_plot.m ~/iap-idma/. |
|
30 |
|
|
31 |
5) download Argo etc |
4) using you favorite ftp client (e.g. fetch in iOS, secureFX in MS-windows, |
32 |
cd ~/iap-idma |
or wget in LINUX) to download the following directory: |
33 |
mkdir release1 |
ftp://mit.ecco-group.org/ecco_for_las/version_4/release1/MITprof_release1 |
34 |
wget --recursive ftp://mit.ecco-group.org/ecco_for_las/version_4/release1/MITprof_release1 |
|
35 |
mv mit.ecco-group.org/ecco_for_las/version_4/release1/MITprof_release1 release1/. |
5) move MITprof_release1 to the iap-idma/release1 directory |
36 |
|
|
37 |
6) start matlab and run idma_float_plot.m |
6) start matlab, go to the iap-idma directory, and type: |
|
matlab |
|
38 |
addpath matlab/ |
addpath matlab/ |
39 |
[p]=idma_float_plot('2900828'); |
[p]=idma_float_plot('4900828'); |
40 |
|
box_l=[-180 -140]; box_L=[-10 10]-30; box_D=[0 300]; |
41 |
|
[prof_T,prof_Testim,prof_Tweight]=idma_box_subset(box_l,box_L,box_D); |
42 |
|
[boxmean,tim,dep]=idma_box_mean(prof_T,prof_Tweight); |
43 |
|
figureL; pcolor(tim,-dep,boxmean); colorbar; |
44 |
|
|
45 |
notes : |
notes : |
46 |
disk space requirement ~ 6.4G (plus 0.8G from steps 1,2) |
- disk space requirement ~ 6.4G |
47 |
start matlab at command line : matlab -nodesktop |
- idma_float_plot.m and idma_box_subset.m both add the |
48 |
idma_float_plot adds the MITprof/ subdirectories to the matlab path |
iap-idma/MITprof/ and its subdirectories to the matlab path |
49 |
|
- idma_box_subset is the most time consuming of the three |
50 |
|
scripts and may take ~3 minutes |
51 |
|
|
52 |
|
----- for session #2 ----- |
53 |
|
|
54 |
|
1) see 'downloading matlab toolboxes' |
55 |
|
note: make sure to use gcmfaces_20160114.tar.gz or the up to date version of |
56 |
|
gcmfaces from CVS (rather than c65r_MITprof.tar.gz or earlier versions). |
57 |
|
2) download the m_map plotting toolbox (use the 'zip archive' link) from |
58 |
|
https://www.eoas.ubc.ca/~rich/map.html |
59 |
|
unzip and move it to iap-idma/ |
60 |
|
2) using you favorite ftp client (e.g. fetch in iOS, secureFX in MS-windows, |
61 |
|
or wget in LINUX) to download the following directory (145M): |
62 |
|
ftp://mit.ecco-group.org/ecco_for_las/version_4/release1/nctiles_grid |
63 |
|
and move it to iap-idma/ |
64 |
|
3) using you favorite ftp client (e.g. fetch in iOS, secureFX in MS-windows, |
65 |
|
or wget in LINUX) to download the following directory (14G): |
66 |
|
ftp://mit.ecco-group.org/ecco_for_las/version_4/release1/nctiles_climatology |
67 |
|
and move it to iap-idma/release1/ |
68 |
|
4) start matlab, go to the iap-idma directory, and type: |
69 |
|
p = genpath([pwd filesep 'gcmfaces/']); addpath(p); |
70 |
|
p = genpath([pwd filesep 'MITprof/']); addpath(p); |
71 |
|
p = genpath([pwd filesep 'm_map/']); addpath(p); |
72 |
|
grid_load;%load ECCO v4 grid into mygrid |
73 |
|
gcmfaces_global;%declare mygrid as global |
74 |
|
disp(mygrid);%displays grid variables |
75 |
|
diags=example_transports;%computes transports (takes ~ 2 minutes) |
76 |
|
example_transports_disp(diags);%display results |
77 |
|
then proceed as explained in section 5 of gcmfaces/gcmfaces.pdf |
78 |
|
to use diags_driver.m and diags_display.m (takes ~ 5 minutes) |
79 |
|
|