Skip to content

Commit 6dc158c

Browse files
authored
Merge pull request #399 from xylar/add_python_mask_creator
Add python mask creator
2 parents a93d4cb + 21168c6 commit 6dc158c

File tree

13 files changed

+1828
-398
lines changed

13 files changed

+1828
-398
lines changed

conda_package/docs/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ BUILDDIR = _build
1212
help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

15-
clean:
16-
rm -rf *obs_table.rst generated obs
17-
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
18-
1915
.PHONY: help Makefile
2016

2117
# Catch-all target: route all unknown targets to Sphinx using the new

conda_package/docs/api.rst

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ Mesh conversion
5353
cull
5454
mask
5555

56+
.. currentmodule:: mpas_tools.mesh.mask
57+
58+
.. autosummary::
59+
:toctree: generated/
60+
61+
compute_mpas_region_masks
62+
compute_mpas_transect_masks
63+
compute_mpas_flood_fill_mask
64+
compute_lon_lat_region_masks
65+
5666
.. currentmodule:: mpas_tools.merge_grids
5767

5868
.. autosummary::
@@ -76,6 +86,15 @@ Mesh conversion
7686
center
7787
center_on_mesh
7888

89+
.. currentmodule:: mpas_tools.scrip.from_mpas
90+
91+
.. autosummary::
92+
:toctree: generated/
93+
94+
scrip_from_mpas
95+
96+
I/O
97+
---
7998

8099
.. currentmodule:: mpas_tools.io
81100

@@ -84,15 +103,18 @@ Mesh conversion
84103

85104
write_netcdf
86105

87-
.. currentmodule:: mpas_tools.scrip.from_mpas
106+
Parallelism
107+
-----------
108+
109+
.. currentmodule:: mpas_tools.parallel
88110

89111
.. autosummary::
90112
:toctree: generated/
91113

92-
scrip_from_mpas
114+
create_pool
93115

94-
Inerpolation
95-
------------
116+
Interpolation
117+
-------------
96118

97119
.. currentmodule:: mpas_tools.mesh.interpolation
98120

@@ -147,11 +169,11 @@ Ocean Tools
147169
coastal_tools.plot_coarse_coast
148170
coastal_tools.plot_region_box
149171

150-
depth.add_depth
151-
depth.add_zmid
152-
depth.write_time_varying_zmid
153-
depth.compute_depth
154-
depth.compute_zmid
172+
depth.add_depth
173+
depth.add_zmid
174+
depth.write_time_varying_zmid
175+
depth.compute_depth
176+
depth.compute_zmid
155177

156178
.. currentmodule:: mpas_tools.ocean.inject_bathymetry
157179

@@ -199,6 +221,25 @@ Logging
199221
check_call
200222
LoggingContext
201223

224+
Transects
225+
=========
226+
227+
.. currentmodule:: mpas_tools.transects
228+
229+
.. autosummary::
230+
:toctree: generated/
231+
232+
subdivide_great_circle
233+
cartesian_to_great_circle_distance
234+
subdivide_planar
235+
lon_lat_to_cartesian
236+
cartesian_to_lon_lat
237+
angular_distance
238+
intersects
239+
intersection
240+
Vector
241+
242+
202243
Visualization
203244
=============
204245

@@ -223,9 +264,7 @@ Visualization
223264

224265
make_triangle_tree
225266
find_transect_cells_and_weights
226-
subdivide_great_circle
227-
cartesian_to_great_circle_distance
228-
267+
find_planar_transect_cells_and_weights
229268

230269
.. currentmodule:: mpas_tools.viz.colormaps
231270

conda_package/docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
# list
4040
napoleon_use_ivar = True
4141
# Make sure multiple variable on the same line show up right
42-
napoleon_use_param = False
42+
# Commenting this out because it messes up intersphinx
43+
# napoleon_use_param = False
4344

4445
# Add any paths that contain templates here, relative to this directory.
4546
templates_path = ['_templates']
@@ -182,7 +183,8 @@
182183
intersphinx_mapping = {
183184
'python': ('https://docs.python.org/', None),
184185
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
185-
'xarray': ('http://xarray.pydata.org/en/stable/', None)}
186-
186+
'xarray': ('http://xarray.pydata.org/en/stable/', None),
187+
'geometric_features':
188+
('http://mpas-dev.github.io/geometric_features/stable/', None)}
187189

188190
github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'

conda_package/docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ analyzing simulations, and in other MPAS-related workflows.
2727

2828
logging
2929

30+
transects
31+
3032
visualization
3133

3234
.. toctree::

0 commit comments

Comments
 (0)