rompy-swan 0.6.0__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.
- rompy_swan-0.6.0/AUTHORS.rst +13 -0
- rompy_swan-0.6.0/HISTORY.rst +131 -0
- rompy_swan-0.6.0/LICENSE +177 -0
- rompy_swan-0.6.0/MANIFEST.in +16 -0
- rompy_swan-0.6.0/NOTICE +24 -0
- rompy_swan-0.6.0/PKG-INFO +115 -0
- rompy_swan-0.6.0/README.md +66 -0
- rompy_swan-0.6.0/README.rst +62 -0
- rompy_swan-0.6.0/docs/Makefile +20 -0
- rompy_swan-0.6.0/docs/make.bat +35 -0
- rompy_swan-0.6.0/docs/source/api.rst +162 -0
- rompy_swan-0.6.0/docs/source/components/boundary.rst +26 -0
- rompy_swan-0.6.0/docs/source/components/cgrid.rst +14 -0
- rompy_swan-0.6.0/docs/source/components/group.rst +16 -0
- rompy_swan-0.6.0/docs/source/components/inpgrid.rst +16 -0
- rompy_swan-0.6.0/docs/source/components/lockup.rst +15 -0
- rompy_swan-0.6.0/docs/source/components/numerics.rst +13 -0
- rompy_swan-0.6.0/docs/source/components/output.rst +52 -0
- rompy_swan-0.6.0/docs/source/components/physics.rst +198 -0
- rompy_swan-0.6.0/docs/source/components/startup.rst +15 -0
- rompy_swan-0.6.0/docs/source/conf.py +141 -0
- rompy_swan-0.6.0/docs/source/index.rst +150 -0
- rompy_swan-0.6.0/docs/source/subcomponents/base.rst +13 -0
- rompy_swan-0.6.0/docs/source/subcomponents/boundary.rst +32 -0
- rompy_swan-0.6.0/docs/source/subcomponents/cgrid.rst +12 -0
- rompy_swan-0.6.0/docs/source/subcomponents/numerics.rst +22 -0
- rompy_swan-0.6.0/docs/source/subcomponents/output.rst +15 -0
- rompy_swan-0.6.0/docs/source/subcomponents/physics.rst +67 -0
- rompy_swan-0.6.0/docs/source/subcomponents/readgrid.rst +15 -0
- rompy_swan-0.6.0/docs/source/subcomponents/spectrum.rst +17 -0
- rompy_swan-0.6.0/docs/source/subcomponents/startup.rst +12 -0
- rompy_swan-0.6.0/docs/source/subcomponents/time.rst +16 -0
- rompy_swan-0.6.0/docs/source/types.rst +15 -0
- rompy_swan-0.6.0/pyproject.toml +86 -0
- rompy_swan-0.6.0/setup.cfg +23 -0
- rompy_swan-0.6.0/src/rompy_swan/__init__.py +27 -0
- rompy_swan-0.6.0/src/rompy_swan/boundary.py +399 -0
- rompy_swan-0.6.0/src/rompy_swan/components/__init__.py +2 -0
- rompy_swan-0.6.0/src/rompy_swan/components/base.py +131 -0
- rompy_swan-0.6.0/src/rompy_swan/components/boundary.py +412 -0
- rompy_swan-0.6.0/src/rompy_swan/components/cgrid.py +238 -0
- rompy_swan-0.6.0/src/rompy_swan/components/group.py +773 -0
- rompy_swan-0.6.0/src/rompy_swan/components/inpgrid.py +397 -0
- rompy_swan-0.6.0/src/rompy_swan/components/lockup.py +455 -0
- rompy_swan-0.6.0/src/rompy_swan/components/numerics.py +176 -0
- rompy_swan-0.6.0/src/rompy_swan/components/output.py +1657 -0
- rompy_swan-0.6.0/src/rompy_swan/components/physics.py +3030 -0
- rompy_swan-0.6.0/src/rompy_swan/components/startup.py +422 -0
- rompy_swan-0.6.0/src/rompy_swan/config.py +696 -0
- rompy_swan-0.6.0/src/rompy_swan/data.py +580 -0
- rompy_swan-0.6.0/src/rompy_swan/grid.py +282 -0
- rompy_swan-0.6.0/src/rompy_swan/interface.py +173 -0
- rompy_swan-0.6.0/src/rompy_swan/legacy.py +206 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/__init__.py +0 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/base.py +141 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/boundary.py +670 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/numerics.py +631 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/output.py +130 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/physics.py +1099 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/readgrid.py +336 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/spectrum.py +336 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/startup.py +99 -0
- rompy_swan-0.6.0/src/rompy_swan/subcomponents/time.py +395 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swan/__init__.py +0 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swan/cookiecutter.json +24 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swan/{{runtime.staging_dir}}/INPUT +19 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swan/{{runtime.staging_dir}}/datasets/readme.md +1 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swan/{{runtime.staging_dir}}/out.loc +2 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swan/{{runtime.staging_dir}}/outputs/readme.md +1 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swanbasic/__init__.py +0 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swanbasic/{{runtime.staging_dir}}/INPUT +40 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swanbasic/{{runtime.staging_dir}}/datasets/readme.md +1 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swanbasic/{{runtime.staging_dir}}/outputs/readme.md +1 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swancomp/__init__.py +0 -0
- rompy_swan-0.6.0/src/rompy_swan/templates/swancomp/{{runtime.staging_dir}}/INPUT +46 -0
- rompy_swan-0.6.0/src/rompy_swan/types.py +434 -0
- rompy_swan-0.6.0/src/rompy_swan.egg-info/PKG-INFO +115 -0
- rompy_swan-0.6.0/src/rompy_swan.egg-info/SOURCES.txt +104 -0
- rompy_swan-0.6.0/src/rompy_swan.egg-info/dependency_links.txt +1 -0
- rompy_swan-0.6.0/src/rompy_swan.egg-info/entry_points.txt +3 -0
- rompy_swan-0.6.0/src/rompy_swan.egg-info/requires.txt +24 -0
- rompy_swan-0.6.0/src/rompy_swan.egg-info/top_level.txt +1 -0
- rompy_swan-0.6.0/tests/components/test_base.py +39 -0
- rompy_swan-0.6.0/tests/components/test_boundary.py +135 -0
- rompy_swan-0.6.0/tests/components/test_cgrid.py +155 -0
- rompy_swan-0.6.0/tests/components/test_inpgrid.py +155 -0
- rompy_swan-0.6.0/tests/components/test_lockup.py +165 -0
- rompy_swan-0.6.0/tests/components/test_output.py +423 -0
- rompy_swan-0.6.0/tests/components/test_physics.py +319 -0
- rompy_swan-0.6.0/tests/components/test_startup.py +69 -0
- rompy_swan-0.6.0/tests/conftest.py +161 -0
- rompy_swan-0.6.0/tests/data/schism/download_era5_datamesh.py +60 -0
- rompy_swan-0.6.0/tests/data/schism/download_hycom.py +40 -0
- rompy_swan-0.6.0/tests/data/schism/download_tides.py +14 -0
- rompy_swan-0.6.0/tests/subcomponents/test_subcomponent_boundary.py +68 -0
- rompy_swan-0.6.0/tests/subcomponents/test_subcomponent_physics.py +219 -0
- rompy_swan-0.6.0/tests/subcomponents/test_subcomponent_readgrid.py +90 -0
- rompy_swan-0.6.0/tests/subcomponents/test_subcomponent_shape.py +40 -0
- rompy_swan-0.6.0/tests/subcomponents/test_subcomponent_time.py +84 -0
- rompy_swan-0.6.0/tests/test_model_containers.py +258 -0
- rompy_swan-0.6.0/tests/test_swan_config.py +104 -0
- rompy_swan-0.6.0/tests/test_swan_model.py +79 -0
- rompy_swan-0.6.0/tests/test_swan_types.py +101 -0
- rompy_swan-0.6.0/tests/test_utils/__init__.py +9 -0
- rompy_swan-0.6.0/tests/test_utils/logging.py +88 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
=======
|
|
2
|
+
History
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
Relocatable Ocean Modelling in PYthon (rompy) is a modular Python library that
|
|
6
|
+
aims to streamline the setup, configuration, execution, and analysis of coastal
|
|
7
|
+
ocean models. Rompy combines templated model configuration with xarray-based
|
|
8
|
+
data handling and pydantic validation, enabling users to efficiently generate
|
|
9
|
+
model control files and input datasets for a variety of ocean and wave models.
|
|
10
|
+
The architecture centers on high-level execution control (`ModelRun`) and
|
|
11
|
+
flexible configuration objects, supporting both persistent scientific model
|
|
12
|
+
state and runtime backend selection. Rompy provides unified interfaces for
|
|
13
|
+
grids, data sources, boundary conditions, and spectra, with extensible plugin
|
|
14
|
+
support for new models and execution environments. Comprehensive documentation,
|
|
15
|
+
example Jupyter notebooks, and a robust logging/formatting framework make rompy
|
|
16
|
+
accessible for both research and operational workflows. Current model support
|
|
17
|
+
includes SWAN and SCHISM, with ongoing development for additional models and
|
|
18
|
+
cloud/HPC backends.
|
|
19
|
+
|
|
20
|
+
Key Features: - Modular architecture with clear separation of configuration and
|
|
21
|
+
execution logic - Templated, reproducible model configuration using pydantic
|
|
22
|
+
and xarray - Unified interfaces for grids, data, boundaries, and spectra -
|
|
23
|
+
Extensible plugin system for models, data sources, backends, and postprocessors
|
|
24
|
+
- Robust logging and formatting for consistent output and diagnostics - Example
|
|
25
|
+
notebooks and comprehensive documentation for rapid onboarding - Support for
|
|
26
|
+
local, Docker, and HPC execution backends
|
|
27
|
+
|
|
28
|
+
rompy is under active development—features, model support, and documentation
|
|
29
|
+
are continually evolving. Contributions and feedback are welcome!
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
********
|
|
33
|
+
Releases
|
|
34
|
+
********
|
|
35
|
+
|
|
36
|
+
0.5.0 (2025-07-13)
|
|
37
|
+
___________________
|
|
38
|
+
|
|
39
|
+
New Features
|
|
40
|
+
------------
|
|
41
|
+
* Improved logging for SCHISM model components.
|
|
42
|
+
* Added string formatting methods for SCHISM components.
|
|
43
|
+
* Added backend testing and execution scripts.
|
|
44
|
+
* Added backend config examples and quickstart test script.
|
|
45
|
+
* Added backend demo notebook and documentation.
|
|
46
|
+
* Added support for multiple include_modules in docker.
|
|
47
|
+
* Added docker backend test and setup.
|
|
48
|
+
|
|
49
|
+
Bug Fixes
|
|
50
|
+
---------
|
|
51
|
+
* Fixed backend demo notebook.
|
|
52
|
+
* Fixed merge issues and improved PyLibs import handling.
|
|
53
|
+
* Fixed mounting workspace in docker.
|
|
54
|
+
* Fixed issues from merge and removed redundant code.
|
|
55
|
+
|
|
56
|
+
Internal Changes
|
|
57
|
+
----------------
|
|
58
|
+
* Refactored backend approach using strong typing.
|
|
59
|
+
* Improved backend docs and tutorial.
|
|
60
|
+
* Consolidated documentation and removed legacy sections.
|
|
61
|
+
* Improved INPUT file diagnostics in Docker container.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
0.4.0 (2025-07-10)
|
|
65
|
+
___________________
|
|
66
|
+
|
|
67
|
+
New Features
|
|
68
|
+
------------
|
|
69
|
+
* Refactored SCHISM boundary conditions, unified SCHISMDataTides and SCHISMDataOcean into SCHISMDataBoundaryConditions.
|
|
70
|
+
* Added support for pyTMD for tidal forcing.
|
|
71
|
+
* Added tidal database and updated yaml of tidal runs.
|
|
72
|
+
* Added boundary condition examples and documentation.
|
|
73
|
+
* Added plotting utilities and improved grid plotting.
|
|
74
|
+
* Added support for v5.12 vegetation model.
|
|
75
|
+
* Added MDT specification for TidalDataset for Z0.
|
|
76
|
+
|
|
77
|
+
Bug Fixes
|
|
78
|
+
---------
|
|
79
|
+
* Fixed duplicated subfolder for oceanum-atlas in database.json.
|
|
80
|
+
* Fixed test cases for pyTMD compatibility.
|
|
81
|
+
* Fixed decorators and case handling for tidal API.
|
|
82
|
+
* Fixed missing station.in file for tidal examples.
|
|
83
|
+
* Fixed case test with new tidal API.
|
|
84
|
+
|
|
85
|
+
Internal Changes
|
|
86
|
+
----------------
|
|
87
|
+
* Restructured SCHISM boundary condition naming.
|
|
88
|
+
* Overwrote pre-refactor config files with post-refactor versions.
|
|
89
|
+
* Cleaned up code and tests.
|
|
90
|
+
* Updated enum types and documentation.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
0.3.0 (2023-03-29)
|
|
95
|
+
___________________
|
|
96
|
+
|
|
97
|
+
Major refactor: redefinition of the entire codebase using pydantic models.
|
|
98
|
+
Separation of concerns between runtime information and model configuration.
|
|
99
|
+
Added model_type field and pydantic basegrid.
|
|
100
|
+
Added methods to store and dump original inputs to RompyBaseModel.
|
|
101
|
+
Added json support to CLI.
|
|
102
|
+
Added iso timedelta for JSON serialization.
|
|
103
|
+
Added DataPoint object and timeseries-based sources.
|
|
104
|
+
Added validator for hotfiles against timestep.
|
|
105
|
+
|
|
106
|
+
Bug Fixes
|
|
107
|
+
---------
|
|
108
|
+
Fixed issue with create_model in older versions of pydantic.
|
|
109
|
+
Fixed validator of IDLA to fix serialization issue.
|
|
110
|
+
Fixed path definition in new test.
|
|
111
|
+
Fixed schism serialization issues.
|
|
112
|
+
Fixed bug in string output of regular grid for SWAN.
|
|
113
|
+
|
|
114
|
+
Internal Changes
|
|
115
|
+
----------------
|
|
116
|
+
Removed convenience imports from core.
|
|
117
|
+
Promoted appdirs dependency from schism to main list.
|
|
118
|
+
Reordered imports.
|
|
119
|
+
Refactored intake source to prevent recursion with dask.
|
|
120
|
+
Cleaned up debug messages and removed redundant code.
|
|
121
|
+
|
|
122
|
+
0.1.0 (2023-MM-DD)
|
|
123
|
+
___________________
|
|
124
|
+
|
|
125
|
+
Initial release of rompy with basic functionality for coastal ocean model configuration and execution.
|
|
126
|
+
Provided example Jupyter notebooks for setup, evaluation, and visualization.
|
|
127
|
+
Basic support for SWAN and SCHISM models.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
.. _`CSIRO`: https://www.csiro.au/en/
|
|
131
|
+
.. _`Oceanum`: https://oceanum.science/
|
rompy_swan-0.6.0/LICENSE
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include HISTORY.rst
|
|
4
|
+
include pyproject.toml
|
|
5
|
+
include setup.cfg
|
|
6
|
+
recursive-include src *.py
|
|
7
|
+
recursive-include tests *.py
|
|
8
|
+
recursive-include src/rompy_swan/templates *
|
|
9
|
+
recursive-include docs *.rst *.py *.bat Makefile
|
|
10
|
+
recursive-exclude * __pycache__
|
|
11
|
+
recursive-exclude * *.py[co]
|
|
12
|
+
prune .git
|
|
13
|
+
prune .pytest_cache
|
|
14
|
+
prune .mypy_cache
|
|
15
|
+
prune build
|
|
16
|
+
prune dist
|
rompy_swan-0.6.0/NOTICE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
NOTICE
|
|
2
|
+
|
|
3
|
+
This product includes software developed by CSIRO and other contributors.
|
|
4
|
+
|
|
5
|
+
Copyright 2021-2025 CSIRO
|
|
6
|
+
Copyright 2022-2025 Oceanum Ltd (NZ)
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at:
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
19
|
+
|
|
20
|
+
This NOTICE file is part of the distribution of rompy.
|
|
21
|
+
It includes attribution for third-party components and contributors
|
|
22
|
+
as required by their respective licenses.
|
|
23
|
+
|
|
24
|
+
For a full list of contributors, see the CONTRIBUTORS file.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rompy-swan
|
|
3
|
+
Version: 0.6.0
|
|
4
|
+
Summary: SWAN wave model plugin for rompy
|
|
5
|
+
Author-email: Rompy Contributors <developers@rompy.com>
|
|
6
|
+
Maintainer-email: Rompy Contributors <developers@rompy.com>
|
|
7
|
+
License: Apache Software License 2.0
|
|
8
|
+
Project-URL: bugs, https://github.com/rom-py/rompy-swan/issues
|
|
9
|
+
Project-URL: changelog, https://github.com/rom-py/rompy-swan/blob/master/changelog.md
|
|
10
|
+
Project-URL: homepage, https://github.com/rom-py/rompy-swan
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Natural Language :: English
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
License-File: NOTICE
|
|
26
|
+
License-File: AUTHORS.rst
|
|
27
|
+
Requires-Dist: rompy>=0.6
|
|
28
|
+
Requires-Dist: pydantic>2
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: coverage; extra == "dev"
|
|
31
|
+
Requires-Dist: mypy; extra == "dev"
|
|
32
|
+
Requires-Dist: pytest; extra == "dev"
|
|
33
|
+
Requires-Dist: ruff; extra == "dev"
|
|
34
|
+
Requires-Dist: requests; extra == "dev"
|
|
35
|
+
Requires-Dist: envyaml; extra == "dev"
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: pytest; extra == "test"
|
|
38
|
+
Requires-Dist: coverage; extra == "test"
|
|
39
|
+
Requires-Dist: requests; extra == "test"
|
|
40
|
+
Requires-Dist: envyaml; extra == "test"
|
|
41
|
+
Provides-Extra: docs
|
|
42
|
+
Requires-Dist: autodoc_pydantic; extra == "docs"
|
|
43
|
+
Requires-Dist: ipython; extra == "docs"
|
|
44
|
+
Requires-Dist: nbsphinx; extra == "docs"
|
|
45
|
+
Requires-Dist: pydata_sphinx_theme; extra == "docs"
|
|
46
|
+
Requires-Dist: sphinx<7.3.6; extra == "docs"
|
|
47
|
+
Requires-Dist: sphinx-collections; extra == "docs"
|
|
48
|
+
Dynamic: license-file
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
title: "Relocatable Ocean Modelling in PYthon (rompy)"
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
[](https://doi.org/10.5281/zenodo.15093426)
|
|
55
|
+
[](https://rom-py.github.io/rompy/)
|
|
56
|
+
[](https://pypi.org/project/rompy/)
|
|
57
|
+
[](https://github.com/rom-py/rompy/actions)
|
|
58
|
+
[](https://pypistats.org/packages/rompy)
|
|
59
|
+
[](https://github.com/python/black)
|
|
60
|
+
[](https://pypi.org/project/rompy/)
|
|
61
|
+
|
|
62
|
+
# Introduction
|
|
63
|
+
|
|
64
|
+
Relocatable Ocean Modelling in PYthon (rompy) is a modular Python library that aims to streamline the setup, configuration, execution, and analysis of coastal ocean models. Rompy combines templated model configuration with powerful xarray-based data handling and pydantic validation, enabling users to efficiently generate model control files and input datasets for a variety of ocean and wave models. The architecture centers on high-level execution control (`ModelRun`) and flexible configuration objects, supporting both persistent scientific model state and runtime backend selection. Rompy provides unified interfaces for grids, data sources, boundary conditions, and spectra, with extensible plugin support for new models and execution environments. Comprehensive documentation, example Jupyter notebooks, and a robust logging/formatting framework make rompy accessible for both research and operational workflows. Current model support includes SWAN and SCHISM, with ongoing development for additional models and cloud/HPC backends.
|
|
65
|
+
|
|
66
|
+
Key Features:
|
|
67
|
+
- Modular architecture with clear separation of configuration and execution logic
|
|
68
|
+
- Templated, reproducible model configuration using pydantic and xarray
|
|
69
|
+
- Unified interfaces for grids, data, boundaries, and spectra
|
|
70
|
+
- Extensible plugin system for models, data sources, backends, and postprocessors
|
|
71
|
+
- Robust logging and formatting for consistent output and diagnostics
|
|
72
|
+
- Example notebooks and comprehensive documentation for rapid onboarding
|
|
73
|
+
- Support for local, Docker, and HPC execution backends
|
|
74
|
+
|
|
75
|
+
rompy is under active development—features, model support, and documentation are continually evolving. Contributions and feedback are welcome!
|
|
76
|
+
|
|
77
|
+
# Documentation
|
|
78
|
+
|
|
79
|
+
See https://rom-py.github.io/rompy/
|
|
80
|
+
|
|
81
|
+
# Code Formatting and Pre-commit Hooks
|
|
82
|
+
|
|
83
|
+
This repository enforces Python code formatting using [black](https://github.com/psf/black) via the pre-commit framework.
|
|
84
|
+
|
|
85
|
+
To set up pre-commit hooks locally (required for all contributors)::
|
|
86
|
+
|
|
87
|
+
pip install pre-commit
|
|
88
|
+
pre-commit install
|
|
89
|
+
|
|
90
|
+
This will automatically check code formatting before each commit. To format your code manually, run::
|
|
91
|
+
|
|
92
|
+
pre-commit run --all-files
|
|
93
|
+
|
|
94
|
+
All code must pass black formatting before it can be committed or merged.
|
|
95
|
+
|
|
96
|
+
# Versioning and Release
|
|
97
|
+
|
|
98
|
+
This project uses [tbump](https://github.com/dmerejkowsky/tbump) for version management.
|
|
99
|
+
|
|
100
|
+
To bump the version, run::
|
|
101
|
+
|
|
102
|
+
tbump <new_version>
|
|
103
|
+
|
|
104
|
+
This will update the version in `src/rompy/__init__.py`, commit the change, and optionally create a git tag.
|
|
105
|
+
|
|
106
|
+
tbump is included in the development requirements (`requirements_dev.txt`).
|
|
107
|
+
|
|
108
|
+
For more advanced configuration, see `tbump.toml` in the project root.
|
|
109
|
+
|
|
110
|
+
# Relevant packages
|
|
111
|
+
|
|
112
|
+
> - [rompy](https://github.com/rom-py/rompy)
|
|
113
|
+
> - [rompy-swan](https://github.com/rom-py/rompy-swan)
|
|
114
|
+
> - [rompy-schism](https://github.com/rom-py/rompy-schism)
|
|
115
|
+
> - [rompy-notebooks](https://github.com/rom-py/rompy-notebooks)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Relocatable Ocean Modelling in PYthon (rompy)"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
[](https://doi.org/10.5281/zenodo.15093426)
|
|
6
|
+
[](https://rom-py.github.io/rompy/)
|
|
7
|
+
[](https://pypi.org/project/rompy/)
|
|
8
|
+
[](https://github.com/rom-py/rompy/actions)
|
|
9
|
+
[](https://pypistats.org/packages/rompy)
|
|
10
|
+
[](https://github.com/python/black)
|
|
11
|
+
[](https://pypi.org/project/rompy/)
|
|
12
|
+
|
|
13
|
+
# Introduction
|
|
14
|
+
|
|
15
|
+
Relocatable Ocean Modelling in PYthon (rompy) is a modular Python library that aims to streamline the setup, configuration, execution, and analysis of coastal ocean models. Rompy combines templated model configuration with powerful xarray-based data handling and pydantic validation, enabling users to efficiently generate model control files and input datasets for a variety of ocean and wave models. The architecture centers on high-level execution control (`ModelRun`) and flexible configuration objects, supporting both persistent scientific model state and runtime backend selection. Rompy provides unified interfaces for grids, data sources, boundary conditions, and spectra, with extensible plugin support for new models and execution environments. Comprehensive documentation, example Jupyter notebooks, and a robust logging/formatting framework make rompy accessible for both research and operational workflows. Current model support includes SWAN and SCHISM, with ongoing development for additional models and cloud/HPC backends.
|
|
16
|
+
|
|
17
|
+
Key Features:
|
|
18
|
+
- Modular architecture with clear separation of configuration and execution logic
|
|
19
|
+
- Templated, reproducible model configuration using pydantic and xarray
|
|
20
|
+
- Unified interfaces for grids, data, boundaries, and spectra
|
|
21
|
+
- Extensible plugin system for models, data sources, backends, and postprocessors
|
|
22
|
+
- Robust logging and formatting for consistent output and diagnostics
|
|
23
|
+
- Example notebooks and comprehensive documentation for rapid onboarding
|
|
24
|
+
- Support for local, Docker, and HPC execution backends
|
|
25
|
+
|
|
26
|
+
rompy is under active development—features, model support, and documentation are continually evolving. Contributions and feedback are welcome!
|
|
27
|
+
|
|
28
|
+
# Documentation
|
|
29
|
+
|
|
30
|
+
See https://rom-py.github.io/rompy/
|
|
31
|
+
|
|
32
|
+
# Code Formatting and Pre-commit Hooks
|
|
33
|
+
|
|
34
|
+
This repository enforces Python code formatting using [black](https://github.com/psf/black) via the pre-commit framework.
|
|
35
|
+
|
|
36
|
+
To set up pre-commit hooks locally (required for all contributors)::
|
|
37
|
+
|
|
38
|
+
pip install pre-commit
|
|
39
|
+
pre-commit install
|
|
40
|
+
|
|
41
|
+
This will automatically check code formatting before each commit. To format your code manually, run::
|
|
42
|
+
|
|
43
|
+
pre-commit run --all-files
|
|
44
|
+
|
|
45
|
+
All code must pass black formatting before it can be committed or merged.
|
|
46
|
+
|
|
47
|
+
# Versioning and Release
|
|
48
|
+
|
|
49
|
+
This project uses [tbump](https://github.com/dmerejkowsky/tbump) for version management.
|
|
50
|
+
|
|
51
|
+
To bump the version, run::
|
|
52
|
+
|
|
53
|
+
tbump <new_version>
|
|
54
|
+
|
|
55
|
+
This will update the version in `src/rompy/__init__.py`, commit the change, and optionally create a git tag.
|
|
56
|
+
|
|
57
|
+
tbump is included in the development requirements (`requirements_dev.txt`).
|
|
58
|
+
|
|
59
|
+
For more advanced configuration, see `tbump.toml` in the project root.
|
|
60
|
+
|
|
61
|
+
# Relevant packages
|
|
62
|
+
|
|
63
|
+
> - [rompy](https://github.com/rom-py/rompy)
|
|
64
|
+
> - [rompy-swan](https://github.com/rom-py/rompy-swan)
|
|
65
|
+
> - [rompy-schism](https://github.com/rom-py/rompy-schism)
|
|
66
|
+
> - [rompy-notebooks](https://github.com/rom-py/rompy-notebooks)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
==========
|
|
2
|
+
rompy-swan
|
|
3
|
+
==========
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.. image:: https://img.shields.io/pypi/v/rompy_swan.svg
|
|
7
|
+
:target: https://pypi.python.org/pypi/rompy_swan
|
|
8
|
+
|
|
9
|
+
.. image:: https://img.shields.io/travis/rom-py/rompy_swan.svg
|
|
10
|
+
:target: https://travis-ci.com/rom-py/rompy_swan
|
|
11
|
+
|
|
12
|
+
.. image:: https://readthedocs.org/projects/rompy-swan/badge/?version=latest
|
|
13
|
+
:target: https://rompy-swan.readthedocs.io/en/latest/?version=latest
|
|
14
|
+
:alt: Documentation Status
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
SWAN wave model plugin for rompy
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* Free software: Apache Software License 2.0
|
|
23
|
+
* Documentation: https://rompy-swan.readthedocs.io.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Features
|
|
27
|
+
--------
|
|
28
|
+
|
|
29
|
+
* TODO
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Code Formatting and Pre-commit Hooks
|
|
34
|
+
------------------------------------
|
|
35
|
+
|
|
36
|
+
This repository enforces Python code formatting using [black](https://github.com/psf/black) via the pre-commit framework.
|
|
37
|
+
|
|
38
|
+
To set up pre-commit hooks locally (required for all contributors)::
|
|
39
|
+
|
|
40
|
+
pip install pre-commit
|
|
41
|
+
pre-commit install
|
|
42
|
+
|
|
43
|
+
This will automatically check code formatting before each commit. To format your code manually, run::
|
|
44
|
+
|
|
45
|
+
pre-commit run --all-files
|
|
46
|
+
|
|
47
|
+
All code must pass black formatting before it can be committed or merged.
|
|
48
|
+
|
|
49
|
+
Versioning and Release
|
|
50
|
+
----------------------
|
|
51
|
+
|
|
52
|
+
This project uses [tbump](https://github.com/dmerejkowsky/tbump) for version management.
|
|
53
|
+
|
|
54
|
+
To bump the version, run::
|
|
55
|
+
|
|
56
|
+
tbump <new_version>
|
|
57
|
+
|
|
58
|
+
This will update the version in `src/rompy_swan/__init__.py`, commit the change, and optionally create a git tag.
|
|
59
|
+
|
|
60
|
+
tbump is included in the development requirements (`requirements_dev.txt`).
|
|
61
|
+
|
|
62
|
+
For more advanced configuration, see `tbump.toml` in the project root.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = source
|
|
9
|
+
BUILDDIR = build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=source
|
|
11
|
+
set BUILDDIR=build
|
|
12
|
+
|
|
13
|
+
if "%1" == "" goto help
|
|
14
|
+
|
|
15
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
16
|
+
if errorlevel 9009 (
|
|
17
|
+
echo.
|
|
18
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
19
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
20
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
21
|
+
echo.may add the Sphinx directory to PATH.
|
|
22
|
+
echo.
|
|
23
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
24
|
+
echo.http://sphinx-doc.org/
|
|
25
|
+
exit /b 1
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|