2
2
3
3
UMfile_util is a Python library that provides specific tools to process [ UM files] ( https://code.metoffice.gov.uk/doc/um/latest/papers/umdp_F03.pdf ) .
4
4
5
- ## List of functions
5
+ - [ Installation] ( #installation )
6
+ - [ List of functions] ( #list-of-functions )
7
+ - [ perturbIC] ( #perturbic )
8
+ - [ um\_ fields\_ subset] ( #um_fields_subset )
9
+ - [ change\_ date] ( #change_date )
10
+ - [ Contributing] ( #contributing )
11
+ - [ Development/Testing instructions] ( #developmenttesting-instructions )
12
+ - [ Clone/fork umfile\_ utils GitHub repo] ( #clonefork-umfile_utils-github-repo )
13
+ - [ Create a micromamba/conda testing environment] ( #create-a-micromambaconda-testing-environment )
14
+ - [ Install umfile\_ utils as a development package] ( #install-umfile_utils-as-a-development-package )
15
+ - [ Running the tests] ( #running-the-tests )
16
+ - [ License] ( #license )
17
+
18
+ ## Installation
19
+ ` umfile_utils ` is released as a ` conda ` package within the ` accessnri ` Anaconda.org channel.
20
+ To install it, run:
21
+ ```
22
+ conda install accessnri::umfile_utils
23
+ ```
6
24
25
+ ## List of functions
7
26
- [ perturbIC] ( #perturbic )
8
27
- [ um_fields_subset] ( #um-fields-subset )
9
28
- [ change_date] ( #change-date )
@@ -25,11 +44,43 @@ Change the time metadata of a UM restart file, without modifying its data conten
25
44
26
45
Run ` change_date --help ` for detailed usage information
27
46
28
- ## Installation
29
- TO BE ADDED
30
-
31
47
## Contributing
32
- TO BE ADDED
48
+ External contributions (not from ACCESS-NRI) are accepted in the form of issues and PRs from forked repos.
49
+
50
+ ### Development/Testing instructions
51
+ For development/testing, it is recommended to install ` umfile_utils ` as a development package within a ` micromamba ` /` conda ` testing environment.
52
+
53
+ ### Clone/fork umfile_utils GitHub repo
54
+ > [ !NOTE]
55
+ > If you are not part of the ACCESS-NRI, you can fork the repo instead.
56
+ ```
57
+ git clone git@github.com:ACCESS-NRI/umfile_utils.git
58
+ ```
59
+
60
+ ### Create a micromamba/conda testing environment
61
+ > [ !TIP]
62
+ > In the following instructions ` micromamba ` can be replaced with ` conda ` .
63
+
64
+ ```
65
+ cd umfile_utils
66
+ micromamba env create -n umfile_utils_dev --file .conda/env_dev.yml
67
+ micromamba activate umfile_utils_dev
68
+ ```
69
+
70
+ ### Install umfile_utils as a development package
71
+ ```
72
+ pip install --no-deps --no-build-isolation -e .
73
+ ```
74
+
75
+ ### Running the tests
76
+
77
+ To manually run the tests, from the ` umfile_utils ` directory, you can:
78
+
79
+ 1 . Activate your [ micromamba/conda testing environment] ( #create-a-micromamba-conda-testing-environment )
80
+ 2 . Run the following command:
81
+ ```
82
+ pytest
83
+ ```
33
84
34
85
## License
35
- TO BE ADDED
86
+ [ Apache-2.0 ] ( https://choosealicense.com/licenses/apache-2.0/ )
0 commit comments