[2] | 1 | ;+ |
---|
| 2 | ; |
---|
| 3 | ; .. _project_init.pro: |
---|
| 4 | ; |
---|
| 5 | ; ================ |
---|
[9] | 6 | ; project_init.pro |
---|
[2] | 7 | ; ================ |
---|
| 8 | ; |
---|
| 9 | ; DESCRIPTION |
---|
| 10 | ; =========== |
---|
| 11 | ; |
---|
| 12 | ; This is the SAXO initialisation file. |
---|
| 13 | ; |
---|
[9] | 14 | ; It ++: |
---|
[2] | 15 | ; |
---|
[9] | 16 | ; .. code-block:: bash |
---|
[2] | 17 | ; |
---|
[9] | 18 | ; idl -startupfile project_init.pro |
---|
[2] | 19 | ; |
---|
[9] | 20 | ; or |
---|
[2] | 21 | ; |
---|
[9] | 22 | ; .. code-block:: bash |
---|
[2] | 23 | ; |
---|
[9] | 24 | ; idl -IDL_STARTUP project_init.pro |
---|
[2] | 25 | ; |
---|
[9] | 26 | ; or |
---|
[2] | 27 | ; |
---|
[9] | 28 | ; .. code-block:: idl |
---|
| 29 | ; |
---|
| 30 | ; @project_init |
---|
| 31 | ; |
---|
[2] | 32 | ; SEE ALSO |
---|
| 33 | ; ======== |
---|
| 34 | ; |
---|
| 35 | ; :ref:`project_profile.sh` |
---|
| 36 | ; |
---|
| 37 | ; :ref:`cm_project.pro` |
---|
| 38 | ; |
---|
| 39 | ; TODO |
---|
| 40 | ; ==== |
---|
| 41 | ; |
---|
| 42 | ; learn to write IF .. ELSE in a @file |
---|
| 43 | ; |
---|
[9] | 44 | ; improve SAXO behaviour in batch mode using fstat and interactive |
---|
| 45 | ; structure field to avoid |
---|
| 46 | ; ``Error occurred at: LOADCT`` and ``% FILE_TEST: String expression required in this context: MYUNIQUETMPDIR`` |
---|
[2] | 47 | ; |
---|
| 48 | ; EVOLUTIONS |
---|
| 49 | ; ========== |
---|
| 50 | ; |
---|
| 51 | ; $Id: project_init.pro 535 2012-04-20 10:01:16Z pinsard $ |
---|
| 52 | ; |
---|
| 53 | ; $URL: svn+ssh://pinsard@forge.ipsl.jussieu.fr/ipsl/forge/projets/project/svn/trunk/src/project_init.pro $ |
---|
| 54 | ; |
---|
| 55 | ; - fplod 20120424 |
---|
| 56 | ; |
---|
| 57 | ; * creation |
---|
| 58 | ; |
---|
| 59 | ;- |
---|
[9] | 60 | ; |
---|
[2] | 61 | ; SAXO environment |
---|
| 62 | saxo_dir_env=GETENV('SAXO_DIR') |
---|
| 63 | ; |
---|
| 64 | ; project environment #1 |
---|
| 65 | project_env_temp=GETENV('PROJECT') |
---|
| 66 | project_id_env_temp=GETENV('PROJECT_ID') |
---|
| 67 | project_od_env_temp=GETENV('PROJECT_OD') |
---|
| 68 | ; |
---|
| 69 | ; path definition |
---|
| 70 | !path = expand_path('+' + project_env_temp + '/src') $ |
---|
| 71 | + path_sep(/search_path) + expand_path('+' + saxo_dir_env) $ |
---|
| 72 | + path_sep(/search_path) + expand_path('+' + !dir) |
---|
| 73 | ; |
---|
| 74 | ; project environment #2 |
---|
| 75 | @cm_project |
---|
| 76 | project_env=project_env_temp |
---|
| 77 | project_id_env=project_id_env_temp |
---|
| 78 | project_od_env=project_od_env_temp |
---|
| 79 | ; |
---|
| 80 | ; compatibility with the old version |
---|
| 81 | ; |
---|
| 82 | keep_compatibility, 0 |
---|
| 83 | ; |
---|
| 84 | ; define all the commons |
---|
| 85 | ; |
---|
| 86 | @cm_4cal |
---|
| 87 | @cm_4data |
---|
| 88 | @cm_4mesh |
---|
| 89 | @cm_4data |
---|
| 90 | @cm_4ps |
---|
| 91 | @cm_general |
---|
| 92 | ; |
---|
| 93 | key_performance = 0 |
---|
| 94 | ; |
---|
| 95 | yyyymmddb_min=20000101L |
---|
| 96 | yyyymmdde_max=20121231L |
---|
| 97 | ; |
---|
| 98 | ; define default directories |
---|
| 99 | ; |
---|
| 100 | homedir = isadirectory(project_env + '/src/', title = 'Select the default HOME directory') |
---|
| 101 | iodir = isadirectory(project_id_env, title = 'Select the default IO directory') |
---|
| 102 | psdir = isadirectory(project_od_env, title = 'Select the default postscripts directory') |
---|
| 103 | imagedir = isadirectory(project_od_env, title = 'Select the default images directory') |
---|
| 104 | animdir = isadirectory(project_od_env, title = 'Select the default animations directory') |
---|
| 105 | ; |
---|
| 106 | ; define printer parameters |
---|
| 107 | ; |
---|
| 108 | printer_human_names = '' |
---|
| 109 | printer_machine_names = '' |
---|
| 110 | print_command = '' |
---|
| 111 | ; |
---|
| 112 | ; colors ... |
---|
| 113 | ; |
---|
| 114 | device, decomposed = 0 |
---|
| 115 | device, retain = 2 |
---|
| 116 | lct, 39 |
---|
| 117 | ; |
---|
| 118 | ; postscript parameters ... |
---|
| 119 | ; |
---|
| 120 | key_portrait = 0 |
---|
| 121 | page_size = [20.9903, 29.7039] |
---|
| 122 | windowsize_scale = 1.00000 |
---|
| 123 | archive_ps = 0 |
---|
| 124 | ; |
---|
| 125 | ;======================================================== |
---|
| 126 | ; end of the part that should be modified by the users... |
---|
| 127 | ;======================================================== |
---|
| 128 | ; |
---|
| 129 | ; if needed, keep compatibility with the old version |
---|
| 130 | ; |
---|
| 131 | @updateold |
---|
| 132 | ; |
---|