Esempio n. 1
0
    def setup_subtask(self):
        config = self.setup_config()
        parent = AnalysisTask(config, 'taskName', 'ocean')
        obsFileName = '{}/mld_4.0x4.0degree.nc'.format(str(self.datadir))
        remapObsTask = RemapObservedMLDClimatology(
                parentTask=parent,
                seasons=['ANN'], fileName=obsFileName,
                outFilePrefix='mld',
                comparisonGridNames=['latlon', 'antarctic'])

        remapObsTask.setup_and_check()
        return remapObsTask
Esempio n. 2
0
    def setup_subtask(self, mpasClimatologyTask):
        parentTask = AnalysisTask(
            config=mpasClimatologyTask.config,
            taskName='fake',
            componentName=mpasClimatologyTask.componentName,
            tags=['climatology'])
        climatologyName = 'ssh'
        variableList = ['timeMonthly_avg_ssh']
        seasons = [mpasClimatologyTask.seasons[0]]

        remapSubtask = RemapMpasClimatologySubtask(mpasClimatologyTask,
                                                   parentTask, climatologyName,
                                                   variableList, seasons)

        remapSubtask.setup_and_check()
        return remapSubtask