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