From ff7cd07db4f26a43962e2fbb3c6fd33d87ed9de3 Mon Sep 17 00:00:00 2001 From: RoyCaitSith Date: Mon, 16 Oct 2023 09:46:32 -0600 Subject: [PATCH] update --- functions/data_library_goes.py | 18 +++++++++++------- functions/gfdl_vortex_tracker.py | 4 ++-- notebooks/generate_gefs_ensembles.ipynb | 14 +++++++------- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/functions/data_library_goes.py b/functions/data_library_goes.py index e26ef3e..b1d200c 100644 --- a/functions/data_library_goes.py +++ b/functions/data_library_goes.py @@ -35,7 +35,7 @@ 'dir_colormaps': '/uufs/chpc.utah.edu/common/home/u1237353/climetlab-my-plugin/colormaps', 'dir_namelists': '/uufs/chpc.utah.edu/common/home/u1237353/GOES-R-observation-error-covariance/02_Ida/namelists', 'NHC_best_track': '2021_09L_Ida.csv', - 'hwrf_header': 'hwrf.18x18.AL092021.2021082506', + 'hwrf_header': 'hwrf.18x18.AL092021.2021082606', 'ibtracs': {'filename': 'ibtracs.ALL.list.v04r00.csv', 'season': 2021, 'name': 'IDA'}, 'IMERG_version': {'run': 'HHR', 'version': 'V06B'}, 'CMORPH_version': '8km-30min', @@ -70,14 +70,16 @@ compare_schemes['GOES_Laura_scheme_02'] = { 'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_08'), \ + ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_09'), \ + ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_10'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_08'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_09'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_10'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_ALL')], 'dir_save': '/uufs/chpc.utah.edu/common/home/zpu-group16/cfeng/02_GOES_Bias_Correction/27_ChCor/track_intensity/figures', - 'labels': ['NPB', 'NPB_ASRBC4CLD_08', 'NPB_ASRBC4CLD_CLD_08', 'NPB_ASRBC4CLD_CLD_09', 'NPB_ASRBC4CLD_CLD_10', 'NPB_ASRBC4CLD_CLD_ALL'], - 'colors': [sns_bright_cmap[0], sns_bright_cmap[1], sns_bright_cmap[2], sns_bright_cmap[3], sns_bright_cmap[4], sns_bright_cmap[5]], - 'linestyles': ['-', '-', '-', '-', '-', '-'], + 'labels': ['NPB', 'NPB_ASRBC4CLD_08', 'NPB_ASRBC4CLD_09', 'NPB_ASRBC4CLD_10', 'NPB_ASRBC4CLD_CLD_08', 'NPB_ASRBC4CLD_CLD_09', 'NPB_ASRBC4CLD_CLD_10', 'NPB_ASRBC4CLD_CLD_ALL'], + 'colors': [sns_bright_cmap[0], sns_bright_cmap[1], sns_bright_cmap[2], sns_bright_cmap[3], sns_bright_cmap[4], sns_bright_cmap[5], sns_bright_cmap[6], sns_bright_cmap[7]], + 'linestyles': ['-', '-', '-', '-', '-', '-', '-', '-'], } compare_schemes['GOES_Laura_scheme_03'] = { 'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'ASRBC4CLD_CLD_08'), \ @@ -91,14 +93,16 @@ } compare_schemes['GOES_Laura_scheme_04'] = { 'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_08'), \ + ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_09'), \ + ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_10'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_08'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_09'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_10'), \ ('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_ALL')], 'dir_save': '/uufs/chpc.utah.edu/common/home/zpu-group16/cfeng/02_GOES_Bias_Correction/27_ChCor/track_intensity/figures', - 'labels': ['NPB_ASRBC4CLD_08', 'NPB_ASRBC4CLD_CLD_08', 'NPB_ASRBC4CLD_CLD_09', 'NPB_ASRBC4CLD_CLD_10', 'NPB_ASRBC4CLD_CLD_ALL'], - 'colors': [sns_bright_cmap[0], sns_bright_cmap[1], sns_bright_cmap[2], sns_bright_cmap[3], sns_bright_cmap[4]], - 'linestyles': ['-', '-', '-', '-', '-'], + 'labels': ['NPB_ASRBC4CLD_08', 'NPB_ASRBC4CLD_09', 'NPB_ASRBC4CLD_10', 'NPB_ASRBC4CLD_CLD_08', 'NPB_ASRBC4CLD_CLD_09', 'NPB_ASRBC4CLD_CLD_10', 'NPB_ASRBC4CLD_CLD_ALL'], + 'colors': [sns_bright_cmap[0], sns_bright_cmap[1], sns_bright_cmap[2], sns_bright_cmap[3], sns_bright_cmap[4], sns_bright_cmap[5], sns_bright_cmap[6]], + 'linestyles': ['-', '-', '-', '-', '-', '-', '-'], } compare_schemes['GOES_Laura_scheme_05'] = { 'cases': [('/02_GOES_Bias_Correction/27_ChCor', 'Laura', 'NPB_ASRBC4CLD_CLD_10'), \ diff --git a/functions/gfdl_vortex_tracker.py b/functions/gfdl_vortex_tracker.py index 2e629e1..37bc3ed 100644 --- a/functions/gfdl_vortex_tracker.py +++ b/functions/gfdl_vortex_tracker.py @@ -31,7 +31,7 @@ def link_wrfout(data_library_name, dir_case, case_name, exp_name, \ else: anl_start_time = input_anl_start_time if input_forecast_end_time == datetime(2000, 1, 1, 0, 0, 0): - forecast_end_time = initial_time + timedelta(hours=cycling_interval*da_cycle + forecast_hours) + forecast_end_time = initial_time + timedelta(hours=cycling_interval*da_cycle + forecast_hours + 6) else: forecast_end_time = input_forecast_end_time dir_in = os.path.join(dir_exp, 'cycling_da', case, 'bkg') @@ -127,7 +127,7 @@ def process_gfdl_files(data_library_name, dir_case, case_name, exp_name, \ anl_start_time = input_anl_start_time if input_forecast_end_time == datetime(2000, 1, 1, 0, 0, 0): - forecast_end_time = initial_time + timedelta(hours=cycling_interval*da_cycle + forecast_hours) + forecast_end_time = initial_time + timedelta(hours=cycling_interval*da_cycle + forecast_hours + 6) else: forecast_end_time = input_forecast_end_time diff --git a/notebooks/generate_gefs_ensembles.ipynb b/notebooks/generate_gefs_ensembles.ipynb index 782027f..0a02f1b 100644 --- a/notebooks/generate_gefs_ensembles.ipynb +++ b/notebooks/generate_gefs_ensembles.ipynb @@ -55,12 +55,12 @@ "metadata": {}, "outputs": [], "source": [ - "from generate_gefs_ensembles import run_wrf_forecast_gefs\n", + "# from generate_gefs_ensembles import run_wrf_forecast_gefs\n", "\n", - "run_wrf_forecast_gefs(data_library_name='cpex',\n", - " dir_case='/08_CPEX/05_CV_RF07_AEW06',\n", - " case_name='AEW06',\n", - " whether_wait=False, nodes=1, ntasks=32, account='zpu-np', partition='zpu-np')" + "# run_wrf_forecast_gefs(data_library_name='cpex',\n", + "# dir_case='/08_CPEX/05_CV_RF07_AEW06',\n", + "# case_name='AEW06',\n", + "# whether_wait=False, nodes=1, ntasks=32, account='zpu-np', partition='zpu-np')" ] }, { @@ -73,8 +73,8 @@ "# from generate_gefs_ensembles import move_wrf_forecast_gefs\n", "\n", "# move_wrf_forecast_gefs(data_library_name='cpex',\n", - "# dir_case='/08_CPEX/04_AW_RF07_Larry',\n", - "# case_name='Larry')" + "# dir_case='/08_CPEX/05_CV_RF07_AEW06',\n", + "# case_name='AEW06')" ] }, {