1 | ;+ |
---|
2 | ; |
---|
3 | ; .. _project_init.pro: |
---|
4 | ; |
---|
5 | ; ================ |
---|
6 | ; project_init.pro |
---|
7 | ; ================ |
---|
8 | ; |
---|
9 | ; DESCRIPTION |
---|
10 | ; =========== |
---|
11 | ; |
---|
12 | ; This is the SAXO initialisation file. |
---|
13 | ; |
---|
14 | ; It ++:: |
---|
15 | ; |
---|
16 | ; idl -startupfile project_init.pro |
---|
17 | ; |
---|
18 | ; or:: |
---|
19 | ; |
---|
20 | ; idl -IDL_STARTUP project_init.pro |
---|
21 | ; |
---|
22 | ; or:: |
---|
23 | ; |
---|
24 | ; idl |
---|
25 | ; @project_init |
---|
26 | ; |
---|
27 | ; |
---|
28 | ; SEE ALSO |
---|
29 | ; ======== |
---|
30 | ; |
---|
31 | ; :ref:`project_profile.sh` |
---|
32 | ; |
---|
33 | ; :ref:`cm_project.pro` |
---|
34 | ; |
---|
35 | ; TODO |
---|
36 | ; ==== |
---|
37 | ; |
---|
38 | ; learn to write IF .. ELSE in a @file |
---|
39 | ; |
---|
40 | ; improve SAXO behaviour in batch mode using fstat and interactive structure field |
---|
41 | ; to avoid ``Error occurred at: LOADCT`` and ``% FILE_TEST: String expression required in this context: MYUNIQUETMPDIR`` |
---|
42 | ; |
---|
43 | ; EVOLUTIONS |
---|
44 | ; ========== |
---|
45 | ; |
---|
46 | ; $Id: project_init.pro 535 2012-04-20 10:01:16Z pinsard $ |
---|
47 | ; |
---|
48 | ; $URL: svn+ssh://pinsard@forge.ipsl.jussieu.fr/ipsl/forge/projets/project/svn/trunk/src/project_init.pro $ |
---|
49 | ; |
---|
50 | ; - fplod 20120424 |
---|
51 | ; |
---|
52 | ; * creation |
---|
53 | ; |
---|
54 | ;- |
---|
55 | ; |
---|
56 | ; SAXO environment |
---|
57 | saxo_dir_env=GETENV('SAXO_DIR') |
---|
58 | ; |
---|
59 | ; project environment #1 |
---|
60 | project_env_temp=GETENV('PROJECT') |
---|
61 | project_id_env_temp=GETENV('PROJECT_ID') |
---|
62 | project_od_env_temp=GETENV('PROJECT_OD') |
---|
63 | ; |
---|
64 | ; path definition |
---|
65 | !path = expand_path('+' + project_env_temp + '/src') $ |
---|
66 | + path_sep(/search_path) + expand_path('+' + saxo_dir_env) $ |
---|
67 | + path_sep(/search_path) + expand_path('+' + !dir) |
---|
68 | ; |
---|
69 | ; project environment #2 |
---|
70 | @cm_project |
---|
71 | project_env=project_env_temp |
---|
72 | project_id_env=project_id_env_temp |
---|
73 | project_od_env=project_od_env_temp |
---|
74 | ; |
---|
75 | ; compatibility with the old version |
---|
76 | ; |
---|
77 | keep_compatibility, 0 |
---|
78 | ; |
---|
79 | ; define all the commons |
---|
80 | ; |
---|
81 | @cm_4cal |
---|
82 | @cm_4data |
---|
83 | @cm_4mesh |
---|
84 | @cm_4data |
---|
85 | @cm_4ps |
---|
86 | @cm_general |
---|
87 | ; |
---|
88 | key_performance = 0 |
---|
89 | ; |
---|
90 | yyyymmddb_min=20000101L |
---|
91 | yyyymmdde_max=20121231L |
---|
92 | ; |
---|
93 | ; define default directories |
---|
94 | ; |
---|
95 | homedir = isadirectory(project_env + '/src/', title = 'Select the default HOME directory') |
---|
96 | iodir = isadirectory(project_id_env, title = 'Select the default IO directory') |
---|
97 | psdir = isadirectory(project_od_env, title = 'Select the default postscripts directory') |
---|
98 | imagedir = isadirectory(project_od_env, title = 'Select the default images directory') |
---|
99 | animdir = isadirectory(project_od_env, title = 'Select the default animations directory') |
---|
100 | ; |
---|
101 | ; define printer parameters |
---|
102 | ; |
---|
103 | printer_human_names = '' |
---|
104 | printer_machine_names = '' |
---|
105 | print_command = '' |
---|
106 | ; |
---|
107 | ; colors ... |
---|
108 | ; |
---|
109 | device, decomposed = 0 |
---|
110 | device, retain = 2 |
---|
111 | lct, 39 |
---|
112 | ; |
---|
113 | ; postscript parameters ... |
---|
114 | ; |
---|
115 | key_portrait = 0 |
---|
116 | page_size = [20.9903, 29.7039] |
---|
117 | windowsize_scale = 1.00000 |
---|
118 | archive_ps = 0 |
---|
119 | ; |
---|
120 | ;======================================================== |
---|
121 | ; end of the part that should be modified by the users... |
---|
122 | ;======================================================== |
---|
123 | ; |
---|
124 | ; if needed, keep compatibility with the old version |
---|
125 | ; |
---|
126 | @updateold |
---|
127 | ; |
---|