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 | ; $ idl -IDL_STARTUP project_init.pro |
---|
20 | ; |
---|
21 | ; or:: |
---|
22 | ; |
---|
23 | ; $ IDL |
---|
24 | ; IDL> @project_init |
---|
25 | ; |
---|
26 | ; SEE ALSO |
---|
27 | ; ======== |
---|
28 | ; |
---|
29 | ; :ref:`project_profile.sh` |
---|
30 | ; |
---|
31 | ; TODO |
---|
32 | ; ==== |
---|
33 | ; |
---|
34 | ; learn to write IF .. ELSE in a @file |
---|
35 | ; |
---|
36 | ; check idl -IDL_STARTUP project_init.pro not ok now on cratos |
---|
37 | ; |
---|
38 | ; EVOLUTIONS |
---|
39 | ; ========== |
---|
40 | ; |
---|
41 | ; $Id$ |
---|
42 | ; |
---|
43 | ; $URL$ |
---|
44 | ; |
---|
45 | ; - fplod 20110429T081938Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
46 | ; |
---|
47 | ; * rename to project_init.pro (more generic) |
---|
48 | ; |
---|
49 | ; - fplod 20110413T151541Z cratos.locean-ipsl.upmc.fr (Linux) |
---|
50 | ; |
---|
51 | ; * fix uncompleted replacement SAXO_SRC by SAXO_DIR |
---|
52 | ; |
---|
53 | ; - fplod 20110413T070801Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
54 | ; |
---|
55 | ; * replace SAXO_SRC by SAXO_DIR |
---|
56 | ; |
---|
57 | ; - fplod 20110411T074056Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
58 | ; |
---|
59 | ; * remove fplod/cratos dependencies use $TROPFLUX*; use SAXO_SRC; |
---|
60 | ; add cm_project |
---|
61 | ; |
---|
62 | ; - fplod 20110408T131625Z cratos.locean-ipsl.upmc.fr (Linux) |
---|
63 | ; |
---|
64 | ; * creation using buildinit on cratos |
---|
65 | ; |
---|
66 | ;- |
---|
67 | ; |
---|
68 | ; SAXO environment |
---|
69 | saxo_dir_env=GETENV('SAXO_DIR') |
---|
70 | ; |
---|
71 | ; project environment #1 |
---|
72 | project_env_temp=GETENV('PROJECT') |
---|
73 | project_id_env_temp=GETENV('PROJECT_ID') |
---|
74 | project_od_env_temp=GETENV('PROJECT_OD') |
---|
75 | ; |
---|
76 | ; path definition |
---|
77 | !path = expand_path('+' + project_env_temp + '/src') $ |
---|
78 | + path_sep(/search_path) + expand_path('+' + saxo_dir_env) $ |
---|
79 | + path_sep(/search_path) + expand_path('+' + !dir) |
---|
80 | ; |
---|
81 | ; project environment #2 |
---|
82 | @cm_project |
---|
83 | project_env=project_env_temp |
---|
84 | project_id_env=project_id_env_temp |
---|
85 | project_od_env=project_od_env_temp |
---|
86 | ; |
---|
87 | ; compatibility with the old version |
---|
88 | ; |
---|
89 | keep_compatibility, 0 |
---|
90 | ; |
---|
91 | ; define all the commons |
---|
92 | ; |
---|
93 | @cm_4cal |
---|
94 | @cm_4data |
---|
95 | @cm_4mesh |
---|
96 | @cm_4data |
---|
97 | @cm_4ps |
---|
98 | @cm_general |
---|
99 | ; |
---|
100 | ; define default directories |
---|
101 | ; |
---|
102 | homedir = isadirectory(project_env + '/src/', title = 'Select the default HOME directory') |
---|
103 | iodir = isadirectory(project_id_env, title = 'Select the default IO directory') |
---|
104 | psdir = isadirectory(project_od_env, title = 'Select the default postscripts directory') |
---|
105 | imagedir = isadirectory(project_od_env, title = 'Select the default images directory') |
---|
106 | animdir = isadirectory(project_od_env, title = 'Select the default animations directory') |
---|
107 | ; |
---|
108 | ; define printer parameters |
---|
109 | ; |
---|
110 | printer_human_names = '' |
---|
111 | printer_machine_names = '' |
---|
112 | print_command = '' |
---|
113 | ; |
---|
114 | ; colors ... |
---|
115 | ; |
---|
116 | device, decomposed = 0 |
---|
117 | device, retain = 2 |
---|
118 | lct, 39 |
---|
119 | ; |
---|
120 | ; postscript parameters ... |
---|
121 | ; |
---|
122 | key_portrait = 0 |
---|
123 | page_size = [20.9903, 29.7039] |
---|
124 | windowsize_scale = 1.00000 |
---|
125 | archive_ps = 0 |
---|
126 | ; |
---|
127 | ;======================================================== |
---|
128 | ; end of the part that should be modified by the users... |
---|
129 | ;======================================================== |
---|
130 | ; |
---|
131 | ; if needed, keep compatibility with the old version |
---|
132 | ; |
---|
133 | @updateold |
---|
134 | ; |
---|