|
| 1 | +# UMfile_utils |
| 2 | + |
| 3 | +UMfile_util is a Python library that provides specific tools to edit UM dump and field files. |
| 4 | + |
| 5 | +# UMfile_utils Desciption |
| 6 | + |
| 7 | +This package will include three abilities |
| 8 | + |
| 9 | +### perturbIC.py |
| 10 | +If the simulation fails, this code allows for minor random perturbation of the input theta (surface termperature) in the restart files. |
| 11 | +Then the simulation can be rerun to avoid crashing. In the future functionality will be added to perturb other fields as well. |
| 12 | + |
| 13 | +### um_fields_subset.py |
| 14 | + |
| 15 | +This code runs on a Dump file and allows the user to select a group of fields in the file to store |
| 16 | +in a new fields file or exclude a group of fields from the file. Both of these functionalities will |
| 17 | +create a new output file. |
| 18 | +NEED TO ADD USE CASES |
| 19 | + |
| 20 | +### change_date.py |
| 21 | +NEED TO ADD DESCRIPTION |
| 22 | + |
| 23 | + |
| 24 | +Currently these files only operate on Dump files and include a work around to deal with the river field grids. |
| 25 | + |
| 26 | +## Installation |
| 27 | +DICUSS AT SOME POINT |
| 28 | + |
| 29 | +## Usage |
| 30 | + |
| 31 | +```python |
| 32 | +If the user wants to run perturbIC with a specific output filename |
| 33 | +python perturbIC input_file_path -a 0.01 -s 2234 -o output_file_path |
| 34 | + |
| 35 | +Otherwise it is optional perturbIC will create a filename from the input path |
| 36 | +python perturbIC input_file_path -a 0.01 -s 2234 |
| 37 | + |
| 38 | +The amplitude and seed are also optional as well |
| 39 | +python perturbIC input_file_path -a 0.01 -s 2234 |
| 40 | + |
| 41 | +To take a subset of field the user must provide a either a list of fields to exculde (-x) |
| 42 | +python um_fields_subset.py input_file_path -x 155,156,3100,3101 |
| 43 | + |
| 44 | +To take a subset of field the user must provide a either a list of fields to include (-v) |
| 45 | +python um_fields_subset.py input_file_path -v 155,156,3100,3101 |
| 46 | + |
| 47 | +Or you can choose to have the program to only include pronostics -p |
| 48 | +python um_fields_subset.py input_file_path -p |
| 49 | + |
| 50 | +These three options must be run seperately |
| 51 | + |
| 52 | +``` |
| 53 | + |
| 54 | +## Contributing |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +## License |
| 59 | + |
| 60 | +NEED TO ADD THE LICENSE |
0 commit comments