From e6712d64a43065ff26668313e52e8693c41ae177 Mon Sep 17 00:00:00 2001 From: cgas Date: Thu, 25 May 2023 16:25:47 -0600 Subject: [PATCH] remove ewok repo --- ewok/defaults/an_variables.yaml | 5 -- ewok/defaults/bg_variables.yaml | 8 --- ewok/defaults/bstatic.yaml | 55 ------------------- ewok/defaults/geometry_025deg.yaml | 4 -- ewok/defaults/geometry_1deg.yaml | 4 -- ewok/defaults/geometry_5deg.yaml | 4 -- ewok/defaults/model.yaml | 0 ewok/defaults/model_variables.yaml | 8 --- ewok/defaults/plots.yaml | 14 ----- ewok/fields_metadata.yaml | 1 - ewok/mom_input.nml | 11 ---- ewok/static/5deg/MOM_input | 3 - .../bump/ice_nicas_local_000004-000001.nc | 3 - .../bump/ice_nicas_local_000004-000002.nc | 3 - .../bump/ice_nicas_local_000004-000003.nc | 3 - .../bump/ice_nicas_local_000004-000004.nc | 3 - .../bump/ocn_nicas_local_000004-000001.nc | 3 - .../bump/ocn_nicas_local_000004-000002.nc | 3 - .../bump/ocn_nicas_local_000004-000003.nc | 3 - .../bump/ocn_nicas_local_000004-000004.nc | 3 - ewok/static/5deg/soca_gridspec.nc | 3 - ewok/tasks/__init__.py | 0 ewok/tasks/forecastMOM6.py | 11 ---- ewok/tasks/getBackgroundMOM6.py | 22 -------- ewok/tasks/getFCInitMOM6.py | 20 ------- ewok/tasks/getInitialConditionsMOM6.py | 22 -------- ewok/tasks/getStaticModelMOM6.py | 19 ------- ewok/tasks/hofxMOM6.py | 18 ------ ewok/tasks/mom6.py | 34 ------------ ewok/tasks/runForecast.py | 1 - ewok/tasks/runGetForecast.py | 51 ----------------- ewok/tasks/runSaveAnalysis.py | 48 ---------------- ewok/tasks/runSaveForecast.py | 1 - ewok/tasks/runStaticModelMOM6.sh | 11 ---- ewok/tasks/saveAnalysisMOM6.py | 18 ------ ewok/tasks/saveForecastMOM6.py | 18 ------ ewok/tasks/variationalMOM6.py | 15 ----- ewok/templates/analysis.yaml | 8 --- ewok/templates/anout.yaml | 5 -- ewok/templates/background.yaml | 8 --- 40 files changed, 474 deletions(-) delete mode 100644 ewok/defaults/an_variables.yaml delete mode 100644 ewok/defaults/bg_variables.yaml delete mode 100644 ewok/defaults/bstatic.yaml delete mode 100644 ewok/defaults/geometry_025deg.yaml delete mode 100644 ewok/defaults/geometry_1deg.yaml delete mode 100644 ewok/defaults/geometry_5deg.yaml delete mode 100644 ewok/defaults/model.yaml delete mode 100644 ewok/defaults/model_variables.yaml delete mode 100644 ewok/defaults/plots.yaml delete mode 120000 ewok/fields_metadata.yaml delete mode 100644 ewok/mom_input.nml delete mode 100644 ewok/static/5deg/MOM_input delete mode 100644 ewok/static/5deg/bump/ice_nicas_local_000004-000001.nc delete mode 100644 ewok/static/5deg/bump/ice_nicas_local_000004-000002.nc delete mode 100644 ewok/static/5deg/bump/ice_nicas_local_000004-000003.nc delete mode 100644 ewok/static/5deg/bump/ice_nicas_local_000004-000004.nc delete mode 100644 ewok/static/5deg/bump/ocn_nicas_local_000004-000001.nc delete mode 100644 ewok/static/5deg/bump/ocn_nicas_local_000004-000002.nc delete mode 100644 ewok/static/5deg/bump/ocn_nicas_local_000004-000003.nc delete mode 100644 ewok/static/5deg/bump/ocn_nicas_local_000004-000004.nc delete mode 100644 ewok/static/5deg/soca_gridspec.nc delete mode 100644 ewok/tasks/__init__.py delete mode 100644 ewok/tasks/forecastMOM6.py delete mode 100644 ewok/tasks/getBackgroundMOM6.py delete mode 100644 ewok/tasks/getFCInitMOM6.py delete mode 100644 ewok/tasks/getInitialConditionsMOM6.py delete mode 100644 ewok/tasks/getStaticModelMOM6.py delete mode 100644 ewok/tasks/hofxMOM6.py delete mode 100644 ewok/tasks/mom6.py delete mode 100644 ewok/tasks/runForecast.py delete mode 100644 ewok/tasks/runGetForecast.py delete mode 100644 ewok/tasks/runSaveAnalysis.py delete mode 100644 ewok/tasks/runSaveForecast.py delete mode 100644 ewok/tasks/runStaticModelMOM6.sh delete mode 100644 ewok/tasks/saveAnalysisMOM6.py delete mode 100644 ewok/tasks/saveForecastMOM6.py delete mode 100644 ewok/tasks/variationalMOM6.py delete mode 100644 ewok/templates/analysis.yaml delete mode 100644 ewok/templates/anout.yaml delete mode 100644 ewok/templates/background.yaml diff --git a/ewok/defaults/an_variables.yaml b/ewok/defaults/an_variables.yaml deleted file mode 100644 index 72a57467b..000000000 --- a/ewok/defaults/an_variables.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- tocn -- socn -- ssh -- cicen -- hicen diff --git a/ewok/defaults/bg_variables.yaml b/ewok/defaults/bg_variables.yaml deleted file mode 100644 index 715a8cc8a..000000000 --- a/ewok/defaults/bg_variables.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- tocn -- socn -- hocn -- ssh -- cicen -- hicen -- mld -- layer_depth diff --git a/ewok/defaults/bstatic.yaml b/ewok/defaults/bstatic.yaml deleted file mode 100644 index aeb20ee38..000000000 --- a/ewok/defaults/bstatic.yaml +++ /dev/null @@ -1,55 +0,0 @@ -covariance model: SocaError -analysis variables: $(AN_VARIABLES) -date: '{{current_cycle}}' -bump: - io: - data directory: $(soca_static_dir)/bump - drivers: - multivariate strategy: univariate - read local nicas: true -correlation: - - name: ocn - variables: [tocn, socn, ssh] - - name: ice - variables: [cicen, hicen] -linear variable change: - input variables: $(AN_VARIABLES) - output variables: $(AN_VARIABLES) - linear variable changes: - - - linear variable change name: VertConvSOCA - Lz_min: 0.0 - Lz_mld: 0 - Lz_mld_max: 1.0 - scale_layer_thick: 5 - - - linear variable change name: BkgErrFILT - ocean_depth_min: 0 # [m] - rescale_bkgerr: 1.0 - efold_z: 2500.0 # [m] - - - linear variable change name: BkgErrGODAS - sst_bgerr_file: ${JEDI_SRC}/soca/test/Data/godas_sst_bgerr.nc - t_min: 0.1 - t_max: 2.0 - t_dz: 20.0 - t_efold: 500.0 - s_min: 0.0 - s_max: 0.25 - ssh_min: 0.0 # value at EQ - ssh_max: 0.0 # value in Extratropics - ssh_phi_ex: 20 # lat of transition from extratropics - cicen_min: 0.1 - cicen_max: 0.1 - hicen_min: 0.1 - hicen_max: 0.1 - - - linear variable change name: HorizFiltSOCA - niter: 2 - filter variables: $(AN_VARIABLES) - - - linear variable change name: BalanceSOCA - dsdtmax: 0.1 - dsdzmin: 3.0e-6 - dtdzmin: 1.0e-6 - nlayers: 10 diff --git a/ewok/defaults/geometry_025deg.yaml b/ewok/defaults/geometry_025deg.yaml deleted file mode 100644 index 43d280780..000000000 --- a/ewok/defaults/geometry_025deg.yaml +++ /dev/null @@ -1,4 +0,0 @@ -_resol_name: 025deg -mom6_input_nml: $(model_path)/mom_input.nml -fields metadata: $(model_path)/fields_metadata.yaml -geom_grid_file: ../soca_gridspec.nc diff --git a/ewok/defaults/geometry_1deg.yaml b/ewok/defaults/geometry_1deg.yaml deleted file mode 100644 index 6a2b4789c..000000000 --- a/ewok/defaults/geometry_1deg.yaml +++ /dev/null @@ -1,4 +0,0 @@ -_resol_name: 1deg -mom6_input_nml: $(model_path)/mom_input.nml -fields metadata: $(model_path)/fields_metadata.yaml -geom_grid_file: ../soca_gridspec.nc diff --git a/ewok/defaults/geometry_5deg.yaml b/ewok/defaults/geometry_5deg.yaml deleted file mode 100644 index 68dabcc56..000000000 --- a/ewok/defaults/geometry_5deg.yaml +++ /dev/null @@ -1,4 +0,0 @@ -_resol_name: 5deg -mom6_input_nml: $(model_path)/mom_input.nml -fields metadata: $(model_path)/fields_metadata.yaml -geom_grid_file: ../soca_gridspec.nc diff --git a/ewok/defaults/model.yaml b/ewok/defaults/model.yaml deleted file mode 100644 index e69de29bb..000000000 diff --git a/ewok/defaults/model_variables.yaml b/ewok/defaults/model_variables.yaml deleted file mode 100644 index 715a8cc8a..000000000 --- a/ewok/defaults/model_variables.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- tocn -- socn -- hocn -- ssh -- cicen -- hicen -- mld -- layer_depth diff --git a/ewok/defaults/plots.yaml b/ewok/defaults/plots.yaml deleted file mode 100644 index 2577d5760..000000000 --- a/ewok/defaults/plots.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# (C) Copyright 2023- UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -# Plots of variational diagnostics -plotVarDiagnostics: -- CostFunction # line plot of minimization-related diagnostics -- JoJb # time-series of Jo & Jb -- trHKbyp # time-series of the trace of HK scaled by the number of observations -- ObCnt # barplot of the mean observation count per cycle -- TotImp # barplot of the mean total impact per cycle (Jo reduction) -- ImpPerOb # barplot of the mean impact per observation per cycle (Jo reduction) -- FracImp # barplot of the mean fractional impact per cycle (Jo reduction) diff --git a/ewok/fields_metadata.yaml b/ewok/fields_metadata.yaml deleted file mode 120000 index 00f782e9e..000000000 --- a/ewok/fields_metadata.yaml +++ /dev/null @@ -1 +0,0 @@ -../test/Data/fields_metadata.yml \ No newline at end of file diff --git a/ewok/mom_input.nml b/ewok/mom_input.nml deleted file mode 100644 index 945fd3346..000000000 --- a/ewok/mom_input.nml +++ /dev/null @@ -1,11 +0,0 @@ -$MOM_input_nml - parameter_filename = '../MOM_input' -/ - -&fms_io_nml - checksum_required=.false. -/ - -&fms_nml - domains_stack_size = 2000000 -/ \ No newline at end of file diff --git a/ewok/static/5deg/MOM_input b/ewok/static/5deg/MOM_input deleted file mode 100644 index 7dbfd3c6b..000000000 --- a/ewok/static/5deg/MOM_input +++ /dev/null @@ -1,3 +0,0 @@ -NIGLOBAL = 72 -NJGLOBAL = 35 -NK = 25 \ No newline at end of file diff --git a/ewok/static/5deg/bump/ice_nicas_local_000004-000001.nc b/ewok/static/5deg/bump/ice_nicas_local_000004-000001.nc deleted file mode 100644 index 9fda2a6cc..000000000 --- a/ewok/static/5deg/bump/ice_nicas_local_000004-000001.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fdf794a6274e32695318a10e308749fa84e1326fe284bbbb27f6ace954aafbf4 -size 189718 diff --git a/ewok/static/5deg/bump/ice_nicas_local_000004-000002.nc b/ewok/static/5deg/bump/ice_nicas_local_000004-000002.nc deleted file mode 100644 index 40527701d..000000000 --- a/ewok/static/5deg/bump/ice_nicas_local_000004-000002.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a440d2bb389e79e5a40deacf79d72477be7e38d279c51622c3c6933271615f70 -size 169506 diff --git a/ewok/static/5deg/bump/ice_nicas_local_000004-000003.nc b/ewok/static/5deg/bump/ice_nicas_local_000004-000003.nc deleted file mode 100644 index dfd58903f..000000000 --- a/ewok/static/5deg/bump/ice_nicas_local_000004-000003.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb350eb3e57c7792449e0c280423372997e81d9f214f2060434ee71361f35dd9 -size 153126 diff --git a/ewok/static/5deg/bump/ice_nicas_local_000004-000004.nc b/ewok/static/5deg/bump/ice_nicas_local_000004-000004.nc deleted file mode 100644 index a919eb9d8..000000000 --- a/ewok/static/5deg/bump/ice_nicas_local_000004-000004.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba9fade6b08ba7acae3eb93b94d657d097e748ea892af46c36a46b83d1f6166c -size 136422 diff --git a/ewok/static/5deg/bump/ocn_nicas_local_000004-000001.nc b/ewok/static/5deg/bump/ocn_nicas_local_000004-000001.nc deleted file mode 100644 index e7faa8d5c..000000000 --- a/ewok/static/5deg/bump/ocn_nicas_local_000004-000001.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bcf0ae9314a521ae95508238a098baa921806c17a80943b4acf2a03c57be65ed -size 320947 diff --git a/ewok/static/5deg/bump/ocn_nicas_local_000004-000002.nc b/ewok/static/5deg/bump/ocn_nicas_local_000004-000002.nc deleted file mode 100644 index 0a901da99..000000000 --- a/ewok/static/5deg/bump/ocn_nicas_local_000004-000002.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97ff2cd26103c8bf803a928dd5b80a26611d21a1ded1e4e976aeb05d3ef67021 -size 285407 diff --git a/ewok/static/5deg/bump/ocn_nicas_local_000004-000003.nc b/ewok/static/5deg/bump/ocn_nicas_local_000004-000003.nc deleted file mode 100644 index 25112261d..000000000 --- a/ewok/static/5deg/bump/ocn_nicas_local_000004-000003.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2c2b2a36d3620547a7a05f3ebbeaa9e15d311ff36ba443514988eb4ea3da5f51 -size 219062 diff --git a/ewok/static/5deg/bump/ocn_nicas_local_000004-000004.nc b/ewok/static/5deg/bump/ocn_nicas_local_000004-000004.nc deleted file mode 100644 index 9d5a3487c..000000000 --- a/ewok/static/5deg/bump/ocn_nicas_local_000004-000004.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1d39b965f20cb6d7f1c4362a1aa8e273799813f9611f366d2b489b33305db58 -size 193690 diff --git a/ewok/static/5deg/soca_gridspec.nc b/ewok/static/5deg/soca_gridspec.nc deleted file mode 100644 index d251c4874..000000000 --- a/ewok/static/5deg/soca_gridspec.nc +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1ac0e6fdc3609a85fb47c34474f7262a6e31eaaa22bca7d5cc4b31704b9498a -size 506552 diff --git a/ewok/tasks/__init__.py b/ewok/tasks/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/ewok/tasks/forecastMOM6.py b/ewok/tasks/forecastMOM6.py deleted file mode 100644 index 23abb6d8c..000000000 --- a/ewok/tasks/forecastMOM6.py +++ /dev/null @@ -1,11 +0,0 @@ -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -from ewok import JediTask - -class forecastMOM6(JediTask): - def setup(self, config, execs, fix, ic): - self.command = os.path.join(config['model_path'], "tasks/runForecast.py") \ No newline at end of file diff --git a/ewok/tasks/getBackgroundMOM6.py b/ewok/tasks/getBackgroundMOM6.py deleted file mode 100644 index f29fbbf74..000000000 --- a/ewok/tasks/getBackgroundMOM6.py +++ /dev/null @@ -1,22 +0,0 @@ - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -import yamltools -import ewok.tasks.getBackground as generic - - -class getBackgroundMOM6(generic.getBackground): - - def setup(self, config, fc, fix): - super().setup(config, fc, fix) - - # Use MOM6 specific script - self.command = os.path.join(config['model_path'], "tasks/runGetForecast.py") - - self.exec_cmd = '' # Run on login node for S3 and R2D2 Database access - self.include_header = '' - self.login_node_limit = 'True' diff --git a/ewok/tasks/getFCInitMOM6.py b/ewok/tasks/getFCInitMOM6.py deleted file mode 100644 index d60cd41bf..000000000 --- a/ewok/tasks/getFCInitMOM6.py +++ /dev/null @@ -1,20 +0,0 @@ -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -import ewok.tasks.getFcInit as generic - - -class getFcInitMOM6(generic.getFcInit): - - def setup(self, config): - super().setup(config) - - # Use specific script - self.command = os.path.join(config['model_path'], "tasks/runGetForecast.py") - - self.exec_cmd = '' # Run on login node for S3 and R2D2 Database access - self.include_header = '' - self.login_node_limit = 'True' diff --git a/ewok/tasks/getInitialConditionsMOM6.py b/ewok/tasks/getInitialConditionsMOM6.py deleted file mode 100644 index 772105c2a..000000000 --- a/ewok/tasks/getInitialConditionsMOM6.py +++ /dev/null @@ -1,22 +0,0 @@ -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -import ewok.tasks.getInitialConditions as generic - - -class getInitialConditionsMOM6(generic.getInitialConditions): - - def setup(self, config): - super().setup(config) - - # self.walltime = '00:05:00' - - # Use specific script - self.command = os.path.join(config['model_path'], "tasks/runGetForecast.py") - - self.exec_cmd = '' # Run on login node for S3 and R2D2 Database access - self.include_header = '' - self.login_node_limit = 'True' diff --git a/ewok/tasks/getStaticModelMOM6.py b/ewok/tasks/getStaticModelMOM6.py deleted file mode 100644 index 9502fe560..000000000 --- a/ewok/tasks/getStaticModelMOM6.py +++ /dev/null @@ -1,19 +0,0 @@ -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -import yamltools -from ewok import Task - - -class getStaticModelMOM6(Task): - - def setup(self, config, **inputs): - - self.RUNTIME_ENV['SOCAREPO'] = os.path.join(os.environ.get("JEDI_SRC"), "soca") - self.RUNTIME_ENV['SOCA_STATIC_DIR'] = config['soca_static_dir'] - self.RUNTIME_ENV['RESOLUTION'] = config['GEOMETRY']['_resol_name'] - - self.command = os.path.join(config['model_path'], "tasks/runStaticModelMOM6.sh") diff --git a/ewok/tasks/hofxMOM6.py b/ewok/tasks/hofxMOM6.py deleted file mode 100644 index 6381f904b..000000000 --- a/ewok/tasks/hofxMOM6.py +++ /dev/null @@ -1,18 +0,0 @@ -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -from ewok.tasks.hofx import hofx - - -class hofxMOM6(hofx): - - def setup(self, config, execs, fix, hcoeffs, bg, obs): - # overwrite the executable names - build = os.environ.get("JEDI_BUILD") - bindir = os.path.join(build, 'bin') - execs['hx3dex'] = os.path.join(bindir, 'soca_hofx3d.x') - execs['hxexec'] = os.path.join(bindir, 'soca_hofx.x') - super().setup(config, execs, fix, hcoeffs, bg, obs) diff --git a/ewok/tasks/mom6.py b/ewok/tasks/mom6.py deleted file mode 100644 index 54dbd9f79..000000000 --- a/ewok/tasks/mom6.py +++ /dev/null @@ -1,34 +0,0 @@ - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import ewok -from ewok.tasks import GenericModel - -from forecastMOM6 import forecastMOM6 -from getBackgroundMOM6 import getBackgroundMOM6 -from getFCInitMOM6 import getFcInitMOM6 -from getInitialConditionsMOM6 import getInitialConditionsMOM6 -from getStaticModelMOM6 import getStaticModelMOM6 -from hofxMOM6 import hofxMOM6 -from saveAnalysisMOM6 import saveAnalysisMOM6 -from saveForecastMOM6 import saveForecastMOM6 -from variationalMOM6 import variationalMOM6 - -class ModelTasks(GenericModel.ModelTasks): - def __init__(self): - super().__init__() - - # self.getFcInit = getFcInitMOM6 - self.forecast = forecastMOM6 - self.getBackground = getBackgroundMOM6 - self.getInitialConditions = getInitialConditionsMOM6 - self.getStaticModel = getStaticModelMOM6 - self.hofx = hofxMOM6 - self.plotObsStats = ewok.plotObsStats - self.publishObsPlots = ewok.publishObsPlots - self.saveAnalysis = saveAnalysisMOM6 - self.saveForecast = saveForecastMOM6 - self.variational = variationalMOM6 diff --git a/ewok/tasks/runForecast.py b/ewok/tasks/runForecast.py deleted file mode 100644 index 91b756572..000000000 --- a/ewok/tasks/runForecast.py +++ /dev/null @@ -1 +0,0 @@ -# No forecast, for now \ No newline at end of file diff --git a/ewok/tasks/runGetForecast.py b/ewok/tasks/runGetForecast.py deleted file mode 100644 index ed70734e2..000000000 --- a/ewok/tasks/runGetForecast.py +++ /dev/null @@ -1,51 +0,0 @@ -#! /usr/bin/env python3 - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import sys -import os -import yamltools -from r2d2 import R2D2Data - -conf = yamltools.configure_runtime(sys.argv[1]) - -# Check for working directory -if not os.path.exists(conf['workdir']): - raise RuntimeError('Working directory does not exist') -os.chdir(conf['workdir']) - -# Define experiment to read from, current experiment by default -exp_read = conf['experiment']['expid'] -if 'exp_source' in conf: - exp_read = conf['exp_source'] - -# Fetch state -base = conf['experiment']['expid'] + '.fc.' -sdate = yamltools.jedifnformat(conf['fcdate']) + '.' + conf['fcstep'] -# filename = base + sdate + '.$(file_type).nc' - -# determine the files needed depending on resolution, and if ice is on or off -file_types = ['MOM.res', 'cice.res'] -if conf['resolution'] in {'025deg',}: - file_types += ['MOM.res_1', 'MOM.res_2', 'MOM.res_3'] -elif conf['resolution'] in {'1deg','5deg'}: - pass -else: - raise RuntimeError(f'Unsupported resolution {conf["resolution"]}') - -for file_type in file_types: - R2D2Data.fetch( - model=conf['experiment']['model'], - item='forecast', - experiment=exp_read, - step=conf['fcstep'], - resolution=conf['resolution'], - date=conf['fcdate'], - domain='global', - target_file=f'{base}{sdate}.{file_type}.nc', - file_extension='nc', - file_type=file_type, - ) diff --git a/ewok/tasks/runSaveAnalysis.py b/ewok/tasks/runSaveAnalysis.py deleted file mode 100644 index f8d8a2541..000000000 --- a/ewok/tasks/runSaveAnalysis.py +++ /dev/null @@ -1,48 +0,0 @@ -#! /usr/bin/env python3 - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import sys -import os -import yamltools -import shutil -from r2d2 import R2D2Data - -conf = yamltools.configure_runtime(sys.argv[1]) - -# Check for working directory -workdir = conf['workdir'] -if not os.path.exists(workdir): - raise RuntimeError('Working directory does not exist') -os.chdir(workdir) - -# Date -andate = yamltools.jedifnformat(conf['an']['date']) -base = conf['experiment']['expid'] + '.an' # + andate - -# TODO put analysis back in restart file correctly? -file_types = ['MOM.res', 'cice.res'] -expid = conf['experiment']['expid'] -for in_pfx, out_pfx in ( - ('ice', 'cice.res'), - ('ocn', 'MOM.res')): - infile = f'{in_pfx}.{expid}.an.{andate}.nc' - outfile = f'{expid}.an.{out_pfx}.nc' - print(f"moving {infile} to {outfile}") - shutil.move(infile, outfile) - -for file_type in file_types: - R2D2Data.store( - model=conf['experiment']['model'], - item='analysis', - experiment=conf['experiment']['expid'], - resolution=conf['resolution'], - date=conf['an']['date'], - domain='global', - source_file=f'{base}.{file_type}.nc', - file_extension='nc', - file_type=file_type, - ) diff --git a/ewok/tasks/runSaveForecast.py b/ewok/tasks/runSaveForecast.py deleted file mode 100644 index 4884ad16e..000000000 --- a/ewok/tasks/runSaveForecast.py +++ /dev/null @@ -1 +0,0 @@ -# no forecast! \ No newline at end of file diff --git a/ewok/tasks/runStaticModelMOM6.sh b/ewok/tasks/runStaticModelMOM6.sh deleted file mode 100644 index 110d1b2ed..000000000 --- a/ewok/tasks/runStaticModelMOM6.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -set -eux - -# cp ${SOCAREPO}/ewok/mom_input/MOM_input.${RESOLUTION}* ${WORKDIR}/MOM_input -cp -r ${SOCA_STATIC_DIR}/* ${WORKDIR}/ diff --git a/ewok/tasks/saveAnalysisMOM6.py b/ewok/tasks/saveAnalysisMOM6.py deleted file mode 100644 index 7c33d0456..000000000 --- a/ewok/tasks/saveAnalysisMOM6.py +++ /dev/null @@ -1,18 +0,0 @@ - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -import ewok.tasks.saveAnalysis as generic - -class saveAnalysisMOM6(generic.saveAnalysis): - - def setup(self, config, an): - super().setup(config, an) - self.command = os.path.join(config['model_path'], "tasks/runSaveAnalysis.py") - - self.exec_cmd = '' # Run on login node for S3 and R2D2 Database access - self.include_header = '' - self.login_node_limit = 'True' diff --git a/ewok/tasks/saveForecastMOM6.py b/ewok/tasks/saveForecastMOM6.py deleted file mode 100644 index 494516531..000000000 --- a/ewok/tasks/saveForecastMOM6.py +++ /dev/null @@ -1,18 +0,0 @@ - -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -import ewok.tasks.saveForecast as generic - -class saveForecastMOM6(generic.saveForecast): - - def setup(self, config, fc): - super().setup(config, fc) - self.command = os.path.join(config['model_path'], "tasks/runSaveForecast.py") - - self.exec_cmd = '' # Run on login node for S3 and R2D2 Database access - self.include_header = '' - self.login_node_limit = 'True' diff --git a/ewok/tasks/variationalMOM6.py b/ewok/tasks/variationalMOM6.py deleted file mode 100644 index 16a187f22..000000000 --- a/ewok/tasks/variationalMOM6.py +++ /dev/null @@ -1,15 +0,0 @@ -# (C) Copyright 2022-2022 UCAR -# -# This software is licensed under the terms of the Apache Licence Version 2.0 -# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - -import os -from ewok.tasks.variational import variational - -class variationalMOM6(variational): - def setup(self, config, execs, fix, hcoeffs, statb, bg, bgens, obs): - # overwrite the executable names - build = os.environ.get("JEDI_BUILD") - bindir = os.path.join(build, 'bin') - execs['anexec'] = os.path.join(bindir, 'soca_var.x') - super().setup(config, execs, fix, hcoeffs, statb, bg, bgens, obs) diff --git a/ewok/templates/analysis.yaml b/ewok/templates/analysis.yaml deleted file mode 100644 index 26f2d2481..000000000 --- a/ewok/templates/analysis.yaml +++ /dev/null @@ -1,8 +0,0 @@ -basename: $(anworkdir)/ -date: $(andatetime) - -ice_filename: $(expid).an.$(fndatetime).cice.res.nc -ocn_filename: $(expid).an.$(fndatetime).MOM.res.nc -filename: $(expid).an.$(fndatetime).MOM.res.nc -read_from_file: 1 -state variables: $(BG_VARIABLES) diff --git a/ewok/templates/anout.yaml b/ewok/templates/anout.yaml deleted file mode 100644 index e533bdebc..000000000 --- a/ewok/templates/anout.yaml +++ /dev/null @@ -1,5 +0,0 @@ -type : an -date: '{{current_cycle}}' -date colons: false -exp: $(expid) -datadir: ./ diff --git a/ewok/templates/background.yaml b/ewok/templates/background.yaml deleted file mode 100644 index 81c94dac8..000000000 --- a/ewok/templates/background.yaml +++ /dev/null @@ -1,8 +0,0 @@ -basename: ./ -date: '{{background_time}}' - -ice_filename: $(expid).fc.$(fcdatetime).$(fcstep).cice.res.nc -ocn_filename: $(expid).fc.$(fcdatetime).$(fcstep).MOM.res.nc -filename: $(expid).fc.$(fcdatetime).$(fcstep).MOM.res.nc -read_from_file: 1 -state variables: $(BG_VARIABLES)