1 |
|
|
2 |
%environment variables: |
%initialize environment variables and mygrid |
3 |
global myenv; |
gcmfaces_global; |
|
myenv.gcmfaces_verbose=0; |
|
|
myenv.gcmfaces_dir=[pwd '/gcmfaces/']; |
|
|
myenv.MITprof_verbose=0; |
|
|
myenv.MITprof_dir=[pwd '/gcmfaces/']; |
|
|
myenv.useNativeMatlabNetcdf = ~isempty(which('netcdf.open')); |
|
|
|
|
|
%re-init mygrid: |
|
|
global mygrid; mygrid=[]; |
|
4 |
|
|
5 |
|
%choose grid for test |
6 |
choiceGrid='v4'; |
choiceGrid='v4'; |
7 |
|
|
|
%transform those to functions with v3/v4 arguments: |
|
8 |
basic_diags_compute_v3_or_v4(choiceGrid); |
basic_diags_compute_v3_or_v4(choiceGrid); |
9 |
basic_diags_display_v3_or_v4(choiceGrid); |
basic_diags_display_v3_or_v4(choiceGrid); |
10 |
|
|