1 | #---------------------------------------------------------------------- |
---|
2 | # prerequired |
---|
3 | #---------------------------------------------------------------------- |
---|
4 | First, you need either : |
---|
5 | - IDL (version 6.4 or above), see : http://www.exelisvis.com/ProductsServices/IDL.aspx |
---|
6 | In this case, you also need to download SAXO which is a free package of IDL scripts: |
---|
7 | define $PATH_SAXO, the path where you will download SAXO and get it through svn with the following command. |
---|
8 | > PATH_SAXO=... |
---|
9 | > svn checkout http://forge.ipsl.jussieu.fr/saxo/svn/trunk/SRC $PATH_SAXO/SAXO_DIR/SRC |
---|
10 | |
---|
11 | - or the IDL Virtual Machine which is free to use and does not require a license to run , see : |
---|
12 | http://www.exelisvis.com/Support/HelpArticlesDetail/TabId/219/ArtMID/900/ArticleID/12395/The-IDL-Virtual-Machine.aspx |
---|
13 | the virtual machine requites std_main.sav that is distributed with this README. |
---|
14 | |
---|
15 | Next, to use these idl tools, you need to download some climatogies and mask files; |
---|
16 | that you can find here: http://dodsp.idris.fr/reee512/NEMO_OUT/ORCA2_LIM/ |
---|
17 | |
---|
18 | There is the wget command to get all those files (thanks to F. Pinsard) |
---|
19 | wget --recursive -l2 --no-directories --no-parent -A.nc -erobots=off http://dodsp.idris.fr/reee512/NEMO_OUT/ORCA2_LIM/ |
---|
20 | |
---|
21 | You will aslo need the meshmask file (set nn_msh = 1 or nn_msh = 7 in your namelist and run the model for at least 1 time step). |
---|
22 | |
---|
23 | #---------------------------------------------------------------------- |
---|
24 | # define your std_plot_vardef.sh or std_ts_vardef.sh file |
---|
25 | #---------------------------------------------------------------------- |
---|
26 | These files are needed to define your PATHs, the experiments and variables names you used in your experiment. |
---|
27 | - std_plot_vardef.sh is used to do all plots based on temporal mean (maps, vertical profiles...). |
---|
28 | - std_ts_vardef.sh is used to do all time-series type of plot. |
---|
29 | |
---|
30 | To build you own std_plot_vardef.sh or std_ts_vardef.sh file; use the examples provided such as: |
---|
31 | - std_ts_vardef.sh_example1 or std_ts_vardef.sh_example2 |
---|
32 | - std_plot_vardef.sh_example1 or std_plot_vardef.sh_example2 |
---|
33 | |
---|
34 | Note that if you use the IDL Virtual Machine, the variable SAXO_DIR defined in std_plot_vardef.sh or std_ts_vardef.sh is not used. Any definition will be ok. |
---|
35 | |
---|
36 | #---------------------------------------------------------------------- |
---|
37 | # HOW TO USE |
---|
38 | #---------------------------------------------------------------------- |
---|
39 | ./std_main.sh -plot -pdf |
---|
40 | or |
---|
41 | ./std_main.sh -ts -pdf |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | ########################################################################################################## |
---|
47 | # short note for developers of this package on: |
---|
48 | # How to build the tarball required for IDL virtual Machine: |
---|
49 | ########################################################################################################## |
---|
50 | # |
---|
51 | # we need to recreate std_main.sav as soon as we change IDL programmes files as |
---|
52 | # std_main.sav contains all ".pro" files aready compiled to be used with the virtual machine |
---|
53 | # |
---|
54 | . ./std_plot_vardef.sh # or . ./std_ts_vardef.sh |
---|
55 | idl -IDL_STARTUP initenv |
---|
56 | IDL> .r std_main |
---|
57 | IDL> resolve_all |
---|
58 | IDL> save, /routines, filename='std_main.sav' |
---|
59 | IDL> exit |
---|
60 | # |
---|
61 | #---------------------------------------------------------------------- |
---|