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