access-moppy 1.0.0a6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. access_moppy-1.0.0a6/LICENCE.txt +202 -0
  2. access_moppy-1.0.0a6/PKG-INFO +205 -0
  3. access_moppy-1.0.0a6/README.md +159 -0
  4. access_moppy-1.0.0a6/pyproject.toml +163 -0
  5. access_moppy-1.0.0a6/setup.cfg +4 -0
  6. access_moppy-1.0.0a6/setup.py +9 -0
  7. access_moppy-1.0.0a6/src/access_moppy/__init__.py +12 -0
  8. access_moppy-1.0.0a6/src/access_moppy/_config.py +71 -0
  9. access_moppy-1.0.0a6/src/access_moppy/_version.py +21 -0
  10. access_moppy-1.0.0a6/src/access_moppy/atmosphere.py +222 -0
  11. access_moppy-1.0.0a6/src/access_moppy/base.py +330 -0
  12. access_moppy-1.0.0a6/src/access_moppy/batch_cmoriser.py +306 -0
  13. access_moppy-1.0.0a6/src/access_moppy/dashboard/__init__.py +0 -0
  14. access_moppy-1.0.0a6/src/access_moppy/dashboard/cmor_dashboard.py +73 -0
  15. access_moppy-1.0.0a6/src/access_moppy/defaults.py +11 -0
  16. access_moppy-1.0.0a6/src/access_moppy/derivations/__init__.py +57 -0
  17. access_moppy-1.0.0a6/src/access_moppy/derivations/calc_atmos.py +272 -0
  18. access_moppy-1.0.0a6/src/access_moppy/derivations/calc_land.py +154 -0
  19. access_moppy-1.0.0a6/src/access_moppy/derivations/calc_utils.py +250 -0
  20. access_moppy-1.0.0a6/src/access_moppy/driver.py +167 -0
  21. access_moppy-1.0.0a6/src/access_moppy/examples/batch_config.yml +82 -0
  22. access_moppy-1.0.0a6/src/access_moppy/examples/show_config.py +16 -0
  23. access_moppy-1.0.0a6/src/access_moppy/executors/pbs_scheduler.py +171 -0
  24. access_moppy-1.0.0a6/src/access_moppy/mappings/ACCESS-ESM1.6_mappings.json +1591 -0
  25. access_moppy-1.0.0a6/src/access_moppy/mappings/ACCESS-OM3_mappings.json +291 -0
  26. access_moppy-1.0.0a6/src/access_moppy/ocean.py +168 -0
  27. access_moppy-1.0.0a6/src/access_moppy/ocean_supergrid.py +185 -0
  28. access_moppy-1.0.0a6/src/access_moppy/tracking.py +120 -0
  29. access_moppy-1.0.0a6/src/access_moppy/utilities.py +1501 -0
  30. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CITATION.cff +28 -0
  31. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_DRS.json +20 -0
  32. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_activity_id.json +38 -0
  33. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_experiment_id.json +9468 -0
  34. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_frequency.json +30 -0
  35. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_grid_label.json +59 -0
  36. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_institution_id.json +63 -0
  37. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_license.json +33 -0
  38. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_nominal_resolution.json +29 -0
  39. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_realm.json +22 -0
  40. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_required_global_attributes.json +44 -0
  41. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_source_id.json +8105 -0
  42. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_source_type.json +24 -0
  43. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_sub_experiment_id.json +88 -0
  44. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/CMIP6_table_id.json +57 -0
  45. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/LICENSE-CC-BY +395 -0
  46. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/README.md +63 -0
  47. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/_config.yml +1 -0
  48. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/CMIP6_CVs/mip_era.json +19 -0
  49. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/LICENSE.md +29 -0
  50. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/README.md +46 -0
  51. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_3hr.json +432 -0
  52. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_6hrLev.json +162 -0
  53. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_6hrPlev.json +324 -0
  54. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_6hrPlevPt.json +684 -0
  55. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_AERday.json +216 -0
  56. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_AERhr.json +108 -0
  57. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_AERmon.json +2286 -0
  58. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_AERmonZ.json +324 -0
  59. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Amon.json +1368 -0
  60. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_CF3hr.json +1170 -0
  61. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_CFday.json +666 -0
  62. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_CFmon.json +1044 -0
  63. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_CFsubhr.json +1442 -0
  64. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_CV.json +11567 -0
  65. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_E1hr.json +306 -0
  66. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_E1hrClimMon.json +108 -0
  67. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_E3hr.json +360 -0
  68. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_E3hrPt.json +882 -0
  69. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_E6hrZ.json +54 -0
  70. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Eday.json +2232 -0
  71. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_EdayZ.json +288 -0
  72. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Efx.json +306 -0
  73. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Emon.json +5976 -0
  74. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_EmonZ.json +468 -0
  75. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Esubhr.json +614 -0
  76. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Eyr.json +360 -0
  77. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_IfxAnt.json +90 -0
  78. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_IfxGre.json +90 -0
  79. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_ImonAnt.json +504 -0
  80. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_ImonGre.json +504 -0
  81. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_IyrAnt.json +612 -0
  82. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_IyrGre.json +612 -0
  83. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_LImon.json +666 -0
  84. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Lmon.json +972 -0
  85. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Oclim.json +630 -0
  86. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Oday.json +144 -0
  87. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Odec.json +558 -0
  88. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Ofx.json +182 -0
  89. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Omon.json +5274 -0
  90. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_Oyr.json +2214 -0
  91. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_SIday.json +180 -0
  92. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_SImon.json +1620 -0
  93. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_coordinate.json +3226 -0
  94. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_day.json +702 -0
  95. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_formula_terms.json +204 -0
  96. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_fx.json +162 -0
  97. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_grids.json +158 -0
  98. access_moppy-1.0.0a6/src/access_moppy/vocabularies/cmip6_cmor_tables/Tables/CMIP6_input_example.json +74 -0
  99. access_moppy-1.0.0a6/src/access_moppy/vocabulary_processors.py +473 -0
  100. access_moppy-1.0.0a6/src/access_moppy.egg-info/PKG-INFO +205 -0
  101. access_moppy-1.0.0a6/src/access_moppy.egg-info/SOURCES.txt +105 -0
  102. access_moppy-1.0.0a6/src/access_moppy.egg-info/dependency_links.txt +1 -0
  103. access_moppy-1.0.0a6/src/access_moppy.egg-info/entry_points.txt +4 -0
  104. access_moppy-1.0.0a6/src/access_moppy.egg-info/requires.txt +30 -0
  105. access_moppy-1.0.0a6/src/access_moppy.egg-info/top_level.txt +1 -0
  106. access_moppy-1.0.0a6/tests/test_smoke.py +159 -0
  107. access_moppy-1.0.0a6/versioneer.py +2277 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,205 @@
1
+ Metadata-Version: 2.4
2
+ Name: access_moppy
3
+ Version: 1.0.0a6
4
+ Summary: ACCESS Model Output Post-Processor, maps raw model output to CMIP-style defined variables and produce post-processed output using CMOR3
5
+ Author-email: Romain Beucher <romain.beucher@anu.edu.au>
6
+ License: Apache-2.0
7
+ Keywords: ACCESS,post-processing
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENCE.txt
18
+ Requires-Dist: numpy
19
+ Requires-Dist: pandas
20
+ Requires-Dist: xarray
21
+ Requires-Dist: netCDF4
22
+ Requires-Dist: cftime
23
+ Requires-Dist: dask
24
+ Requires-Dist: pyyaml
25
+ Requires-Dist: tqdm
26
+ Requires-Dist: requests
27
+ Requires-Dist: parsl
28
+ Requires-Dist: jinja2
29
+ Provides-Extra: dashboard
30
+ Requires-Dist: streamlit>=1.35.0; extra == "dashboard"
31
+ Provides-Extra: test
32
+ Requires-Dist: pytest; extra == "test"
33
+ Requires-Dist: pytest-cov; extra == "test"
34
+ Requires-Dist: pytest-subtests; extra == "test"
35
+ Requires-Dist: ruff; extra == "test"
36
+ Provides-Extra: docs
37
+ Requires-Dist: sphinx>=7.0.0; extra == "docs"
38
+ Requires-Dist: sphinx-rtd-theme>=1.3.0; extra == "docs"
39
+ Requires-Dist: sphinx-autodoc-typehints>=1.23.0; extra == "docs"
40
+ Requires-Dist: myst-parser>=2.0.0; extra == "docs"
41
+ Requires-Dist: sphinx-autoapi>=3.0.0; extra == "docs"
42
+ Requires-Dist: nbsphinx>=0.9.0; extra == "docs"
43
+ Requires-Dist: ipython>=8.0.0; extra == "docs"
44
+ Requires-Dist: pygments>=2.15.0; extra == "docs"
45
+ Dynamic: license-file
46
+
47
+ <div align="center">
48
+ <img src="docs/images/Moppy_logo.png" alt="MOPPy Logo" width="300"/>
49
+ </div>
50
+
51
+ # ACCESS-MOPPy (Model Output Post-Processor)
52
+
53
+ [![Documentation Status](https://readthedocs.org/projects/access-moppy/badge/?version=latest)](https://access-moppy.readthedocs.io/en/latest/?badge=latest)
54
+ [![PyPI version](https://badge.fury.io/py/access_moppy.svg)](https://badge.fury.io/py/access_moppy)
55
+ [![Conda Version](https://img.shields.io/conda/vn/accessnri/access-moppy.svg)](https://anaconda.org/accessnri/access-moppy)
56
+
57
+ ACCESS-MOPPy is a CMORisation tool designed to post-process ACCESS model output and produce CMIP-compliant datasets.
58
+
59
+ ## Key Features
60
+
61
+ - **Python API** for integration into notebooks and scripts
62
+ - **Batch processing system** for HPC environments with PBS
63
+ - **Real-time monitoring** with web-based dashboard
64
+ - **Flexible CMORisation** of individual variables
65
+ - **Dask-enabled** for scalable parallel processing
66
+ - **Cross-platform compatibility** (not limited to NCI Gadi)
67
+ - **CMIP6 and CMIP7 FastTrack support**
68
+
69
+ ## Installation
70
+
71
+ ACCESS-MOPPy requires Python >= 3.11. Install with:
72
+
73
+ ```bash
74
+ pip install numpy pandas xarray netCDF4 cftime dask pyyaml tqdm requests streamlit
75
+ pip install .
76
+ ```
77
+
78
+ ## Quick Start
79
+
80
+ ### Interactive Usage (Python API)
81
+
82
+ ```python
83
+ import glob
84
+ from access_moppy import ACCESS_ESM_CMORiser
85
+
86
+ # Select input files
87
+ files = glob.glob("/path/to/model/output/*mon.nc")
88
+
89
+ # Create CMORiser instance
90
+ cmoriser = ACCESS_ESM_CMORiser(
91
+ input_paths=files,
92
+ compound_name="Amon.pr", # table.variable format
93
+ experiment_id="historical",
94
+ source_id="ACCESS-ESM1-5",
95
+ variant_label="r1i1p1f1",
96
+ grid_label="gn",
97
+ activity_id="CMIP",
98
+ output_path="/path/to/output"
99
+ )
100
+
101
+ # Run CMORisation
102
+ cmoriser.run()
103
+ cmoriser.write()
104
+ ```
105
+
106
+ ### Batch Processing (HPC/PBS)
107
+
108
+ For large-scale processing on HPC systems:
109
+
110
+ 1. **Create a configuration file** (`batch_config.yml`):
111
+
112
+ ```yaml
113
+ variables:
114
+ - Amon.pr
115
+ - Omon.tos
116
+ - Amon.ts
117
+
118
+ experiment_id: piControl
119
+ source_id: ACCESS-ESM1-5
120
+ variant_label: r1i1p1f1
121
+ grid_label: gn
122
+
123
+ input_folder: "/g/data/project/model/output"
124
+ output_folder: "/scratch/project/cmor_output"
125
+
126
+ file_patterns:
127
+ Amon.pr: "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc"
128
+ Omon.tos: "output[0-4][0-9][0-9]/ocean/*temp*.nc"
129
+ Amon.ts: "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc"
130
+
131
+ # PBS configuration
132
+ queue: normal
133
+ cpus_per_node: 16
134
+ mem: 32GB
135
+ walltime: "02:00:00"
136
+ scheduler_options: "#PBS -P your_project"
137
+ storage: "gdata/project+scratch/project"
138
+
139
+ worker_init: |
140
+ module load conda
141
+ conda activate your_environment
142
+ ```
143
+
144
+ 2. **Submit batch job**:
145
+
146
+ ```bash
147
+ moppy-cmorise batch_config.yml
148
+ ```
149
+
150
+ 3. **Monitor progress** at http://localhost:8501
151
+
152
+ ## Batch Processing Features
153
+
154
+ The batch processing system provides:
155
+
156
+ - **Parallel execution**: Each variable processed as a separate PBS job
157
+ - **Real-time monitoring**: Web dashboard showing job status and progress
158
+ - **Automatic tracking**: SQLite database maintains job history and status
159
+ - **Error handling**: Failed jobs can be easily identified and resubmitted
160
+ - **Resource optimization**: Configurable CPU, memory, and storage requirements
161
+ - **Environment management**: Automatic setup of conda/module environments
162
+
163
+ ### Monitoring Tools
164
+
165
+ - **Streamlit Dashboard**: Real-time web interface at http://localhost:8501
166
+ - **Command line**: Use standard PBS commands (`qstat`, `qdel`)
167
+ - **Database**: SQLite tracking at `{output_folder}/cmor_tasks.db`
168
+ - **Log files**: Individual stdout/stderr for each job
169
+
170
+ ### File Organization
171
+
172
+ ```
173
+ work_directory/
174
+ ├── batch_config.yml # Your configuration
175
+ ├── cmor_job_scripts/ # Generated PBS scripts and logs
176
+ │ ├── cmor_Amon_pr.sh # PBS script
177
+ │ ├── cmor_Amon_pr.py # Python processing script
178
+ │ ├── cmor_Amon_pr.out # Job output
179
+ │ └── cmor_Amon_pr.err # Job errors
180
+ └── output_folder/
181
+ ├── cmor_tasks.db # Progress tracking
182
+ └── [CMORised files] # Final output
183
+ ```
184
+
185
+ ## Documentation
186
+
187
+ - **Getting Started**: `docs/source/getting_started.rst`
188
+ - **Example Configuration**: `src/access_moppy/examples/batch_config.yml`
189
+ - **API Reference**: [Coming soon]
190
+
191
+ ## Current Limitations
192
+
193
+ - **Alpha version**: Intended for evaluation only
194
+ - **Ocean variables**: Limited support in current release
195
+ - **Variable mapping**: Under review for CMIP6/CMIP7 compliance
196
+
197
+ ## Support
198
+
199
+ - **Issues**: Submit via GitHub Issues
200
+ - **Questions**: Contact ACCESS-NRI support
201
+ - **Contributions**: Welcome via Pull Requests
202
+
203
+ ## License
204
+
205
+ ACCESS-MOPPy is licensed under the Apache-2.0 License.
@@ -0,0 +1,159 @@
1
+ <div align="center">
2
+ <img src="docs/images/Moppy_logo.png" alt="MOPPy Logo" width="300"/>
3
+ </div>
4
+
5
+ # ACCESS-MOPPy (Model Output Post-Processor)
6
+
7
+ [![Documentation Status](https://readthedocs.org/projects/access-moppy/badge/?version=latest)](https://access-moppy.readthedocs.io/en/latest/?badge=latest)
8
+ [![PyPI version](https://badge.fury.io/py/access_moppy.svg)](https://badge.fury.io/py/access_moppy)
9
+ [![Conda Version](https://img.shields.io/conda/vn/accessnri/access-moppy.svg)](https://anaconda.org/accessnri/access-moppy)
10
+
11
+ ACCESS-MOPPy is a CMORisation tool designed to post-process ACCESS model output and produce CMIP-compliant datasets.
12
+
13
+ ## Key Features
14
+
15
+ - **Python API** for integration into notebooks and scripts
16
+ - **Batch processing system** for HPC environments with PBS
17
+ - **Real-time monitoring** with web-based dashboard
18
+ - **Flexible CMORisation** of individual variables
19
+ - **Dask-enabled** for scalable parallel processing
20
+ - **Cross-platform compatibility** (not limited to NCI Gadi)
21
+ - **CMIP6 and CMIP7 FastTrack support**
22
+
23
+ ## Installation
24
+
25
+ ACCESS-MOPPy requires Python >= 3.11. Install with:
26
+
27
+ ```bash
28
+ pip install numpy pandas xarray netCDF4 cftime dask pyyaml tqdm requests streamlit
29
+ pip install .
30
+ ```
31
+
32
+ ## Quick Start
33
+
34
+ ### Interactive Usage (Python API)
35
+
36
+ ```python
37
+ import glob
38
+ from access_moppy import ACCESS_ESM_CMORiser
39
+
40
+ # Select input files
41
+ files = glob.glob("/path/to/model/output/*mon.nc")
42
+
43
+ # Create CMORiser instance
44
+ cmoriser = ACCESS_ESM_CMORiser(
45
+ input_paths=files,
46
+ compound_name="Amon.pr", # table.variable format
47
+ experiment_id="historical",
48
+ source_id="ACCESS-ESM1-5",
49
+ variant_label="r1i1p1f1",
50
+ grid_label="gn",
51
+ activity_id="CMIP",
52
+ output_path="/path/to/output"
53
+ )
54
+
55
+ # Run CMORisation
56
+ cmoriser.run()
57
+ cmoriser.write()
58
+ ```
59
+
60
+ ### Batch Processing (HPC/PBS)
61
+
62
+ For large-scale processing on HPC systems:
63
+
64
+ 1. **Create a configuration file** (`batch_config.yml`):
65
+
66
+ ```yaml
67
+ variables:
68
+ - Amon.pr
69
+ - Omon.tos
70
+ - Amon.ts
71
+
72
+ experiment_id: piControl
73
+ source_id: ACCESS-ESM1-5
74
+ variant_label: r1i1p1f1
75
+ grid_label: gn
76
+
77
+ input_folder: "/g/data/project/model/output"
78
+ output_folder: "/scratch/project/cmor_output"
79
+
80
+ file_patterns:
81
+ Amon.pr: "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc"
82
+ Omon.tos: "output[0-4][0-9][0-9]/ocean/*temp*.nc"
83
+ Amon.ts: "output[0-4][0-9][0-9]/atmosphere/netCDF/*mon.nc"
84
+
85
+ # PBS configuration
86
+ queue: normal
87
+ cpus_per_node: 16
88
+ mem: 32GB
89
+ walltime: "02:00:00"
90
+ scheduler_options: "#PBS -P your_project"
91
+ storage: "gdata/project+scratch/project"
92
+
93
+ worker_init: |
94
+ module load conda
95
+ conda activate your_environment
96
+ ```
97
+
98
+ 2. **Submit batch job**:
99
+
100
+ ```bash
101
+ moppy-cmorise batch_config.yml
102
+ ```
103
+
104
+ 3. **Monitor progress** at http://localhost:8501
105
+
106
+ ## Batch Processing Features
107
+
108
+ The batch processing system provides:
109
+
110
+ - **Parallel execution**: Each variable processed as a separate PBS job
111
+ - **Real-time monitoring**: Web dashboard showing job status and progress
112
+ - **Automatic tracking**: SQLite database maintains job history and status
113
+ - **Error handling**: Failed jobs can be easily identified and resubmitted
114
+ - **Resource optimization**: Configurable CPU, memory, and storage requirements
115
+ - **Environment management**: Automatic setup of conda/module environments
116
+
117
+ ### Monitoring Tools
118
+
119
+ - **Streamlit Dashboard**: Real-time web interface at http://localhost:8501
120
+ - **Command line**: Use standard PBS commands (`qstat`, `qdel`)
121
+ - **Database**: SQLite tracking at `{output_folder}/cmor_tasks.db`
122
+ - **Log files**: Individual stdout/stderr for each job
123
+
124
+ ### File Organization
125
+
126
+ ```
127
+ work_directory/
128
+ ├── batch_config.yml # Your configuration
129
+ ├── cmor_job_scripts/ # Generated PBS scripts and logs
130
+ │ ├── cmor_Amon_pr.sh # PBS script
131
+ │ ├── cmor_Amon_pr.py # Python processing script
132
+ │ ├── cmor_Amon_pr.out # Job output
133
+ │ └── cmor_Amon_pr.err # Job errors
134
+ └── output_folder/
135
+ ├── cmor_tasks.db # Progress tracking
136
+ └── [CMORised files] # Final output
137
+ ```
138
+
139
+ ## Documentation
140
+
141
+ - **Getting Started**: `docs/source/getting_started.rst`
142
+ - **Example Configuration**: `src/access_moppy/examples/batch_config.yml`
143
+ - **API Reference**: [Coming soon]
144
+
145
+ ## Current Limitations
146
+
147
+ - **Alpha version**: Intended for evaluation only
148
+ - **Ocean variables**: Limited support in current release
149
+ - **Variable mapping**: Under review for CMIP6/CMIP7 compliance
150
+
151
+ ## Support
152
+
153
+ - **Issues**: Submit via GitHub Issues
154
+ - **Questions**: Contact ACCESS-NRI support
155
+ - **Contributions**: Welcome via Pull Requests
156
+
157
+ ## License
158
+
159
+ ACCESS-MOPPy is licensed under the Apache-2.0 License.