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

Change GRIB2 parameter names and vertical levels for ocean/ice post #2611

Merged
merged 3 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parm/post/oceanice_products.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ocean:
cosvar: "cos_rot"
angvar: ""
{% if model_grid == 'mx025' or model_grid == 'mx050' or model_grid == 'mx100' %}
ocean_levels: [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225.86945, 241.06255, 266.5239, 308.7874, 373.9288, 467.3998, 593.87915, 757.1453, 959.97325, 1204.059, 1489.9735, 1817.1455, 2183.879, 2587.3995, 3023.9285, 3488.7875, 3976.524, 4481.0625]
ocean_levels: [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 226, 241, 267, 309, 374, 467, 594, 757, 960, 1204, 1490, 1817, 2184, 2587, 3024, 3489, 3977, 4481]
{% elif model_grid == 'mx500' %}
ocean_levels: [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 225.86945, 241.06255, 266.5239]
ocean_levels: [5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155, 165, 175, 185, 195, 205, 215, 226, 241, 267]
{% endif %}
subset: ['SSH', 'SST', 'SSS', 'speed', 'MLD_003', 'latent', 'sensible', 'SW', 'LW', 'LwLatSens', 'Heat_PmE', 'SSU', 'SSV', 'taux', 'tauy', 'temp', 'so', 'uo', 'vo']
data_in:
Expand Down
22 changes: 11 additions & 11 deletions ush/oceanice_nc2grib2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ function _ice_nc2grib2 {
# tables in wgrib2 v2.0.8:

# -import_netcdf "${infile}" "hs_h" "0:1:${latlon_dims}" \
# -set_var ??? -set center 7 \
# -set_var SNVOLSI -set center 7 \
aerorahul marked this conversation as resolved.
Show resolved Hide resolved
# -set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
# -set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
# -import_netcdf "${infile}" "frzmlt_h" "0:1:${latlon_dims}" \
# -set_var ??? -set center 7 \
# -set_var FRZMLTPOT -set center 7 \
# -set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
# -set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
# -import_netcdf "${infile}" "albsni_h" "0:1:${latlon_dims}" \
# -set_var ALBICE -set center 7 -rpn "100.0:/" \
# -set_var ALBDOICE -set center 7 -rpn "100.0:/" \
# -set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
# -set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
# -import_netcdf "${infile}" "mlt_onset_h" "0:1:${latlon_dims}" \
# -set_var ??? -set center 7 \
# -set_var MLTDATE -set center 7 \
# -set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
# -set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
# -import_netcdf "${infile}" "frz_onset_h" "0:1:${latlon_dims}" \
# -set_var ??? -set center 7 \
# -set_var FRZDATE -set center 7 \
# -set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
# -set_scaling same same -set_grib_type c1 -grib_out "${outfile}"

Expand Down Expand Up @@ -121,11 +121,11 @@ function _ocean2D_nc2grib2 {
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
-import_netcdf "${infile}" "SW" "0:1:${latlon_dims}" \
-set_var DSWRF -set center 7 \
-set_var NSWRF -set center 7 \
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
-import_netcdf "${infile}" "LW" "0:1:${latlon_dims}" \
-set_var DLWRF -set center 7 \
-set_var NLWRF -set center 7 \
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out "${outfile}" \
-import_netcdf "${infile}" "LwLatSens" "0:1:${latlon_dims}" \
Expand Down Expand Up @@ -187,22 +187,22 @@ function _ocean3D_nc2grib2 {
${WGRIB2} "${template}" \
-import_netcdf "${infile}" "temp" "0:1:${zl}:1:${latlon_dims}" \
-set_var WTMP -set center 7 -rpn "273.15:+" \
-set_lev "${depth} m below water surface" \
-set_lev "${depth} m below sea level" \
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out tmp.gb2 \
-import_netcdf "${infile}" "so" "0:1:${zl}:1:${latlon_dims}" \
-set_var SALIN -set center 7 \
-set_lev "${depth} m below water surface" \
-set_lev "${depth} m below sea level" \
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out tmp.gb2 \
-import_netcdf "${infile}" "uo" "0:1:${zl}:1:${latlon_dims}" \
-set_var UOGRD -set center 7 \
-set_lev "${depth} m below water surface" \
-set_lev "${depth} m below sea level" \
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out tmp.gb2 \
-import_netcdf "${infile}" "vo" "0:1:${zl}:1:${latlon_dims}" \
-set_var VOGRD -set center 7 \
-set_lev "${depth} m below water surface" \
-set_lev "${depth} m below sea level" \
-set_date "${current_cycle}" -set_ftime "${aperiod} hour ave fcst" \
-set_scaling same same -set_grib_type c1 -grib_out tmp.gb2

Expand Down
Loading