Skip to content

Commit bccde34

Browse files
committed
Merge branch develop into master
2 parents a28d8d2 + 41b3b77 commit bccde34

File tree

134 files changed

+3904
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+3904
-322
lines changed

ci/recipe/meta.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "MPAS-Analysis" %}
2-
{% set version = "1.7.1" %}
2+
{% set version = "1.7.2" %}
33

44
package:
55
name: {{ name|lower }}
@@ -27,6 +27,7 @@ requirements:
2727
- cartopy_offlinedata
2828
- cmocean
2929
- dask
30+
- esmf=*=nompi_*
3031
- f90nml
3132
- geometric_features >=0.5.0
3233
- gsw

dev-spec.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cartopy >=0.18.0
88
cartopy_offlinedata
99
cmocean
1010
dask
11+
esmf=*=nompi_*
1112
f90nml
1213
geometric_features>=0.5.0
1314
gsw

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ help:
1313
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

1515
clean:
16-
rm -rf *obs_table.rst generated obs
16+
rm -rf users_guide/*obs_table.rst developers_guide/generated users_guide/obs
1717
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1818

1919
.PHONY: help Makefile

docs/conf.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@
9292
#
9393
# This is also used if you do content translation via gettext catalogs.
9494
# Usually you set "language" from the command line for these cases.
95-
language = None
95+
language = 'en'
9696

9797
# List of patterns, relative to source directory, that match files and
9898
# directories to ignore when looking for source files.
9999
# This patterns also effect to html_static_path and html_extra_path
100100
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store',
101-
'design_docs/template.md']
101+
'design_docs/template.md', 'design_docs/template.rst']
102102

103103
# The name of the Pygments (syntax highlighting) style to use.
104104
pygments_style = 'sphinx'
@@ -131,7 +131,7 @@
131131
# Add any paths that contain custom static files (such as style sheets) here,
132132
# relative to this directory. They are copied after the builtin static files,
133133
# so a file named "default.css" will overwrite the builtin "default.css".
134-
html_static_path = ['_static']
134+
# html_static_path = ['_static']
135135

136136

137137
# -- Options for HTMLHelp output ------------------------------------------
@@ -201,19 +201,27 @@
201201
('http://mpas-dev.github.io/MPAS-Tools/stable/', None)}
202202

203203

204+
cwd = os.getcwd()
205+
os.chdir('users_guide')
206+
204207
# Build some custom rst files
205-
xmlFileName = '../mpas_analysis/obs/observational_datasets.xml'
208+
xmlFileName = '../../mpas_analysis/obs/observational_datasets.xml'
206209
for component in ['ocean', 'seaice']:
207-
build_rst_table_from_xml(xmlFileName, '{}_obs_table.rst'.format(component),
210+
build_rst_table_from_xml(xmlFileName,
211+
f'{component}_obs_table.rst',
208212
component)
209213

210214
build_obs_pages_from_xml(xmlFileName)
211215
build_quick_start()
212216

217+
os.chdir(cwd)
218+
213219
for mdFileName in glob('design_docs/*.md'):
220+
if os.path.basename(mdFileName) == 'template.md':
221+
continue
214222
output = m2r2.parse_from_file(mdFileName)
215223
rstFileName = os.path.splitext(mdFileName)[0]+'.rst'
216-
outFile = open(rstFileName, 'w')
217-
outFile.write(output)
224+
with open(rstFileName, 'w') as outFile:
225+
outFile.write(output)
218226

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

docs/design_docs.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/design_docs/index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Design Documents
2+
================
3+
4+
.. toctree::
5+
:titlesonly:
6+
7+
generalized_horizontal_interpolation
8+
config_file_reorganization
9+
timekeeping_reorg
10+
generalize_calendar
11+
variable_mapping_reorg
12+
parallel_tasks
13+
remapper
14+
analysis_task_template
15+
prerequisite_tasks
16+
eddykineticenergy

docs/api.rst renamed to docs/developers_guide/api.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Analysis tasks
3838
Base Class
3939
----------
4040

41-
.. currentmodule:: mpas_analysis.shared.analysis_task
41+
.. currentmodule:: mpas_analysis.shared
4242

4343
.. autosummary::
4444
:toctree: generated/
@@ -187,8 +187,13 @@ Climatology
187187
MpasClimatologyTask.get_file_name
188188

189189
RemapMpasClimatologySubtask
190+
RemapMpasClimatologySubtask.setup_and_check
191+
RemapMpasClimatologySubtask.run_task
192+
RemapMpasClimatologySubtask.add_comparison_grid_descriptor
190193
RemapMpasClimatologySubtask.get_masked_file_name
191194
RemapMpasClimatologySubtask.get_remapped_file_name
195+
RemapMpasClimatologySubtask.customize_masked_climatology
196+
RemapMpasClimatologySubtask.customize_remapped_climatology
192197

193198
RemapObservedClimatologySubtask
194199
RemapObservedClimatologySubtask.get_observation_descriptor

docs/index.rst

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,49 @@
66
MPAS-Analysis
77
=============
88

9-
.. image:: _static/sst_example.png
9+
.. image:: users_guide/_static/sst_example.png
1010
:width: 300 px
1111
:align: center
1212

1313
Analysis for simulations produced with Model for Prediction Across Scales
1414
(MPAS) components and the Energy Exascale Earth System Model (E3SM), which
1515
used those components.
1616

17-
User's Guide
18-
============
1917
.. toctree::
18+
:caption: User's guide
2019
:maxdepth: 2
2120

22-
quick_start
23-
tutorials
24-
configuration
25-
analysis_tasks
26-
components
27-
observations
21+
users_guide/quick_start
22+
users_guide/configuration
23+
users_guide/analysis_tasks
24+
users_guide/components
25+
users_guide/observations
2826

29-
Developer's Guide
30-
=================
3127
.. toctree::
28+
:caption: Developer's guide
3229
:maxdepth: 2
3330

34-
api
35-
design_docs
31+
developers_guide/api
3632

37-
Indices and tables
38-
==================
33+
design_docs/index
3934

40-
* :ref:`genindex`
35+
.. toctree::
36+
:caption: Tutorials
37+
:maxdepth: 1
38+
39+
tutorials/getting_started
40+
tutorials/dev_getting_started
41+
tutorials/dev_understand_a_task
42+
tutorials/dev_add_task
4143

42-
Authors
43-
=======
4444
.. toctree::
45+
:caption: Authors
4546
:maxdepth: 1
4647

4748
authors
4849

49-
Versions
50-
========
5150
.. toctree::
51+
:caption: Versions
5252
:maxdepth: 1
5353

5454
versions
55-

docs/tutorials.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)