mpas_analysis.shared.transects.compute_transect_masks_subtask.ComputeTransectMasksSubtask¶
- 
class 
mpas_analysis.shared.transects.compute_transect_masks_subtask.ComputeTransectMasksSubtask(parentTask, geojsonFileName, outFileSuffix, subtaskName='computeTransectMasks', subprocessCount=1)[source]¶ An analysis tasks for computing cell masks for transects defined by geojson features
- Variables
 geojsonFileName (str) – A geojson file, typically from the MPAS
geometric_featuresrepository, defining the shapes to be maskedoutFileSuffix (str) – The suffix for the resulting mask file
maskFileName (str) – The name of the output mask file
meshFileName (str) – A mesh file used to create the masks
- 
__init__(parentTask, geojsonFileName, outFileSuffix, subtaskName='computeTransectMasks', subprocessCount=1)[source]¶ Construct the analysis task and adds it as a subtask of the
parentTask.- Parameters
 parentTask (
AnalysisTask) – The parent task, used to get thetaskName,configandcomponentNamegeojsonFileName (str) – A geojson file, typically from the MPAS
geometric_featuresrepository, defining the shapes to be maskedoutFileSuffix (str) – The suffix for the resulting mask file
subtaskName (str, optional) – The name of the subtask
subprocessCount (int, optional) – The number of processes that can be used to make the mask
Methods
__init__(parentTask, geojsonFileName, …[, …])Construct the analysis task and adds it as a subtask of the
parentTask.add_subtask(subtask)Add a subtask to this tasks.
check_analysis_enabled(analysisOptionName[, …])Check to make sure a given analysis is turned on, issuing a warning or raising an exception if not.
check_generate()Determines if this analysis should be generated, based on the
generateconfig option andtaskName,componentNameandtags.close()Close the Process object.
is_alive()Return whether process is alive
join([timeout])Wait until child process terminates
kill()Terminate process; sends SIGKILL signal or uses TerminateProcess()
run([writeLogFile])Sets up logging and then runs the analysis task.
run_after(task)Only run this task after the given task has completed.
run_task()Compute the requested climatologies
set_start_end_date(section)Set the start and end dates in the
configcorrespond to the start and end years in a given category of analysissetup_and_check()Perform steps to set up the analysis and check for errors in the setup.
start()Start child process
terminate()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.