Skip to content

Commit b98f858

Browse files
committed
Merge branch 'release-v4.2'
This merge finalizes the v4.2 release by adding changes from the 'release-v4.2' branch onto the 'master' branch. * release-v4.2: Fix scaling of negative starting latitude for Gaussian grids in g2print Add configuration stanza for PGI compilers on Linux/POWER9 Add -qufmt=be to FFLAGS and F77FLAGS for XL/POWER/Linux configuration stanza Fix inconsistent kind types of arguments to MIN/MAX in module_map_utils Add missing category 21 for landmask calculation with modis_15s_lake land use Fix scaling of starting latitude in GRIB2 datasets on a Gaussian grid Initialize arrays in calc_ecmwf_p to avoid potential error in GHT calculation Update version number to 4.2 31 MB, not 15.5 MB size domain 252 does not have sufficient data, domain 130 does change the path and interp option as default add new irrigation dataset to table update GRIB2 parameters based on newer version RAP and HRRR models at NCEP
2 parents b9cfb7a + 1292d42 commit b98f858

File tree

12 files changed

+55
-19
lines changed

12 files changed

+55
-19
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
WRF Pre-Processing System Version 4.1
1+
WRF Pre-Processing System Version 4.2
22

33
http://www2.mmm.ucar.edu/wrf/users/
44

arch/configure.defaults

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,35 @@ SFC = xlf2003_r
1111
CC = mpicc
1212
SCC = xlc_r
1313
LD = $(FC)
14-
FFLAGS = -qfree=f90
15-
F77FLAGS = -qfixed
14+
FFLAGS = -qfree=f90 -qufmt=be
15+
F77FLAGS = -qfixed -qufmt=be
1616
FNGFLAGS = $(FFLAGS)
1717
LDFLAGS =
1818
CFLAGS =
1919
CPP = cpp -P -traditional
2020
CPPFLAGS = -Uvector -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
2121
ARFLAGS =
22+
########################################################################################################################
23+
#ARCH Linux ppc64le POWER Linux, PGI compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
24+
#
25+
COMPRESSION_LIBS = CONFIGURE_COMP_L
26+
COMPRESSION_INC = CONFIGURE_COMP_I
27+
FDEFS = CONFIGURE_FDEFS
28+
NCARG_LIBS =
29+
NCARG_LIBS2 =
30+
FC = mpifort
31+
SFC = pgfortran
32+
CC = mpicc
33+
SCC = pgcc
34+
LD = $(FC)
35+
FFLAGS = -Mfree -byteswapio
36+
F77FLAGS = -Mfixed -byteswapio
37+
FNGFLAGS = $(FFLAGS)
38+
LDFLAGS =
39+
CFLAGS =
40+
CPP = cpp -P -traditional
41+
CPPFLAGS = -Uvector -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
42+
ARFLAGS =
2243

2344
########################################################################################################################
2445
#ARCH Linux ppc64 BG bglxf compiler with blxlc # dmpar

compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ endif
112112
# Print out WPS version, system info, and compiler/version
113113
echo "============================================================================================== "
114114
echo " "
115-
echo Version 4.1
115+
echo Version 4.2
116116
echo " "
117117
uname -a
118118
echo " "

geogrid/GEOGRID.TBL.ARW

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ name=LANDUSEF
3333
landmask_water = ssib_10m:16 # Calculate a landmask from this field
3434
landmask_water = ssib_5m:16 # Calculate a landmask from this field
3535
landmask_water = modis_15s:17 # Calculate a landmask from this field
36-
landmask_water = modis_15s_lake:17 # Calculate a landmask from this field
36+
landmask_water = modis_15s_lake:17,21 # Calculate a landmask from this field
3737
landmask_water = modis_30s:17 # Calculate a landmask from this field
3838
landmask_water = modis_30s_lake:17,21 # Calculate a landmask from this field
3939
landmask_water = usgs_30s:16 # Calculate a landmask from this field
@@ -488,3 +488,12 @@ name = SANDFRAC
488488
rel_path = default:sandfrac_5m/
489489
flag_in_output=FLAG_SANDFRAC
490490
===============================
491+
name=IRRIGATION
492+
priority=1
493+
optional=yes
494+
dest_type=continuous
495+
interp_option=default:average_gcell(0.0)+average_4pt+nearest_neighbor
496+
masked = water
497+
fill_missing = 0.
498+
rel_path=default:irrigation/fao/
499+
===============================

geogrid/src/module_map_utils.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ SUBROUTINE ijll_ps(i, j, proj, lat, lon)
805805
ELSE
806806
gi2 = (proj%rebydx * scale_top)**2.
807807
lat = deg_per_rad * proj%hemi * ASIN((gi2-r2)/(gi2+r2))
808-
arccos = ACOS(MIN(MAX(xx/SQRT(r2),-1.0),1.0))
808+
arccos = ACOS(MIN(MAX(xx/SQRT(r2),-1.0_HIGH),1.0_HIGH))
809809
IF (yy .GT. 0) THEN
810810
lon = reflon + deg_per_rad * arccos
811811
ELSE

geogrid/src/process_tile_module.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ subroutine process_tile(which_domain, grid_type, dynopt, &
300300
end if
301301

302302
! Initialize the output module now that we have the corner point lats/lons
303-
call output_init(which_domain, 'OUTPUT FROM GEOGRID V4.1', '0000-00-00_00:00:00', grid_type, dynopt, &
303+
call output_init(which_domain, 'OUTPUT FROM GEOGRID V4.2', '0000-00-00_00:00:00', grid_type, dynopt, &
304304
corner_lats, corner_lons, &
305305
start_dom_i, end_dom_i, start_dom_j, end_dom_j, &
306306
start_patch_i, end_patch_i, start_patch_j, end_patch_j, &

metgrid/src/input_module.F

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ subroutine read_global_attrs(title, start_date, grid_type, dyn_opt,
427427
#endif
428428

429429
call ext_get_dom_ti_char ('TITLE', title)
430-
if (index(title,'GEOGRID V4.1') /= 0) then
430+
if (index(title,'GEOGRID V4.2') /= 0) then
431+
wps_version = 4.2
432+
else if (index(title,'GEOGRID V4.1') /= 0) then
431433
wps_version = 4.1
432434
else if (index(title,'GEOGRID V4.0.3') /= 0) then
433435
wps_version = 4.03

metgrid/src/process_domain_module.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ subroutine process_single_met_time(do_const_processing, &
876876
! now we simply output every field from the storage module.
877877
!
878878

879-
title = 'OUTPUT FROM METGRID V4.1'
879+
title = 'OUTPUT FROM METGRID V4.2'
880880

881881
! Initialize the output module for this domain and time
882882
call mprintf(.true.,LOGFILE,'Initializing output module.')

ungrib/Variable_Tables/Vtable.RAP.hybrid.ncep

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ Param| Type |Level1|Level2| Name | Units | Description
99
34 | 109 | * | | VV | m s-1 | V | 0 | 2 | 3 | 105 |
1010
153 | 109 | * | | QC | kg kg-1 | Cloud water mixing ratio | 0 | 1 | 22 | 105 |
1111
170 | 109 | * | | QR | kg kg-1 | Rain water mixing ratio | 0 | 1 | 24 | 105 |
12-
58 | 109 | * | | QI | kg kg-1 | Ice mixing ratio | 0 | 6 | 0 | 105 |
12+
58 | 109 | * | | QI | kg kg-1 | Ice mixing ratio | 0 | 1 | 82 | 105 |
1313
171 | 109 | * | | QS | kg kg-1 | Snow water mixing ratio | 0 | 1 | 25 | 105 |
1414
179 | 109 | * | | QG | kg kg-1 | Graupel mixing ratio | 0 | 1 | 32 | 105 |
15-
148 | 107 | * | | QNR | kg-1 | Rain number concentration | 0 | 3 | 195 | 105 |
16-
198 | 109 | * | | QNI | kg-1 | Ice number concentration | 0 | 1 | 207 | 105 |
15+
153 | 109 | * | | QNR | kg-1 | Rain number concentration | 0 | 1 | 100 | 105 |
16+
255 | 109 | * | | QNC | kg-1 | Cloud number concentration | 0 | 6 | 28 | 105 |
17+
198 | 109 | * | | QNI | kg-1 | Ice number concentration | 0 | 6 | 29 | 105 |
18+
157 | 107 | * | | QNWFA | kg-1 | Water-fr. aerosol number concentration | 0 | 13 | 193 | 105 |
19+
156 | 107 | * | | QNIFA | kg-1 | Ice-fr. aerosol number concentration | 0 | 13 | 192 | 105 |
1720
| 109 | * | | RH | % | Relative Humidity | 0 | 1 | | 105 |
1821
11 | 105 | 2 | | TT | K | Temperature at 2 m | 0 | 0 | 0 | 103 |
1922
51 | 105 | 2 | | SPECHUMD | kg kg-1 | Specific Humidity at 2 m | 0 | 1 | 0 | 103 |
20-
| 105 | 2 | | RH | % | Relative Humidity at 2 m | 0 | 1 | | 103 |
23+
52 | 105 | 2 | | RH | % | Relative Humidity at 2 m | 0 | 1 | 1 | 103 |
2124
33 | 105 | 10 | | UU | m s-1 | U at 10 m | 0 | 2 | 2 | 103 |
2225
34 | 105 | 10 | | VV | m s-1 | V at 10 m | 0 | 2 | 3 | 103 |
2326
1 | 1 | 0 | | PSFC | Pa | Surface Pressure | 0 | 3 | 0 | 1 |
@@ -58,9 +61,8 @@ Param| Type |Level1|Level2| Name | Units | Description
5861
# Vtable for the Rapid refresh (RAP) hybrid-vertical coordinate grib2 files on the ncep server.
5962
# ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/rap/prod/rap.ccyymmdd/
6063
#
61-
# rap.txxz.awp252bgrbfhh.grib2 20km conus 17901 Kb (approx. size)
62-
# rap.txxz.awp130bgrbfhh.grib2 13km conus 34462 Kb
64+
# rap.txxz.awp130bgrbfhh.grib2 13km conus 31 MB (approximate size)
6365
#
64-
# As of 1 June 2016,
65-
# hourly to 18-hours
66+
# As of 20 April, 2020
67+
# hourly to 21 hours
6668
# Level 1 is near the surface, level 50 is the top.

ungrib/src/g2print.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ SUBROUTINE r_grib2(junit, gribflnm, hdate, &
562562
endif
563563

564564
! Scale lat/lon values to 0-180, default range is 1e6.
565-
if (map%lat1.ge.scale_factor) then
565+
if (abs(map%lat1).ge.scale_factor) then
566566
map%lat1 = map%lat1/scale_factor
567567
endif
568568
if (map%lon1.ge.scale_factor) then

0 commit comments

Comments
 (0)