Skip to content

Commit

Permalink
*Enable the atm_vi, merge, analysis and forecast tasks working proper…
Browse files Browse the repository at this point in the history
…ly with the regional moving nesting configuration.

*Use the same model_configure.tmp as the ufs-weather-model and use atparse to parse the template.
  • Loading branch information
BinLiu-NOAA committed Feb 26, 2022
1 parent a4feafe commit b333c5a
Show file tree
Hide file tree
Showing 8 changed files with 592 additions and 188 deletions.
6 changes: 3 additions & 3 deletions jobs/JHAFS_ANALYSIS
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ fi
# analysis for d02
if [ ${GSI_D02} = YES ]; then

export neststr="nest02."
export tilestr="tile2."
export nesttilestr="nest02.tile2."
export neststr=".nest02"
export tilestr=".tile2"
export nesttilestr=".nest02.tile2"
export DATA=${WORKhafs}/analysis_d02

export SCRUBDATA=${SCRUBDATA:-YES}
Expand Down
172 changes: 133 additions & 39 deletions parm/forecast/globnest/model_configure.tmp
Original file line number Diff line number Diff line change
@@ -1,57 +1,151 @@
start_year: YR
start_month: MN
start_day: DY
start_hour: H_R
start_year: @[SYEAR]
start_month: @[SMONTH]
start_day: @[SDAY]
start_hour: @[SHOUR]
start_minute: 0
start_second: 0
nhours_fcst: NHRS
dt_atmos: _dt_atmos_
nhours_fcst: @[FHMAX]
dt_atmos: @[DT_ATMOS]
calendar: 'julian'
restart_interval: _restart_interval_
restart_interval: @[RESTART_INTERVAL]
output_1st_tstep_rst: .false.

quilting: _quilting_
write_groups: _write_groups_
write_tasks_per_group: _write_tasks_per_group_
write_dopost: _write_dopost_
output_history: _output_history_
num_files: 2
filename_base: 'atm' 'sfc'
output_file: 'netcdf_parallel' 'netcdf'
quilting: @[QUILTING]
write_groups: @[WRITE_GROUP]
write_tasks_per_group: @[WRTTASK_PER_GROUP]
num_files: @[NUM_FILES]
filename_base: @[FILENAME_BASE]
output_file: @[OUTPUT_FILE]
write_dopost: @[WRITE_DOPOST]
output_history: @[OUTPUT_HISTORY]
ichunk2d: -1
jchunk2d: -1
ichunk3d: -1
jchunk3d: -1
kchunk3d: -1
ideflate: 1
nbits: 0
ideflate: @[IDEFLATE]
nbits: @[NBITS]

output_grid: global_latlon # gaussian_grid or global_latlon
imo: 1440
jmo: 721
output_grid: @[OUTPUT_GRID] # gaussian_grid, global_latlon, regional_latlon, rotated_latlon, lambert_conformal, cubed_sphere_grid
imo: @[IMO] # number of grid points along longitude/latitude direction
jmo: @[JMO] # needed for gaussian_grid or global_latlon
cen_lon: @[CEN_LON] # central longitude/latitude (degrees)
cen_lat: @[CEN_LAT] # needed for rotated_latlon, lambert_conformal
lon1: @[LON1] # longitude/latitude of lower-left corner
lat1: @[LAT1] # needed for regional_latlon, rotated_latlon, lambert_conformal
lon2: @[LON2] # longitude/latitude of upper-right corner
lat2: @[LAT2] # needed for regional_latlon, rotated_latlon
dlon: @[DLON] # grid spacing in longitude/latitude direction (degrees)
dlat: @[DLAT] # needed for regional_latlon, rotated_latlon
stdlat1: @[STDLAT1] # latitude of first/second standard parallel (degrees)
stdlat2: @[STDLAT2] # needed for lambert_conformal
nx: @[NX] # number of grid cells along x/y-axis
ny: @[NY] # needed for lambert_conformal
dx: @[DX] # grid cell size in x/y direction (meters)
dy: @[DY] # needed for lambert_conformal

<output_grid_02>
<output_grid_03>
<output_grid_04>
<output_grid_05>

output_grid: '_OUTPUT_GRID_'
cen_lon: _CEN_LON_ # central longitude
cen_lat: _CEN_LAT_ # central latitude
lon1: _LON1_ # longitude of lower-left
lat1: _LAT1_ # latitude of lower-left
lon2: _LON2_ # longitude of upper-right
lat2: _LAT2_ # latitude of upper-right
dlon: _DLON_
dlat: _DLAT_

output_grid: @[OUTPUT_GRID_2]
imo: @[IMO_2]
jmo: @[JMO_2]
cen_lon: @[CEN_LON_2]
cen_lat: @[CEN_LAT_2]
lon1: @[LON1_2]
lat1: @[LAT1_2]
lon2: @[LON2_2]
lat2: @[LAT2_2]
dlon: @[DLON_2]
dlat: @[DLAT_2]
stdlat1: @[STDLAT1_2]
stdlat2: @[STDLAT2_2]
nx: @[NX_2]
ny: @[NY_2]
dx: @[DX_2]
dy: @[DY_2]
</output_grid_02>
<output_grid_03>
output_grid: @[OUTPUT_GRID_3]
imo: @[IMO_3]
jmo: @[JMO_3]
cen_lon: @[CEN_LON_3]
cen_lat: @[CEN_LAT_3]
lon1: @[LON1_3]
lat1: @[LAT1_3]
lon2: @[LON2_3]
lat2: @[LAT2_3]
dlon: @[DLON_3]
dlat: @[DLAT_3]
stdlat1: @[STDLAT1_3]
stdlat2: @[STDLAT2_3]
nx: @[NX_3]
ny: @[NY_3]
dx: @[DX_3]
dy: @[DY_3]
</output_grid_03>
<output_grid_04>
output_grid: @[OUTPUT_GRID_4]
imo: @[IMO_4]
jmo: @[JMO_4]
cen_lon: @[CEN_LON_4]
cen_lat: @[CEN_LAT_4]
lon1: @[LON1_4]
lat1: @[LAT1_4]
lon2: @[LON2_4]
lat2: @[LAT2_4]
dlon: @[DLON_4]
dlat: @[DLAT_4]
stdlat1: @[STDLAT1_4]
stdlat2: @[STDLAT2_4]
nx: @[NX_4]
ny: @[NY_4]
dx: @[DX_4]
dy: @[DY_4]
</output_grid_04>
<output_grid_05>
output_grid: @[OUTPUT_GRID_5]
imo: @[IMO_5]
jmo: @[JMO_5]
cen_lon: @[CEN_LON_5]
cen_lat: @[CEN_LAT_5]
lon1: @[LON1_5]
lat1: @[LAT1_5]
lon2: @[LON2_5]
lat2: @[LAT2_5]
dlon: @[DLON_5]
dlat: @[DLAT_5]
stdlat1: @[STDLAT1_5]
stdlat2: @[STDLAT2_5]
nx: @[NX_5]
ny: @[NY_5]
dx: @[DX_5]
dy: @[DY_5]
</output_grid_05>
<output_grid_06>
output_grid: @[OUTPUT_GRID_6]
imo: @[IMO_6]
jmo: @[JMO_6]
cen_lon: @[CEN_LON_6]
cen_lat: @[CEN_LAT_6]
lon1: @[LON1_6]
lat1: @[LAT1_6]
lon2: @[LON2_6]
lat2: @[LAT2_6]
dlon: @[DLON_6]
dlat: @[DLAT_6]
stdlat1: @[STDLAT1_6]
stdlat2: @[STDLAT2_6]
nx: @[NX_6]
ny: @[NY_6]
dx: @[DX_6]
dy: @[DY_6]
</output_grid_06>

nfhout: 3
nfhmax_hf: -1
nfhout_hf: 3
nsout: -1
output_fh: -1
nfhout: @[NFHOUT] # Output frequency in hours after forecast hour nfhmax_hf
nfhmax_hf: @[NFHMAX_HF] # Number of forecast hours until output frequency nfhout takes affect
nfhout_hf: @[NFHOUT_HF] # Output frequency in hours until forecast hour nfhmax_hf
nsout: @[NSOUT] # Output frequency in time steps (positive values override nfhout and nfhout_hf)
output_fh: @[OUTPUT_FH] # Output forecast hours controlled by output_fh (see notes below)
# a) An array of output_fh means to output history files at those forecast time (e.g., "output_fh: 0 1 2 3 12 24 48")
# If the first elelment is zero, it means the first time step output
# b) If there are two elements in output_fh and the second one is -1, then the first element is output frequency. e.g.
# For example, "output_fh: 6 -1" will output the history file every 6 hours.
Loading

0 comments on commit b333c5a

Please sign in to comment.