source: trunk/src/project_init.pro @ 50

Last change on this file since 50 was 50, checked in by pinsard, 13 years ago

replace TROPFLUX by PROJECT

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