From 7723432588873f7daabd2d891503a8640f1da8fe Mon Sep 17 00:00:00 2001 From: Weiyuan Jiang Date: Tue, 28 Jul 2020 13:29:45 -0400 Subject: [PATCH] no monthy or daily if ref_time is not '000000' --- src/Applications/LDAS_App/lenkf.j.template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index 4ca47de3..e7a81d92 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -420,7 +420,9 @@ while ( $counter <= ${NUM_SGMT} ) cd $THISMONTH foreach ThisCol ($collections) - + + set ref_t = `cat HISTORY.rc | grep ${ThisCol}.ref_time: | cut -d':' -f2 | cut -d',' -f1` + if ( $ref_t != '000000' ) continue # if monthly exists, move on to the next collection if (-f $EXPID.${ThisCol}.monthly.$YYYY$MM.nc4) continue