mpas_analysis.ocean.plot_climatology_map_subtask.PlotClimatologyMapSubtask¶
- 
class 
mpas_analysis.ocean.plot_climatology_map_subtask.PlotClimatologyMapSubtask(parentTask, season, comparisonGridName, remapMpasClimatologySubtask, remapObsClimatologySubtask=None, secondRemapMpasClimatologySubtask=None, controlConfig=None, depth=None, removeMean=False, subtaskName=None)[source]¶ An analysis task for plotting 2D model fields against observations.
- Attributes
 - seasonstr
 A season (key in
shared.constants.monthDictionary) to be plotted.- comparisonGridName{‘latlon’, ‘antarctic’, ‘arctic’}
 The name of the comparison grid to plot.
- remapMpasClimatologySubtask
RemapMpasClimatologySubtask The subtask for remapping the MPAS climatology that this subtask will plot
- remapObsClimatologySubtask
RemapObservedClimatologySubtask The subtask for remapping the observational climatology that this subtask will plot
- secondRemapMpasClimatologySubtask
RemapMpasClimatologySubtask A second subtask for remapping another MPAS climatology to plot in the second panel and compare with in the third panel
- removeMeanbool, optional
 If True, a common mask for the model and reference data sets is computed (where both are valid) and the mean over that mask is subtracted from both the model and reference results. This is useful for data sets where the desire is to compare the spatial pattern but the mean offset is not meaningful (e.g. SSH)
- outFileLabelstr
 The prefix on each plot and associated XML file
- fieldNameInTitlestr
 The name of the field being plotted, as used in the plot title
- mpasFieldNamestr
 The name of the variable in the MPAS timeSeriesStatsMonthly output
- obsFieldNamestr
 The name of the variable to use from the observations file
- observationTitleLabelstr
 the title of the observations subplot
- diffTitleLabelstr, optional
 the title of the difference subplot
- unitsLabelstr
 the units of the plotted field, to be displayed on color bars
- imageCaptionstr
 the caption when mousing over the plot or displaying it full screen
- galleryGroupstr
 the name of the group of galleries in which this plot belongs
- groupSubtitlestr
 the subtitle of the group in which this plot belongs (or blank if none)
- groupLinkstr
 a short name (with no spaces) for the link to the gallery group
- galleryNamestr
 the name of the gallery in which this plot belongs
- depth{None, float, ‘top’, ‘bot’}
 Depth at which to perform the comparison, ‘top’ for the sea surface ‘bot’ for the sea floor
- configSectionNamestr
 the name of the section where the color map and range is defined
- 
__init__(self, parentTask, season, comparisonGridName, remapMpasClimatologySubtask, remapObsClimatologySubtask=None, secondRemapMpasClimatologySubtask=None, controlConfig=None, depth=None, removeMean=False, subtaskName=None)[source]¶ Construct one analysis subtask for each plot (i.e. each season and comparison grid) and a subtask for computing climatologies.
- Parameters
 - parentTask
AnalysisTask The parent (master) task for this subtask
- seasonstr
 A season (key in
shared.constants.monthDictionary) to be plotted.- comparisonGridName{‘latlon’, ‘antarctic’, ‘arctic’}
 The name of the comparison grid to plot.
- remapMpasClimatologySubtask
RemapMpasClimatologySubtask The subtask for remapping the MPAS climatology that this subtask will plot
- remapObsClimatologySubtask
RemapObservedClimatologySubtask, optional The subtask for remapping the observational climatology that this subtask will plot
- secondRemapMpasClimatologySubtask
RemapMpasClimatologySubtask, optional A second subtask for remapping another MPAS climatology to plot in the second panel and compare with in the third panel
- controlConfig
MpasAnalysisConfigParser, optional Configuration options for a control run (if any)
- depth{float, ‘top’, ‘bot’}, optional
 Depth the data is being plotted, ‘top’ for the sea surface ‘bot’ for the sea floor
- removeMeanbool, optional
 If True, a common mask for the model and reference data sets is computed (where both are valid) and the mean over that mask is subtracted from both the model and reference results. This is useful for data sets where the desire is to compare the spatial pattern but the mean offset is not meaningful (e.g. SSH)
- subtaskNamestr, optinal
 The name of the subtask. If not specified, it is
plot<season>_<comparisonGridName>with a suffix indicating the depth being sliced (if any)
- parentTask
 
Methods
__init__(self, parentTask, season, …[, …])Construct one analysis subtask for each plot (i.e.
add_subtask(self, subtask)Add a subtask to this tasks.
check_analysis_enabled(self, analysisOptionName)Check to make sure a given analysis is turned on, issuing a warning or raising an exception if not.
check_generate(self)Determines if this analysis should be generated, based on the
generateconfig option andtaskName,componentNameandtags.close(self)Close the Process object.
is_alive(self)Return whether process is alive
join(self[, timeout])Wait until child process terminates
kill(self)Terminate process; sends SIGKILL signal or uses TerminateProcess()
run(self[, writeLogFile])Sets up logging and then runs the analysis task.
run_after(self, task)Only run this task after the given task has completed.
run_task(self)Plots a comparison of E3SM/MPAS output to SST/TEMP, SSS/SALT or MLD observations or a control run
set_plot_info(self, outFileLabel, …[, …])Store attributes related to plots, plot file names and HTML output.
set_start_end_date(self, section)Set the start and end dates in the
configcorrespond to the start and end years in a given category of analysissetup_and_check(self)Perform steps to set up the analysis and check for errors in the setup.
start(self)Start child process
terminate(self)Terminate process; sends SIGTERM signal or uses TerminateProcess()
Attributes
BLOCKEDFAILREADYRUNNINGSUCCESSUNSETauthkeydaemonReturn whether process is a daemon
exitcodeReturn exit code of process or None if it has yet to stop
identReturn identifier (PID) of process or None if it has yet to start
namepidReturn identifier (PID) of process or None if it has yet to start
sentinelReturn a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.