| 1 |
#!/bin/csh -f |
| 2 |
|
| 3 |
echo '----- hello.' |
| 4 |
echo '' |
| 5 |
echo '---- the setup of gcmfaces and profilesMatlabProcessing will start' |
| 6 |
echo '---- by downloading the files from the MITgcm cvs server (in 5 sec)' |
| 7 |
echo '' |
| 8 |
sleep 5 |
| 9 |
|
| 10 |
if ( -f ${HOME}/.cvspass ) then |
| 11 |
echo '(you already have a .cvspass file in your home. So we will try to use this one.)' |
| 12 |
echo '(If you see this message and nothing after it likely means that you will need)' |
| 13 |
echo '(to rename your .cvspass so that the present script can create a new one.)' |
| 14 |
else |
| 15 |
echo '/1 :pserver:cvsanon@mitgcm.org:2401/u/gcmpack Ah<Zy=0=' > ~/.cvspass |
| 16 |
endif |
| 17 |
|
| 18 |
setenv CVS_RSH ssh |
| 19 |
cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -d gcmfaces MITgcm_contrib/gael/matlab_class |
| 20 |
cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co -d profilesMatlabProcessing MITgcm_contrib/gael/profilesMatlabProcessing |
| 21 |
|
| 22 |
if !( -d gcmfaces) then |
| 23 |
exit |
| 24 |
endif |
| 25 |
|
| 26 |
echo '' |
| 27 |
echo '' |
| 28 |
echo '' |
| 29 |
echo '---- then we will download sample inputs to test run the codes (in 5 sec)' |
| 30 |
sleep 5 |
| 31 |
|
| 32 |
wget http://mitgcm.org/~gforget/sample_input.tar.gz |
| 33 |
gunzip sample_input.tar.gz |
| 34 |
tar xvf sample_input.tar |
| 35 |
mv sample_input gcmfaces/. |
| 36 |
rm -f sample_input.tar |
| 37 |
|
| 38 |
echo '' |
| 39 |
echo '---- Your turn.' |
| 40 |
echo '' |
| 41 |
echo '---- To finish the initialization process:' |
| 42 |
echo '---- (0) start matlab' |
| 43 |
echo '---- (1) type "cd gcmfaces" and "gcmfaces_init"' |
| 44 |
echo '---- This makes a few demo plots, that you will close afterwards.' |
| 45 |
echo '---- (2) type "cd ../profilesMatlabProcessing" and "profiles_process_init"' |
| 46 |
echo '---- This processes sample in-situ data files to the MITprof format.' |
| 47 |
echo '' |
| 48 |
echo '---- Once those two programs have run succesfully, you should be all set.' |
| 49 |
echo '' |
| 50 |
echo '---- To be able to use the packages in future matlab sessions, you will' |
| 51 |
echo '---- need the lines that were added to your path during this one.' |
| 52 |
echo '---- For example, you may want to copy those lines to your startup.m file.' |
| 53 |
|
| 54 |
echo '' |
| 55 |
echo '' |
| 56 |
echo '---- bye.' |
| 57 |
|
| 58 |
|