-
Notifications
You must be signed in to change notification settings - Fork 53
Add script to plot online MOC #415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
milenaveneziani
merged 4 commits into
MPAS-Dev:develop
from
milenaveneziani:add_MOC_online
Jun 6, 2018
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a23da8f
Add script for online MOC
milenaveneziani a321f7f
Removed use of bolus as option if GM is on
milenaveneziani 1d83048
Added tmp config option 'usePostprocessingScript'
milenaveneziani e918458
Add latitude min/max for better plotting of MOC
milenaveneziani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,7 +117,6 @@ mldSubdirectory = MLD | |
| ninoSubdirectory = Nino | ||
| mhtSubdirectory = MHT | ||
|
|
||
|
|
||
| [oceanPreprocessedReference] | ||
| ## options related to preprocessed ocean reference run with which the results | ||
| ## will be compared (e.g. a POP, CESM or ACME v0 run) | ||
|
|
@@ -150,3 +149,15 @@ polarPlot = False | |
|
|
||
| # Directory for region mask files | ||
| regionMaskDirectory = /lcrc/group/acme/mpas_analysis/region_masks | ||
|
|
||
| [streamfunctionMOC] | ||
| ## options related to plotting the streamfunction of the meridional overturning | ||
| ## circulation (MOC) | ||
|
|
||
| # Use postprocessing script to compute the MOC? You want this to be True | ||
| # for low-resolution simulations that use GM to parameterize eddies, because | ||
| # the online MOC analysis member currently does not include the bolus velocity | ||
| # in its calculation, whereas the postprocessing script does. | ||
| # NOTE: this is a temporary option that will be removed once the online | ||
| # MOC takes into account the bolus velocity when GM is on. | ||
| usePostprocessingScript = True | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is perfectly fine as a temporary solution. |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
182 changes: 182 additions & 0 deletions
182
configs/theta/config.20180410.A_WCYCL1950_HR.ne120_oRRS18v3_ICG.theta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,182 @@ | ||
| [runs] | ||
| ## options related to the run to be analyzed and reference runs to be | ||
| ## compared against | ||
|
|
||
| # mainRunName is a name that identifies the simulation being analyzed. | ||
| mainRunName = 20180410.A_WCYCL1950_HR.ne120_oRRS18v3_ICG.theta | ||
|
|
||
| # preprocessedReferenceRunName is the name of a reference run that has been | ||
| # preprocessed to compare against (or None to turn off comparison). Reference | ||
| # runs of this type would have preprocessed results because they were not | ||
| # performed with MPAS components (so they cannot be easily ingested by | ||
| # MPAS-Analysis) | ||
| preprocessedReferenceRunName = None | ||
|
|
||
| # config file for a reference run to which this run will be compared. The | ||
| # analysis should have already been run to completion once with this config | ||
| # file, so that the relevant MPAS climatologies already exist and have been | ||
| # remapped to the comparison grid. Leave this option commented out if no | ||
| # reference run is desired. | ||
| # referenceRunConfigFile = /path/to/config/file | ||
|
|
||
| [execute] | ||
| ## options related to executing parallel tasks | ||
|
|
||
| # the number of parallel tasks (1 means tasks run in serial, the default) | ||
| parallelTaskCount = 4 | ||
|
|
||
| # the parallelism mode in ncclimo ("serial" or "bck") | ||
| # Set this to "bck" (background parallelism) if running on a machine that can | ||
| # handle 12 simultaneous processes, one for each monthly climatology. | ||
| ncclimoParallelMode = bck | ||
|
|
||
| [input] | ||
| ## options related to reading in the results to be analyzed | ||
|
|
||
| # directory containing model results | ||
| baseDirectory = /projects/ClimateEnergy_2/azamatm/E3SM_simulations/20180410.A_WCYCL1950_HR.ne120_oRRS18v3_ICG.theta/run | ||
|
|
||
| # names of ocean and sea ice meshes (e.g. oEC60to30v3, oQU240v3, oRRS30to10v3, etc.) | ||
| mpasMeshName = oRRS18to6v3 | ||
|
|
||
| # Directory for mapping files (if they have been generated already). If mapping | ||
| # files needed by the analysis are not found here, they will be generated and | ||
| # placed in the output mappingSubdirectory | ||
| mappingDirectory = /projects/ccsm/acme/diagnostics_data/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. | ||
|
|
||
| # directory where analysis should be written | ||
| baseDirectory = /dir/to/analysis/output | ||
|
|
||
| # a list of analyses to generate. Valid names can be seen by running: | ||
| # ./run_mpas_analysis --list | ||
| # This command also lists tags for each analysis. | ||
| # Shortcuts exist to generate (or not generate) several types of analysis. | ||
| # These include: | ||
| # 'all' -- all analyses will be run | ||
| # 'all_<tag>' -- all analysis with a particular tag will be run | ||
| # 'all_<component>' -- all analyses from a given component (either 'ocean' | ||
| # or 'seaIce') will be run | ||
| # 'only_<component>', 'only_<tag>' -- all analysis from this component or | ||
| # with this tag will be run, and all | ||
| # analysis for other components or | ||
| # without the tag will be skipped | ||
| # 'no_<task_name>' -- skip the given task | ||
| # 'no_<component>', 'no_<tag>' -- in analogy to 'all_*', skip all analysis | ||
| # tasks from the given compoonent or with | ||
| # the given tag. Do | ||
| # ./run_mpas_analysis --list | ||
| # to list all task names and their tags | ||
| # an equivalent syntax can be used on the command line to override this | ||
| # option: | ||
| # ./run_mpas_analysis config.analysis --generate \ | ||
| # all,no_ocean,all_timeSeries | ||
| generate = ['all', 'no_landIceCavities'] | ||
|
|
||
| [climatology] | ||
| ## options related to producing climatologies, typically to compare against | ||
| ## observations and previous runs | ||
|
|
||
| # the first year over which to average climatalogies | ||
| startYear = 10 | ||
| # the last year over which to average climatalogies | ||
| endYear = 10 | ||
|
|
||
| [timeSeries] | ||
| ## options related to producing time series plots, often to compare against | ||
| ## observations and previous runs | ||
|
|
||
| # start and end years for timeseries analysis. Using out-of-bounds values | ||
| # like start_year = 1 and end_year = 9999 will be clipped to the valid range | ||
| # of years, and is a good way of insuring that all values are used. | ||
| startYear = 8 | ||
| endYear = 10 | ||
|
|
||
| [index] | ||
| ## options related to producing nino index. | ||
|
|
||
| # start and end years for the nino 3.4 analysis. Using out-of-bounds values | ||
| # like start_year = 1 and end_year = 9999 will be clipped to the valid range | ||
| # of years, and is a good way of insuring that all values are used. | ||
| # For valid statistics, index times should include at least 30 years | ||
| startYear = 1 | ||
| endYear = 9999 | ||
|
|
||
| [oceanObservations] | ||
| ## options related to ocean observations with which the results will be compared | ||
|
|
||
| # directory where ocean observations are stored | ||
| baseDirectory = /projects/ccsm/acme/diagnostics_data/observations/Ocean | ||
| sstSubdirectory = SST | ||
| sssSubdirectory = SSS | ||
| mldSubdirectory = MLD | ||
| ninoSubdirectory = Nino | ||
| mhtSubdirectory = MHT | ||
| soseSubdirectory = SOSE | ||
|
|
||
| [oceanPreprocessedReference] | ||
| ## options related to preprocessed ocean reference run with which the results | ||
| ## will be compared (e.g. a POP, CESM or ACME v0 run) | ||
|
|
||
| # directory where ocean reference simulation results are stored | ||
| baseDirectory = /projects/ccsm/acme/diagnostics_data/reference_runs/ACMEv0_lowres/B1850C5_ne30_v0.4/ocn/postprocessing | ||
|
|
||
| [seaIceObservations] | ||
| ## options related to sea ice observations with which the results will be | ||
| ## compared | ||
|
|
||
| # directory where sea ice observations are stored | ||
| baseDirectory = /projects/ccsm/acme/diagnostics_data/observations/SeaIce | ||
|
|
||
| [seaIcePreprocessedReference] | ||
| ## options related to preprocessed sea ice reference run with which the results | ||
| ## will be compared (e.g. a CICE, CESM or ACME v0 run) | ||
|
|
||
| # directory where ocean reference simulation results are stored | ||
| baseDirectory = /projects/ccsm/acme/diagnostics_data/reference_runs/ACMEv0_lowres/B1850C5_ne30_v0.4/ice/postprocessing | ||
|
|
||
| [timeSeriesSeaIceAreaVol] | ||
| ## options related to plotting time series of sea ice area and volume | ||
|
|
||
| # plot on polar plot | ||
| polarPlot = False | ||
|
|
||
| [regions] | ||
| # Directory containing mask files for ocean basins and ice shelves | ||
| regionMaskDirectory = /projects/ccsm/acme/diagnostics_data/region_masks | ||
|
|
||
| [climatologyMapSoseTemperature] | ||
| ## options related to plotting climatology maps of Antarctic | ||
| ## potential temperature at various levels, including the sea floor against | ||
| ## reference model results and SOSE reanalysis data | ||
|
|
||
| # Times for comparison times (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, | ||
| # Nov, Dec, JFM, AMJ, JAS, OND, ANN) | ||
| seasons = ['JFM', 'JAS', 'ANN'] | ||
|
|
||
| # list of depths in meters (positive up) at which to analyze, 'top' for the | ||
| # sea surface, 'bot' for the sea floor | ||
| depths = ['top', -200, -400, -600, -800, 'bot'] | ||
|
|
||
| [climatologyMapSoseSalinity] | ||
| ## options related to plotting climatology maps of Antarctic | ||
| ## salinity at various levels, including the sea floor against | ||
| ## reference model results and SOSE reanalysis data | ||
|
|
||
| # Times for comparison times (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, | ||
| # Nov, Dec, JFM, AMJ, JAS, OND, ANN) | ||
| seasons = ['JFM', 'JAS', 'ANN'] | ||
|
|
||
| # list of depths in meters (positive up) at which to analyze, 'top' for the | ||
| # sea surface, 'bot' for the sea floor | ||
| depths = ['top', -200, -400, -600, -800, 'bot'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to keep 2 blank lines between each section so it's easier to find section. @gstreletz did a lot of work to put in this formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry. I thought this was config.default. Ignore my comment above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only removed it because it wasn't consistent in the config example cases: in most cases there weren't blank lines, so I thought of just removing this one.
Instead, config.defaults has the blank lines between each section.