source: trunk/src/project_init.pro

Last change on this file was 203, checked in by pinsard, 10 years ago

fix thanks to coding rules

  • Property svn:keywords set to Id URL
File size: 3.1 KB
Line 
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
85saxo_dir_env=GETENV('SAXO_DIR')
86;
87; project environment #1
88project_env_temp=GETENV('PROJECT')
89project_id_env_temp=GETENV('PROJECT_ID')
90project_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
99project_env=project_env_temp
100project_id_env=project_id_env_temp
101project_od_env=project_od_env_temp
102;
103; define overwrite status
104project_overwrite = 0
105;
106; compatibility with the old version of SAXO
107;
108keep_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;
121homedir = isadirectory(project_env + '/src/', title = 'Select the default HOME directory')
122iodir = isadirectory(project_id_env, title = 'Select the default IO directory')
123psdir = isadirectory(project_od_env, title = 'Select the default postscripts directory')
124imagedir = isadirectory(project_od_env, title = 'Select the default images directory')
125animdir = isadirectory(project_od_env, title = 'Select the default animations directory')
126;
127; define printer parameters
128;
129printer_human_names = ''
130printer_machine_names = ''
131print_command = ''
132;
133; colors ...
134;
135device, decomposed = 0
136device, retain = 2
137lct, 39
138;
139; postscript parameters ...
140;
141key_portrait = 0
142page_size = [20.9903, 29.7039]
143windowsize_scale = 1.00000
144archive_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;
Note: See TracBrowser for help on using the repository browser.