Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-organize structure of ex-script for forecast task #121

Merged
merged 18 commits into from
Jul 1, 2024
Merged
Prev Previous commit
Next Next commit
update forecast script
  • Loading branch information
chan-hoo committed Jun 27, 2024
commit 95052a58f6e6d2bb60d85ffc3bb9fd074c595720
62 changes: 62 additions & 0 deletions parm/datm_cdeps_lnd_gswp3_rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#
# DATM_CDEPS_NOAHMP_GSWP test
#

export TEST_DESCR="DATM_CDEPS_NOAHMP_GSWP3_RST - control restart"

export CNTL_DIR="datm_cdeps_lnd_gswp3"

export LIST_FILES="ufs.cpld.lnd.out.2000-01-02-00000.tile1.nc \
ufs.cpld.lnd.out.2000-01-02-00000.tile2.nc \
ufs.cpld.lnd.out.2000-01-02-00000.tile3.nc \
ufs.cpld.lnd.out.2000-01-02-00000.tile4.nc \
ufs.cpld.lnd.out.2000-01-02-00000.tile5.nc \
ufs.cpld.lnd.out.2000-01-02-00000.tile6.nc"

export_datm_cdeps

export SYEAR=2000
export SMONTH=01
export SDAY=03
export SHOUR=00
export FHMAX=24
export FHROT=0

export DATM_IN_CONFIGURE=datm_in.IN
export MESH_ATM=fv1.9x2.5_141008_ESMFmesh.nc
export atm_datamode=CLMNCEP
export ATM_NX_GLB=144
export ATM_NY_GLB=96

export DATM_STREAM_CONFIGURE=datm.streams.multi.IN
export MESH_ATM_DATA="INPUT/clmforc.GSWP3.c2011.0.5x0.5.TPQWL.SCRIP.210520_ESMFmesh.nc"
export MESH_ATM_TOPO="INPUT/topodata_0.9x1.SCRIP.210520_ESMFmesh.nc"
export SDATE=1999
export EDATE=2000
export DATA_ATM01="\"INPUT/clmforc.GSWP3.c2011.0.5x0.5.Solr.1999-12.nc\" \"INPUT/clmforc.GSWP3.c2011.0.5x0.5.Solr.2000-01.nc\""
export DATA_ATM02="\"INPUT/clmforc.GSWP3.c2011.0.5x0.5.Prec.1999-12.nc\" \"INPUT/clmforc.GSWP3.c2011.0.5x0.5.Prec.2000-01.nc\""
export DATA_ATM03="\"INPUT/clmforc.GSWP3.c2011.0.5x0.5.TPQWL.1999-12.nc\" \"INPUT/clmforc.GSWP3.c2011.0.5x0.5.TPQWL.2000-01.nc\""
export DATA_ATM04="\"INPUT/topodata_0.9x1.25_USGS_070110_stream_c151201.nc\""

export UFS_CONFIGURE="ufs.configure.atm_lnd.IN"
export med_model="cmeps"
export atm_model="datm"
export lnd_model="noahmp"
export CPLMODE="ufs.nfrac.aoflux"
export RUNTYPE="continue"
export READRESTART=.false.
export ATM_compute_tasks=144
export OCN_tasks=0
export ICE_tasks=0
export LND_tasks=144
export lnd_ic_type='custom'
export CALC_SNET=.true.
export layout_x=3
export layout_y=8
export mosaic_file="INPUT/C96_mosaic.nc"
export coupling_interval_sec=3600
export TOPOEDITS=""
export WARM_START=.true.

export RESTART_FILE_SUFFIX_SECS="${SYEAR}-${SMONTH}-${SDAY}-$(printf "%05d" $(( (${FHROT}+ ${SHOUR})*3600 )))"
export FV3_RUN="lnd_datm_cdeps_gswp.IN noahmp_run.IN"
4 changes: 2 additions & 2 deletions parm/templates/template.datm.streams
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ tInterpAlgo01: coszen
readMode01: single
dtlimit01: 1.5
stream_offset01: 0
yearFirst01: 1999
yearFirst01: 1999
yearLast01: 2000
yearAlign01: 1999
stream_vectors01: null
@@ -32,7 +32,7 @@ stream_data_variables02: "PRECTmms Faxa_precn"

taxmode03: limit
mapalgo03: bilinear
tInterpAlgo03: linear
tInterpAlgo03: linear
readMode03: single
dtlimit03: 1.5
stream_offset03: 0
119 changes: 16 additions & 103 deletions parm/templates/template.fd_ufs.yaml
Original file line number Diff line number Diff line change
@@ -92,7 +92,6 @@
description: atmosphere export
#
- standard_name: Faxa_rainl
alias: inst_prec_rate_large
canonical_units: kg m-2 s-1
description: atmosphere export
#
@@ -102,12 +101,10 @@
description: atmosphere export
#
- standard_name: Faxa_snowc
alias: inst_fprec_rate_conv
canonical_units: kg m-2 s-1
description: atmosphere export
#
- standard_name: Faxa_snowl
alias: inst_fprec_rate_large
canonical_units: kg m-2 s-1
description: atmosphere export
#
@@ -197,6 +194,16 @@
canonical_units: m s-1
description: atmosphere export - bottom layer meridional wind
#
- standard_name: Sa_ua
alias: inst_zonal_wind_height_lowest_from_phys
canonical_units: m s-1
description: atmosphere export - bottom layer zonal wind
#
- standard_name: Sa_va
alias: inst_merid_wind_height_lowest_from_phys
canonical_units: m s-1
description: atmosphere export - bottom layer meridional wind
#
- standard_name: Sa_wspd
alias: inst_wind_speed_height_lowest
canonical_units: m s-1
@@ -1055,76 +1062,43 @@
#
- standard_name: u
canonical_units: m s-1
alias: u_component_of_native_D_grid_wind
#
- standard_name: v
canonical_units: m s-1
alias: v_component_of_native_D_grid_wind
#
- standard_name: ua
canonical_units: m s-1
alias: eastward_wind
#
- standard_name: va
canonical_units: m s-1
alias: northward_wind
#
- standard_name: t
canonical_units: K
alias: air_temperature
#
- standard_name: delp
canonical_units: Pa
alias: air_pressure_thickness
#
- standard_name: ps
canonical_units: Pa
alias: surface_pressure
#
- standard_name: sphum
canonical_units: kg kg-1
alias: specific_humidity
#
- standard_name: ice_wat
canonical_units: kg kg-1
alias: cloud_liquid_ice
#
- standard_name: liq_wat
canonical_units: kg kg-1
alias: cloud_liquid_water
#
- standard_name: rainwat
canonical_units: kg kg-1
alias: rain_water
#
- standard_name: snowwat
canonical_units: kg kg-1
alias: snow_water
#
- standard_name: graupel
canonical_units: kg kg-1
alias: graupel
#
- standard_name: o3mr
canonical_units: kg kg-1
alias: ozone_mass_mixing_ratio
#
- standard_name: phis
canonical_units: m2 s-2
alias: sfc_geopotential_height_times_grav
#
- standard_name: u_srf
canonical_units: m s-1
alias: surface_eastward_wind
#
- standard_name: v_srf
canonical_units: m s-1
alias: surface_northward_wind
#
#
- standard_name: t2m
canonical_units: K
alias: surface_temperature
#
- standard_name: slmsk
canonical_units: flag
@@ -1133,7 +1107,6 @@
- standard_name: weasd
canonical_units: mm
description: water equiv of acc snow depth over land and sea ice
alias: sheleg
#
- standard_name: tsea
canonical_units: K
@@ -1147,11 +1120,9 @@
canonical_units: index
description: soil type
#
- standard_name: Sa_vfrac
- standard_name: vfrac
canonical_units: frac
description: areal fractional cover of green vegetation
- standard_name: Sa_vfrac
alias: vfrac
#
- standard_name: stc
canonical_units: K
@@ -1169,11 +1140,9 @@
canonical_units: ratio
description: fm at 10m - Ratio of sigma level 1 wind and 10m wind
#
- standard_name: Sa_zorl
- standard_name: zorl
canonical_units: cm
description: composite surface roughness in cm
- standard_name: Sa_zorl
alias: zorl
#
- standard_name: t2m
canonical_units: K
@@ -1184,7 +1153,6 @@
#-----------------------------------
#
- standard_name: Sl_lfrac
alias: land_fraction
canonical_units: 1
description: land export
#
@@ -1200,67 +1168,12 @@
canonical_units: 1
description: AOD
#
- standard_name: Sl_sfrac
alias: inst_snow_area_fraction_lnd
canonical_units: 1
description: land export
#
- standard_name: Sl_tref
alias: inst_temp_height2m_lnd
canonical_units: K
description: mediator export to glc - no levation classes
#
- standard_name: Sl_qref
alias: inst_spec_humid_height2m_lnd
canonical_units: kg kg-1
description: land export
#
- standard_name: Sl_q
alias: inst_spec_humid_lnd
canonical_units: kg kg-1
description: land export
#
- standard_name: Fall_lat
alias: inst_laten_heat_flx_lnd
canonical_units: kg kg-1 m s-1
alias: mean_laten_heat_flx_lnd_to_atm
canonical_units: W m-2
description: land export to atm - atm/lnd latent heat flux
#
- standard_name: Fall_sen
alias: inst_sensi_heat_flx_lnd
canonical_units: K m s-1
description: land export to atm - atm/lnd sensible heat flux
#
- standard_name: Fall_evap
alias: inst_potential_laten_heat_flx_lnd
alias: mean_sensi_heat_flx_lnd_to_atm
canonical_units: W m-2
description: land export
#
- standard_name: Fall_gflx
alias: inst_upward_heat_flux_lnd
canonical_units: W m-2
description: land export
#
- standard_name: Fall_roff
alias: inst_runoff_rate_lnd
canonical_units: kg m-2 s-1
description: land export
#
- standard_name: Fall_soff
alias: inst_subsurface_runoff_rate_lnd
canonical_units: kg m-2 s-1
description: land export
#
- standard_name: Sl_cmm
alias: inst_drag_wind_speed_for_momentum
canonical_units: m s-1
description: land export
#
- standard_name: Sl_chh
alias: inst_drag_mass_flux_for_heat_and_moisture
canonical_units: kg m-2 s-1
description: land export
#
- standard_name: Sl_zvfun
alias: inst_func_of_roughness_length_and_vfrac
canonical_units: 1
description: land export
description: land export to atm - atm/lnd sensible heat flux
1 change: 0 additions & 1 deletion parm/templates/template.ufs.configure
Original file line number Diff line number Diff line change
@@ -122,4 +122,3 @@ ALLCOMP_attributes::
orb_mvelp = 1.e36
orb_obliq = 1.e36
::

25 changes: 23 additions & 2 deletions scripts/exlandda_forecast.sh
Original file line number Diff line number Diff line change
@@ -35,6 +35,29 @@ if [[ ${ATMOS_FORC} == "gswp3" ]]; then
echo '************************************************'
echo 'running the forecast model'

TEST_NAME=datm_cdeps_lnd_gswp3
TEST_NAME_RST=datm_cdeps_lnd_gswp3_rst
PATHRT=${HOMElandda}/sorc/ufs_model.fd/tests
RT_COMPILER=${RT_COMPILER:-intel}
ATOL="1e-7"

cp $PARMlandda/$TEST_NAME_RST ${PATHRT}/tests/$TEST_NAME_RST
source ${PATHRT}/rt_utils.sh
source ${PATHRT}/default_vars.sh
source ${PATHRT}/tests/$TEST_NAME_RST
source ${PATHRT}/atparse.bash

# RTPWD=${RTPWD:-${FIXlandda}/test_base/${TEST_NAME}_intel}
# INPUTDATA_ROOT=${INPUTDATA_ROOT:-${FIXlandda}/UFS_WM}

# echo "RTPWD= $RTPWD"
# echo "INPUTDATA_ROOT= $INPUTDATA_ROOT"

# if [[ ! -d ${INPUTDATA_ROOT} ]] || [[ ! -d ${RTPWD} ]]; then
# echo "Error: cannot find either folder for INPUTDATA_ROOT or RTPWD, please check!"
# exit 1
# fi

# modify some env variables - reduce core usage
export ATM_compute_tasks=0
export ATM_io_tasks=1
@@ -98,7 +121,6 @@ if [[ ${ATMOS_FORC} == "gswp3" ]]; then

mkdir -p INPUT
cd INPUT

ln -nsf ${FIXlandda}/DATM_input_data/${ATMOS_FORC}/* .
for itile in {1..6}
do
@@ -114,7 +136,6 @@ if [[ ${ATMOS_FORC} == "gswp3" ]]; then
ln -nsf ${FIXlandda}/FV3_fix_tiled/C${RES}/C${RES}_grid.tile${itile}.nc .
ln -nsf ${FIXlandda}/FV3_fix_tiled/C${RES}/grid_spec.nc C${RES}_mosaic.nc
done

cd -

# start runs