« lib/App/SeismicUnixGui/configs/big_streams/iVA_config.pm
↑ Summary
lib/App/SeismicUnixGui/developer/code/sunix/convert2V08.pl »
| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | =head1 README | ||
| 5 | |||
| 6 | =head2 DIRECTORY CONTENTS (INCOMPLETE) | ||
| 7 | |||
| 8 | Aug. 30, 2022 | ||
| 9 | |||
| 10 | =over 5 | ||
| 11 | |||
| 12 | =item convert2V07.pl | ||
| 13 | |||
| 14 | Update old flows to latest | ||
| 15 | version of main | ||
| 16 | |||
| 17 | =item change_a_line_everywhere.pl | ||
| 18 | |||
| 19 | Set text to find and change | ||
| 20 | |||
| 21 | =item sudocpm_nameNnumber.pm | ||
| 22 | |||
| 23 | Name of the program | ||
| 24 | and its program-group number | ||
| 25 | which will be used to incorporate this sunix module | ||
| 26 | into the L_SU GUIB | ||
| 27 | |||
| 28 | sudoc2pm_pt1.pl uses this package | ||
| 29 | |||
| 30 | =item program_name_changes.txt | ||
| 31 | |||
| 32 | File that describes which rows in the GUI | ||
| 33 | |||
| 34 | Will automatically be linked | ||
| 35 | to opening relevant directories. | ||
| 36 | |||
| 37 | ONLY sudoc2pm_pt2.pl uses this file | ||
| 38 | but after sudoc2pm_pt1.pl is run | ||
| 39 | susynlv 7 | ||
| 40 | |||
| 41 | =item sudoc2pm_pt1.pl | ||
| 42 | |||
| 43 | First stage in creating *.pm, *_spec.pm | ||
| 44 | and *_config.pm modules for each | ||
| 45 | Seismic unix program | ||
| 46 | |||
| 47 | You will need to | ||
| 48 | |||
| 49 | 0. make sure that the documentation | ||
| 50 | exists for the program in the | ||
| 51 | "Stripped" directory | ||
| 52 | |||
| 53 | 1. populate the following file: | ||
| 54 | ~/developer/code/sunix/nameNnumber.txt | ||
| 55 | |||
| 56 | e.g., sukdmig3d 6 | ||
| 57 | |||
| 58 | The first item is the module name | ||
| 59 | The second item list is theThe name of the number of | ||
| 60 | the program group (migration=6) | ||
| 61 | You can take these definitions from the | ||
| 62 | module: sudocpm_nameNnumber.pm | ||
| 63 | |||
| 64 | Program group names and numbers: | ||
| 65 | |||
| 66 | $developer_sunix_categories[0] = 'data'; 22 | ||
| 67 | $developer_sunix_categories[1] = 'datum'; 4 | ||
| 68 | $developer_sunix_categories[2] = 'plot'; 40 | ||
| 69 | $developer_sunix_categories[3] = 'filter'; 21 | ||
| 70 | $developer_sunix_categories[4] = 'header'; 37 | ||
| 71 | $developer_sunix_categories[5] = 'inversion'; 3 | ||
| 72 | $developer_sunix_categories[6] = 'migration'; 21 | ||
| 73 | $developer_sunix_categories[7] = 'model'; 39 | ||
| 74 | $developer_sunix_categories[8] = 'NMO_Vel_Stk'; 32 | ||
| 75 | $developer_sunix_categories[9] = 'par'; 16 | ||
| 76 | $developer_sunix_categories[10] = 'picks'; NA | ||
| 77 | $developer_sunix_categories[11] = 'shapeNcut'; 11 | ||
| 78 | $developer_sunix_categories[12] = 'shell'; 4 (of which 2 are My linux) | ||
| 79 | $developer_sunix_categories[13] = 'statsMath'; 19 | ||
| 80 | $developer_sunix_categories[14] = 'transform'; 15 | ||
| 81 | $developer_sunix_categories[15] = 'well'; 6 | ||
| 82 | $developer_sunix_categories[16] = 'unix'; NA | ||
| 83 | $developer_sunix_categories[17] = ''; | ||
| 84 | total modules: 290, of which 2 are for linux commands | ||
| 85 | Total Tools; 13 2-linux, 1-C, 1 sioseis, 1 fortran | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | 2. Finally, before your run sudoc2pm.pt1.pl enter a line in | ||
| 90 | L_SU_global_constants.pm e.g., | ||
| 91 | |||
| 92 | _sukdmig3d => $developer_sunix_categories[6], | ||
| 93 | |||
| 94 | (TODO: these lines can be written by sudoc2pm_pt1.pl) | ||
| 95 | |||
| 96 | =item sudoc2pm_pt2.pl | ||
| 97 | |||
| 98 | Second stage in creating *.pm, *_spec.pm | ||
| 99 | and *_config.pm modules for each | ||
| 100 | Seismic unix program | ||
| 101 | |||
| 102 | After running sudoc2pm_pt1.pl but BEFORE | ||
| 103 | running sudoc2pm_pt2.pl: | ||
| 104 | |||
| 105 | 1. populate the following | ||
| 106 | file if needed: | ||
| 107 | |||
| 108 | ~/developer/Stripped/group_name/program_name_changes.txt | ||
| 109 | |||
| 110 | See for example ~/developer/Stripped/migration/sukdmig3d_changes.txt | ||
| 111 | |||
| 112 | 3 su | ||
| 113 | 2 bin | ||
| 114 | 4 su | ||
| 115 | 7 bin | ||
| 116 | |||
| 117 | The number points to the parameter label seen in the gui | ||
| 118 | The data type abbreviation binds a clicking action to | ||
| 119 | open the correct directory for that file type. For example, | ||
| 120 | su will open $DATA_SEISMIC_SU | ||
| 121 | |||
| 122 | 2. Also check to see in | ||
| 123 | ~/configs/ | ||
| 124 | |||
| 125 | program_name.config | ||
| 126 | |||
| 127 | e.g., | ||
| 128 | ~/configs/statsMath/suop.config | ||
| 129 | |||
| 130 | |||
| 131 | =item | ||
| 132 | |||
| 133 | Before running code in the GUI | ||
| 134 | Add the following lines in L_SU_path.pm: | ||
| 135 | |||
| 136 | _sukdmig3d => $global_libs_w_colon->{_specs} . '::' | ||
| 137 | . $developer_sunix_categories[6], | ||
| 138 | |||
| 139 | and | ||
| 140 | |||
| 141 | _sukdmig3d => $global_libs_w_slash->{_specs} . '/' | ||
| 142 | . $developer_sunix_categories[6], | ||
| 143 | |||
| 144 | (TODO: these lines can be written by sudoc2pm_pt2.pl) | ||
| 145 | |||
| 146 | =back | ||
| 147 | |||
| 148 | |||
| 149 | |||
| 150 | =cut |