Skip to content

Commit

Permalink
Merge pull request #340 from MPAS-Dev/develop
Browse files Browse the repository at this point in the history
Merge develop to master
  • Loading branch information
xylar authored Apr 26, 2018
2 parents e56da52 + dcc0de6 commit f7e1d07
Show file tree
Hide file tree
Showing 156 changed files with 7,010 additions and 1,861 deletions.
39 changes: 39 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Copyright (c) 2013, Los Alamos National Security, LLC (LANS) (Ocean: LA-CC-13-047;
Land Ice: LA-CC-13-117) and the University Corporation for Atmospheric Research (UCAR).

All rights reserved.

LANS is the operator of the Los Alamos National Laboratory under Contract No.
DE-AC52-06NA25396 with the U.S. Department of Energy. UCAR manages the National
Center for Atmospheric Research under Cooperative Agreement ATM-0753581 with the
National Science Foundation. The U.S. Government has rights to use, reproduce,
and distribute this software. NO WARRANTY, EXPRESS OR IMPLIED IS OFFERED BY
LANS, UCAR OR THE GOVERNMENT AND NONE OF THEM ASSUME ANY LIABILITY FOR THE USE
OF THIS SOFTWARE. If software is modified to produce derivative works, such
modified software should be clearly marked, so as not to confuse it with the
version available from LANS and UCAR.

Additionally, redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1) Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2) Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

3) None of the names of LANS, UCAR or the names of its contributors, if any, may
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,19 @@ for more details.
* `mpaso.rst.0002-01-01_00000.nc` (or any other mpas-o restart file)
* `streams.ocean`
* `mpas-o_in`
* mpas-cice files:
* `mpascice.hist.am.timeSeriesStatsMonthly.*.nc`
* `mpascice.rst.0002-01-01_00000.nc` (or any other mpas-cice restart
* mpas-seaice files:
* `mpasseaice.hist.am.timeSeriesStatsMonthly.*.nc`
* `mpasseaice.rst.0002-01-01_00000.nc` (or any other mpas-seaice restart
file)
* `streams.cice`
* `mpas-cice_in`
* `streams.seaice`
* `mpas-seaice_in`

Note: for older runs, mpas-seaice files will be named:
* `mpascice.hist.am.timeSeriesStatsMonthly.*.nc`
* `mpascice.rst.0002-01-01_00000.nc`
* `streams.cice`
* `mpas-cice_in`


## Purge Old Analysis

Expand Down
9 changes: 9 additions & 0 deletions conda/recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/sh
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#
python setup.py install --single-version-externally-managed --record=record.txt
47 changes: 47 additions & 0 deletions conda/recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% set version = "0.7.5" %}

package:
name: mpas_analysis
version: {{ version }}

source:
path: ../..

build:
number: 0

test:
requires:
- pytest
imports:
- mpas_analysis
- pytest
commands:
- pytest --pyargs mpas_analysis

requirements:
build:
- python
- setuptools
run:
- python
- numpy
- scipy
- matplotlib
- netcdf4
- xarray >=0.10.0
- dask
- bottleneck
- basemap
- lxml
- nco >=4.7.0
- pillow

about:
home: http://gitub.com/MPAS-Dev/MPAS-Analysis

extra:
recipe-maintainers:
- doutriaux1
- xylar

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mpasMeshName = oEC60to30v3
# placed in the output mappingSubdirectory
mappingDirectory = /lcrc/group/acme/mpas_analysis/mapping

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down Expand Up @@ -142,4 +149,4 @@ polarPlot = False
## options related to ocean regions used in several analysis modules

# Directory for region mask files
regionMaskDirectory = /global/project/projectdirs/acme/mapping/grids/
regionMaskDirectory = /lcrc/group/acme/mpas_analysis/region_masks
7 changes: 7 additions & 0 deletions configs/anvil/job_script.anvil.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# comment out if using debug queue
#PBS -q acme
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ mpasMeshName = oRRS30to10v3wLI
# placed in the output mappingSubdirectory
mappingDirectory = /global/project/projectdirs/acme/mpas_analysis/mapping

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/cori/job_script.cori-haswell.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash -l
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# comment out if using debug queue
#SBATCH --partition=regular
Expand Down
7 changes: 7 additions & 0 deletions configs/cori/job_script.cori-knl.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash -l
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# comment out if using debug queue
#SBATCH --partition=regular
Expand Down
7 changes: 7 additions & 0 deletions configs/edison/config.20170807.beta1.G_oQU240.edison
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mpasMeshName = oQU240
# placed in the output mappingSubdirectory
# mappingDirectory = /dir/for/mapping/files

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ mpasMeshName = oEC60to30v3
# placed in the output mappingSubdirectory
mappingDirectory = /global/project/projectdirs/acme/mpas_analysis/mapping

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ mpasMeshName = oEC60to30v3wLI
# placed in the output mappingSubdirectory
mappingDirectory = /global/project/projectdirs/acme/mpas_analysis/mapping

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/edison/job_script.edison.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash -l
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# comment out if using debug queue
#SBATCH --partition=regular
Expand Down
7 changes: 7 additions & 0 deletions configs/job_script.default.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# MPAS/ACME job to be analyzed, including paths to simulation data and
# observations. Change this name and path as needed
Expand Down
7 changes: 7 additions & 0 deletions configs/lanl/config.20170207.MPAS-SeaIce.QU60km_polar.wolf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mpasMeshName = QU60
# placed in the output mappingSubdirectory
# mappingDirectory = /dir/for/mapping/files

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/lanl/config.MatchBoth_orig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mpasMeshName = oEC60to30v3
# placed in the output mappingSubdirectory
mappingDirectory = /turquoise/usr/projects/climate/SHARED_CLIMATE/mpas_analysis/mapping/

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/lanl/job_script.lanl.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# change number of nodes to change the number of parallel tasks
# (anything between 1 and the total number of tasks to run)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mpasMeshName = oEC60to30v3
# placed in the output mappingSubdirectory
mappingDirectory = /lustre/atlas/proj-shared/cli115/mpas_analysis/mapping/

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/olcf/config.GMPAS-IAF_oRRS18to6v3.titan
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mpasMeshName = oRRS18to6v3
# placed in the output mappingSubdirectory
mappingDirectory = /lustre/atlas/proj-shared/cli115/mpas_analysis/mapping

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/olcf/job_script.olcf.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#

# comment out if using debug queue
#PBS -q batch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ mpasMeshName = oEC60to30v3wLI
# placed in the output mappingSubdirectory
mappingDirectory = /projects/OceanClimate/mpas-analysis_data/mpas_analysis/mapping

# names of namelist and streams files, either a path relative to baseDirectory
# or an absolute path.
oceanNamelistFileName = mpas-o_in
oceanStreamsFileName = streams.ocean
seaIceNamelistFileName = mpas-cice_in
seaIceStreamsFileName = streams.cice

[output]
## options related to writing out plots, intermediate cached data sets, logs,
## etc.
Expand Down
7 changes: 7 additions & 0 deletions configs/theta/job_script.theta.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
# Copyright (c) 2017, Los Alamos National Security, LLC (LANS)
# and the University Corporation for Atmospheric Research (UCAR).
#
# Unless noted otherwise source code is licensed under the BSD license.
# Additional copyright and license information can be found in the LICENSE file
# distributed with this code, or at http://mpas-dev.github.com/license.html
#
#COBALT -t 1:00:00
#COBALT -n 1
#COBALT -A OceanClimate
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
generated
*_obs_table.rst
6 changes: 5 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ BUILDDIR = _build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

clean:
rm -rf *observationstable.rst
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Empty file added docs/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ Ocean tasks
ClimatologyMapSST
ClimatologyMapSSS
ClimatologyMapMLD
ClimatologyMapSSH
ClimatologyMapAntarcticMelt
ClimatologyMapSoseTemperature
ClimatologyMapSoseSalinity
ClimatologyMapArgoTemperature
ClimatologyMapArgoSalinity
IndexNino34
MeridionalHeatTransport
StreamfunctionMOC
Expand Down
Loading

0 comments on commit f7e1d07

Please sign in to comment.