[39] | 1 | ;+ |
---|
| 2 | ; |
---|
[50] | 3 | ; .. _project_init.pro: |
---|
[40] | 4 | ; |
---|
[67] | 5 | ; ================ |
---|
| 6 | ; project_init.pro |
---|
| 7 | ; ================ |
---|
[39] | 8 | ; |
---|
| 9 | ; DESCRIPTION |
---|
| 10 | ; =========== |
---|
| 11 | ; |
---|
| 12 | ; This is the SAXO initialisation file. |
---|
| 13 | ; |
---|
| 14 | ; It ++:: |
---|
| 15 | ; |
---|
[50] | 16 | ; $ idl -startupfile project_init.pro |
---|
[40] | 17 | ; |
---|
| 18 | ; or:: |
---|
[50] | 19 | ; $ idl -IDL_STARTUP project_init.pro |
---|
[39] | 20 | ; |
---|
| 21 | ; or:: |
---|
| 22 | ; |
---|
| 23 | ; $ IDL |
---|
[50] | 24 | ; IDL> @project_init |
---|
[39] | 25 | ; |
---|
[40] | 26 | ; SEE ALSO |
---|
| 27 | ; ======== |
---|
| 28 | ; |
---|
[50] | 29 | ; :ref:`project_profile.sh` |
---|
[40] | 30 | ; |
---|
[39] | 31 | ; TODO |
---|
| 32 | ; ==== |
---|
| 33 | ; |
---|
[40] | 34 | ; learn to write IF .. ELSE in a @file |
---|
| 35 | ; |
---|
[50] | 36 | ; check idl -IDL_STARTUP project_init.pro not ok now on cratos |
---|
[39] | 37 | ; |
---|
[40] | 38 | ; EVOLUTIONS |
---|
| 39 | ; ========== |
---|
[39] | 40 | ; |
---|
[85] | 41 | ; $Id$ |
---|
| 42 | ; |
---|
[45] | 43 | ; $URL$ |
---|
| 44 | ; |
---|
[50] | 45 | ; - fplod 20110429T081938Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 46 | ; |
---|
| 47 | ; * rename to project_init.pro (more generic) |
---|
| 48 | ; |
---|
[45] | 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 | ; |
---|
[40] | 57 | ; - fplod 20110411T074056Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
[39] | 58 | ; |
---|
[40] | 59 | ; * remove fplod/cratos dependencies use $TROPFLUX*; use SAXO_SRC; |
---|
[50] | 60 | ; add cm_project |
---|
[39] | 61 | ; |
---|
| 62 | ; - fplod 20110408T131625Z cratos.locean-ipsl.upmc.fr (Linux) |
---|
| 63 | ; |
---|
| 64 | ; * creation using buildinit on cratos |
---|
| 65 | ; |
---|
| 66 | ;- |
---|
[97] | 67 | ; |
---|
[40] | 68 | ; SAXO environment |
---|
[45] | 69 | saxo_dir_env=GETENV('SAXO_DIR') |
---|
| 70 | ; |
---|
[50] | 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 | ; |
---|
[39] | 76 | ; path definition |
---|
[50] | 77 | !path = expand_path('+' + project_env_temp + '/src') $ |
---|
[45] | 78 | + path_sep(/search_path) + expand_path('+' + saxo_dir_env) $ |
---|
[39] | 79 | + path_sep(/search_path) + expand_path('+' + !dir) |
---|
| 80 | ; |
---|
[50] | 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 | ; |
---|
[39] | 87 | ; compatibility with the old version |
---|
| 88 | ; |
---|
| 89 | keep_compatibility, 0 |
---|
| 90 | ; |
---|
| 91 | ; define all the commons |
---|
| 92 | ; |
---|
[40] | 93 | @cm_4cal |
---|
| 94 | @cm_4data |
---|
| 95 | @cm_4mesh |
---|
| 96 | @cm_4data |
---|
[44] | 97 | @cm_4ps |
---|
| 98 | @cm_general |
---|
[39] | 99 | ; |
---|
| 100 | ; define default directories |
---|
| 101 | ; |
---|
[50] | 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') |
---|
[39] | 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 | ; |
---|