From fce9ef560b7de9a263d77fbd53923e9252acd437 Mon Sep 17 00:00:00 2001 From: Alexander Mahura Date: Thu, 25 Apr 2024 02:12:18 +0300 Subject: [PATCH] updated scripts in AMSU-A Part --- SATELLITE/amsua_mod.sh | 3 ++- SATELLITE/amsua_obs.sh | 3 ++- SATELLITE/gsv_mod_data.sh | 23 +++++++++++++++-------- SATELLITE/main_amsua.sh | 8 +++++++- SATELLITE/set_env.sh | 5 +++-- 5 files changed, 29 insertions(+), 13 deletions(-) diff --git a/SATELLITE/amsua_mod.sh b/SATELLITE/amsua_mod.sh index 5d865aeb5..9314e60cd 100755 --- a/SATELLITE/amsua_mod.sh +++ b/SATELLITE/amsua_mod.sh @@ -16,7 +16,8 @@ if [ $process_mode == 'rf' ]; then obs_datafile=$amsua_input/amsua_obs_$cdate_s2$midpoint_time.dat model_datafile=$gsv_depo_processed/amsu-a_input_${cdate_s2}_limited.grb elif [ $process_mode == 'cli' ]; then - obs_datafile=$scriptdir/other_files/amsua_locations_sample.dat + ##obs_datafile=$scriptdir/other_files/amsua_locations_sample.dat #LT + obs_datafile=other_files/amsua_locations_sample.dat #AM model_datafile=$gsv_depo/$cdate/amsu-a_input_${cdate_s2}_limited.grb fi diff --git a/SATELLITE/amsua_obs.sh b/SATELLITE/amsua_obs.sh index 5498cddf1..4bd9eac4b 100755 --- a/SATELLITE/amsua_obs.sh +++ b/SATELLITE/amsua_obs.sh @@ -51,7 +51,8 @@ if [[ $process_mode == 'rf' || $process_mode == 'dummy' ]]; then fi start_time=$end_time elif [ $process_mode == 'cli' ]; then - test -f $outf || cp $scriptdir/other_files/amsua_locations_sample.dat $outf + test -f $outf || cp other_files/amsua_locations_sample.dat $outf # AM + ## test -f $outf || cp $scriptdir/other_files/amsua_locations_sample.dat $outf # LT fi echo "Exiting amsua_obs.sh of AMSU-A workflow." diff --git a/SATELLITE/gsv_mod_data.sh b/SATELLITE/gsv_mod_data.sh index c84bd577d..28c1a1d30 100755 --- a/SATELLITE/gsv_mod_data.sh +++ b/SATELLITE/gsv_mod_data.sh @@ -82,8 +82,11 @@ fi cdo merge $gsv_depo/$cdate_s2$hour/t_$res.nc $gsv_depo/$cdate_s2$hour/q_$res.nc $gsv_depo/$cdate_s2$hour/clwc_$res.nc $gsv_depo/$cdate_s2$hour/pl.nc -lsm_static=$scriptdir/other_files/lsm_$res.grb1 #nc -zsurf_static=$scriptdir/other_files/z_surf_$res.grb1 #nc +##lsm_static=$scriptdir/other_files/lsm_$res.grb1 #nc LT +##zsurf_static=$scriptdir/other_files/z_surf_$res.grb1 #nc LT +lsm_static=other_files/lsm_$res.grb1 #nc AM +zsurf_static=other_files/z_surf_$res.grb1 #nc AM + u10=$gsv_depo/$cdate_s2$hour/10u_$res.nc u10c=$gsv_depo/$cdate_s2$hour/10u_${res}_cdo_copy.nc v10=$gsv_depo/$cdate_s2$hour/10v_$res.nc @@ -114,12 +117,16 @@ cdo -f nc copy $ci $cic intp_file=$gsv_depo/$cdate_s2$hour/ml.nc # vct_dat: get A and B coefficients of target vertical grid -vct_dat=$scriptdir/other_files/vct_91.dat +##vct_dat=$scriptdir/other_files/vct_91.dat # LT +vct_dat=other_files/vct_91.dat # AM # run python script: convert_pl2ml.py python3 convert_pl2ml.py $gsv_depo/$cdate_s2$hour/pl.nc $sp $vct_dat ${intp_file} $lat_S $lat_N $lon_W $lon_E - -$scriptdir/nc2grib.exe < nc2grib.exe << EOF ¶m infile3d = "$intp_file" file_u10 = "$gsv_depo/$cdate_s2$hour/10u_${res}_cdo_copy.nc" @@ -129,10 +136,10 @@ $scriptdir/nc2grib.exe <