« lib/App/SeismicUnixGui/developer/code/sunix/sudoc2pm_pt1.pl
↑ Summary
lib/App/SeismicUnixGui/developer/code/sunix/sunix_package_declaration.pm »
| 1 | |||
| 2 | =head1 DOCUMENTATION | ||
| 3 | |||
| 4 | =head2 SYNOPSIS | ||
| 5 | |||
| 6 | PROGRAM NAME: sudoc2pm_pt2.pl | ||
| 7 | |||
| 8 | AUTHOR: Juan Lorenzo | ||
| 9 | DATE: Septmber 11, 2021 | ||
| 10 | DESCRIPTION: update | ||
| 11 | spec-file to include correct | ||
| 12 | bindings of the screen parameters | ||
| 13 | |||
| 14 | Version: 0.0.1 | ||
| 15 | |||
| 16 | =head2 USE | ||
| 17 | |||
| 18 | =head4 Examples | ||
| 19 | |||
| 20 | =head3 NOTES | ||
| 21 | |||
| 22 | A "program_name"_changes.txt file may be needed, | ||
| 23 | but is not necessary always. | ||
| 24 | If this file is not found, then no changes. | ||
| 25 | |||
| 26 | This file will prepare the *_spec.pm file | ||
| 27 | with the correct bindings for the screen | ||
| 28 | parameters. | ||
| 29 | |||
| 30 | Selected changes are taken from files: | ||
| 31 | "program_name"_changes.txt | ||
| 32 | i.e., A *changes file in required | ||
| 33 | |||
| 34 | A "program_name"_changes.txt file is found | ||
| 35 | within the Stripped/"program_group_name"/ directory | ||
| 36 | e.g., for suk2mig3d: as ~migration/suk2mig3d_changes.txt: | ||
| 37 | |||
| 38 | 3 su | ||
| 39 | 2 bin | ||
| 40 | 4 su | ||
| 41 | 7 bin | ||
| 42 | |||
| 43 | You are now ready to run the current scripy. | ||
| 44 | You may have to run this current script manually | ||
| 45 | from within its directory e.g., ~developer/code/sunix/ | ||
| 46 | |||
| 47 | Program group array and the directory names: | ||
| 48 | |||
| 49 | $developer_sunix_categories[0] = 'data'; | ||
| 50 | $developer_sunix_categories[1] = 'datum'; | ||
| 51 | $developer_sunix_categories[2] = 'plot'; | ||
| 52 | $developer_sunix_categories[3] = 'filter'; | ||
| 53 | $developer_sunix_categories[4] = 'header'; | ||
| 54 | $developer_sunix_categories[5] = 'inversion'; | ||
| 55 | $developer_sunix_categories[6] = 'migration'; | ||
| 56 | $developer_sunix_categories[7] = 'model'; | ||
| 57 | $developer_sunix_categories[8] = 'NMO_Vel_Stk'; | ||
| 58 | $developer_sunix_categories[9] = 'par'; | ||
| 59 | $developer_sunix_categories[10] = 'picks'; | ||
| 60 | $developer_sunix_categories[11] = 'shapeNcut'; | ||
| 61 | $developer_sunix_categories[12] = 'shell'; | ||
| 62 | $developer_sunix_categories[13] = 'statsMath'; | ||
| 63 | $developer_sunix_categories[14] = 'transform'; | ||
| 64 | $developer_sunix_categories[15] = 'well'; | ||
| 65 | $developer_sunix_categories[16] = ''; | ||
| 66 | |||
| 67 | |||
| 68 | =head2 CHANGES and their DATES | ||
| 69 | |||
| 70 | Automatically modify *_spec to include bindings to directories by | ||
| 71 | in including a file within the correct category directory | ||
| 72 | e.g., : | ||
| 73 | ~/Stripped/migration/sumigps_changes.txt | ||
| 74 | |||
| 75 | Bindings are used to link a right-click to a directory | ||
| 76 | where the output files are stored. | ||
| 77 | |||
| 78 | |||
| 79 | =cut | ||
| 80 | |||
| 81 | use Moose; | ||
| 82 | our $VERSION = '0.0.1'; | ||
| 83 | use aliased 'App::SeismicUnixGui::developer::code::sunix::sudoc2pm_nameNnumber'; | ||
| 84 | use aliased 'App::SeismicUnixGui::developer::code::sunix::update'; | ||
| 85 | |||
| 86 | my $sudoc2pm_nameNnumber = sudoc2pm_nameNnumber->new(); | ||
| 87 | my $update = update->new(); | ||
| 88 | |||
| 89 | my $selected_program_name = $sudoc2pm_nameNnumber->get_selected_program_name(); | ||
| 90 | my $sunix_category_number = $sudoc2pm_nameNnumber->get_category_number(); | ||
| 91 | |||
| 92 | my $spec_changes_base_file_name = $selected_program_name.'_changes'; | ||
| 93 | |||
| 94 | $update->set_program( $selected_program_name, $sunix_category_number ); | ||
| 95 | $update->set_spec_changes_base_file_name($spec_changes_base_file_name); | ||
| 96 | $update->set_spec_changes(); | ||
| 97 | $update->spec_changes(); | ||
| 98 | $update->set_changes(); |