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

Second round of major UPP documentation updates #698

Merged
merged 47 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
bbb3e3d
update upp_math to remove warnings
gspetro Apr 11, 2023
443165c
document members of kinds_mod.F
gspetro Apr 18, 2023
0cebd80
Merge branch 'NOAA-EMC:develop' into text/dox8.1a
gspetro-NOAA Apr 18, 2023
9ed3023
document members/return vals for native_endianness.f
gspetro Apr 18, 2023
baa5acd
basic documentation of GFIP3.f to remove warnings
gspetro Apr 19, 2023
77301ce
silence warnings for CTLBLK.f
gspetro Apr 19, 2023
cc89615
eliminate warnings for GET_BITS.f
gspetro Apr 19, 2023
4219b7b
switch SURFCE.f comments to fortran & silence warnings
gspetro Apr 19, 2023
e968625
silence warnings for FRZLVL.f and FRZLVL2.f
gspetro Apr 19, 2023
1520cf4
silence warnings on SMOOTH.f
gspetro Apr 19, 2023
79fc650
silence warnings on SELECT_CHANNELS.f
gspetro Apr 19, 2023
5eb4e1d
silence warnings on SCLFLD.f
gspetro Apr 19, 2023
6673321
silence warnings for retrieve_index.f
gspetro Apr 19, 2023
06165c0
silence warnings on PARA_RANGE.f
gspetro Apr 19, 2023
5d04afd
silence warnings on GFSPOST.F
gspetro Apr 20, 2023
2d2b43a
Merge branch 'NOAA-EMC:develop' into text/dox8.1a
gspetro-NOAA Apr 20, 2023
08afe2b
silence warnings on LFMFLD.f
gspetro Apr 20, 2023
9651243
Merge branch 'text/dox8.1a' of github.com:gspetro-NOAA/UPP into text/…
gspetro Apr 20, 2023
cf9ce9e
silence warnings on FILL_PSETFLD.f
gspetro Apr 20, 2023
2c59df7
silence warnings on EXCH_c_float.f
gspetro Apr 20, 2023
1a24b8d
silence warnings on DEWPOINT.f
gspetro Apr 20, 2023
15ed71a
update MDL2THANDPV.f
gspetro Apr 21, 2023
37f3cb7
updates to UPP_MATH.f and MDL2THANDPV.f
gspetro Apr 21, 2023
3366fb2
update kinds_mod.F
gspetro Apr 21, 2023
54ab301
update native_endianness.f
gspetro Apr 21, 2023
112ed03
silence warnings on UPP_PHYSICS.f
gspetro Apr 21, 2023
4f875a7
update MDL2STD_P.f
gspetro Apr 24, 2023
4ca641a
update GET_BITS.f
gspetro Apr 24, 2023
c9f9432
supress GFIP3.f warnings; update var defs
gspetro Apr 24, 2023
9ae1673
update var defs in GFIP3.f
gspetro Apr 24, 2023
e9618d5
update kinds_mod.F
gspetro Apr 24, 2023
a7a7063
update kinds_mod.F
gspetro Apr 24, 2023
9fbe93a
update retrieve_index.f
gspetro Apr 24, 2023
414e201
update GFIP3.f
gspetro Apr 24, 2023
5e28231
update SMOOTH.f
gspetro Apr 24, 2023
1727367
update SMOOTH.f
gspetro Apr 24, 2023
545b4a8
update native_endianness.f
gspetro Apr 24, 2023
b2f995e
silence warnings on LFMFLD_GFS.f; correct copy-paste errors
gspetro Apr 25, 2023
fe3faa8
update to head of develop
gspetro Apr 25, 2023
bf55fd4
update omega in GFSPOST.F
gspetro Apr 25, 2023
9cfc99a
update omega units in GFSPOST.F
gspetro Apr 25, 2023
5fba5cb
Merge branch 'NOAA-EMC:develop' into text/dox8.1a
gspetro-NOAA Apr 26, 2023
b7f5d6e
silence warnings on CALHEL2.f, CALHEL3.f, CALLCL.f, CALMCVG.f, CALPOT…
gspetro-NOAA Apr 27, 2023
ca42fce
Merge branch 'text/dox8.1a' of github.com:gspetro-NOAA/UPP into text/…
gspetro-NOAA Apr 27, 2023
1cca97a
Add FORTRAN_COMMENT_AFTER to Doxyfile.in
gspetro-NOAA Apr 28, 2023
8d1ea96
update CALMCVG var types
gspetro-NOAA Apr 28, 2023
cae5c9c
Merge branch 'text/dox8.1a' of github.com:gspetro-NOAA/UPP into text/…
gspetro-NOAA Apr 28, 2023
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
8 changes: 8 additions & 0 deletions docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,14 @@ FILTER_SOURCE_PATTERNS =

USE_MDFILE_AS_MAINPAGE = @abs_top_srcdir@/docs/sp_user_guide.md

# By default, all characters from position 72 are to be considered as comment.
# This prevents Doxygen from recognizing certain variables as undocumented
# because the variables are processed as comments.
# Setting FORTRAN_COMMENT_AFTER to a larger value makes it possible to
# process longer lines before the automatic comment starts.

FORTRAN_COMMENT_AFTER = 200

#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------
Expand Down
22 changes: 17 additions & 5 deletions sorc/ncep_post.fd/CALHEL2.f
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
!>
!> @param[in] LLOW Lower bound CAPE>=100 and CINS>=-250.
!> @param[in] LUPP Upper bound CAPE< 100 or CINS< -250; allows one to distinguish 0-3 km and 0-1 km values.
!> @param[in] DPTH Depth in meters over whcih helicity should be computed; allows one to distinguish 0-3 km and 0-1 km values.
!> @param[in] DEPTH Depth in meters over whcih helicity should be computed; allows one to distinguish 0-3 km and 0-1 km values.
!> @param[out] UST Estimated U Component (m/s) Of Storm motion.
!> @param[out] VST Estimated V Component (m/s) Of Storm motion.
!> @param[out] HELI Storm-relative heliciry (m**2/s**2).
!> @param[out] CANGLE Critical angle.
!> @param[out] USHR1 U Component (m/s) Of 0-1 km shear.
!> @param[out] VSHR1 V Component (m/s) Of 0-1 km shear.
!> @param[out] USHR6 U Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!> @param[out] VSHR6 V Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!> @var USHR1 U Component (m/s) Of 0-1 km shear.
!> @var VSHR1 V Component (m/s) Of 0-1 km shear.
!> @var USHR6 U Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!> @var VSHR6 V Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!>
!> ### Program history log:
!> Date | Programmer | Comments
Expand All @@ -42,6 +42,18 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Michael Baldwin W/NP2 @date 1994-08-22
!-----------------------------------------------------------------------
!> @brief Subroutine that computes storm relative helicity.
!>
!> @param[in] LLOW Lower bound CAPE>=100 and CINS>=-250.
!> @param[in] LUPP Upper bound CAPE< 100 or CINS< -250; allows one to distinguish 0-3 km and 0-1 km values.
!> @param[in] DEPTH Depth in meters over whcih helicity should be computed; allows one to distinguish 0-3 km and 0-1 km values.
!> @param[out] UST Estimated U Component (m/s) Of Storm motion.
!> @param[out] VST Estimated V Component (m/s) Of Storm motion.
!> @param[out] HELI Storm-relative heliciry (m**2/s**2).
!> @param[out] CANGLE Critical angle.
!>
!-----------------------------------------------------------------------
SUBROUTINE CALHEL2(LLOW,LUPP,DEPTH,UST,VST,HELI,CANGLE)

!
Expand Down
22 changes: 16 additions & 6 deletions sorc/ncep_post.fd/CALHEL3.f
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
!> @brief Subroutine that computes storm relative helicity.
!
!> This routine computes estimated storm motion and storm-relative
!> environmental helicity. (Davies-Jones et al 1990) the algorithm
!> environmental helicity. (Davies-Jones, et al., 1990) the algorithm
!> processd as follows.
!>
!> The storm motion computation no longer employs the Davies and Johns (1993)
Expand All @@ -18,11 +18,11 @@
!> @param[out] UST Estimated U Component (m/s) Of Storm motion.
!> @param[out] VST Estimated V Component (m/s) Of Storm motion.
!> @param[out] HELI Storm-relative heliciry (m**2/s**2).
!> @param[out] CANGLE Critical angle.
!> @param[out] USHR1 U Component (m/s) Of 0-1 km shear.
!> @param[out] VSHR1 V Component (m/s) Of 0-1 km shear.
!> @param[out] USHR6 U Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!> @param[out] VSHR6 V Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!> @var CANGLE Critical angle.
!> @var USHR1 U Component (m/s) Of 0-1 km shear.
!> @var VSHR1 V Component (m/s) Of 0-1 km shear.
!> @var USHR6 U Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!> @var VSHR6 V Component (m/s) Of 0-0.5 to 5.5-6.0 km shear.
!>
!> ### Program history log:
!> Date | Programmer | Comments
Expand All @@ -43,6 +43,16 @@
!> 2022-05-12 | E Colon | Resolved a bug which looped over the calculation of SRH at two fixed levels, erroneously doubling the magnitude.
!>
!> @author Michael Baldwin W/NP2 @date 1994-08-22
!-----------------------------------------------------------------------
!> @brief Subroutine that computes storm relative helicity.
!
!> @param[in] LLOW Lower bound CAPE>=100 and CINS>=-250.
!> @param[in] LUPP Upper bound CAPE< 100 or CINS< -250; allows one to distinguish 0-3 km and 0-1 km values.
!> @param[out] UST Estimated U Component (m/s) Of Storm motion.
!> @param[out] VST Estimated V Component (m/s) Of Storm motion.
!> @param[out] HELI Storm-relative heliciry (m**2/s**2).
!-----------------------------------------------------------------------

SUBROUTINE CALHEL3(LLOW,LUPP,UST,VST,HELI)

!
Expand Down
10 changes: 10 additions & 0 deletions sorc/ncep_post.fd/CALLCL.f
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Russ Treadon W/NP2 @date 1993-03-15
!-----------------------------------------------------------------------
!> @brief Subroutine that computes the lifting condensation level (LCL)
!> height (above ground level) and pressure in each column at mass points.
!>
!> @param[in] P1D Array of parcel pressures (Pa).
!> @param[in] T1D Array of parcel temperatures (K).
!> @param[in] Q1D Array of parcel specific humidities (kg/kg).
!> @param[out] PLCL Parcel Pressure at LCL (Pa).
!> @param[out] ZLCL Parcel AGL height at LCL (m).
!-----------------------------------------------------------------------
SUBROUTINE CALLCL(P1D,T1D,Q1D,PLCL,ZLCL)

!
Expand Down
16 changes: 12 additions & 4 deletions sorc/ncep_post.fd/CALMCVG.f
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
!> moisture convergence which is returned by this routine.
!></pre>
!>
!> @param[in] Q1D - Specific humidity at P-points (kg/kg).
!> @param[in] U1D - U wind component (m/s) at P-points.
!> @param[in] V1D - V wind component (m/s) at P-points.
!> @param[out] QCNVG - Moisture convergence (1/s) at P-points.
!> @param[in] Q1D real Specific humidity at P-points (kg/kg).
!> @param[in] U1D real U-wind component (m/s) at P-points.
!> @param[in] V1D real V-wind component (m/s) at P-points.
!> @param[out] QCNVG real Moisture convergence (1/s) at P-points.
!>
!> ### Program history log:
!> Date | Programmer | Comments
Expand All @@ -32,6 +32,14 @@
!> 2021-09-30 | J MENG | 2D DECOMPOSITION
!>
!> @author Russ Treadon W/NP2 @date 1993-01-22
!-----------------------------------------------------------------------
!> @brief Subroutine that computes moisture convergence.
!>
!> @param[in] Q1D real Specific humidity at P-points (kg/kg).
!> @param[in] U1D real U-wind component (m/s) at P-points.
!> @param[in] V1D real V-wind component (m/s) at P-points.
!> @param[out] QCNVG real Moisture convergence (1/s) at P-points.
!-----------------------------------------------------------------------
SUBROUTINE CALMCVG(Q1D,U1D,V1D,QCNVG)

!
Expand Down
7 changes: 7 additions & 0 deletions sorc/ncep_post.fd/CALPOT.f
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Russ Treadon W/NP2 @date 1992-12-24
!-----------------------------------------------------------------------
!> @brief Subroutine that computes potential temperature.
!>
!> @param[in] P1D pressures (Pa).
!> @param[in] T1D temperatures (K).
!> @param[out] THETA potential temperatures (K).
!-----------------------------------------------------------------------
SUBROUTINE CALPOT(P1D,T1D,THETA)

!
Expand Down
7 changes: 7 additions & 0 deletions sorc/ncep_post.fd/CALRCH.f
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Russ Treadon W/NP2 @date 1993-10-11
!-----------------------------------------------------------------------
!> @brief Subroutine that computes GRD RCH number.
!>
!> @param[in] EL Mixing length scale.
!> @param[out] RICHNO Gradient Richardson number.
!-----------------------------------------------------------------------

SUBROUTINE CALRCH(EL,RICHNO)

!
Expand Down
6 changes: 6 additions & 0 deletions sorc/ncep_post.fd/CALSTRM.f
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Russ Treadon W/NP2 @date 1992-12-22
!-----------------------------------------------------------------------
!> @brief Subroutine that computes geo streamfunction.
!>
!> @param[in] Z1D Geopotential height (m).
!> @param[out] STRM Geostrophic streamfunction.
!-----------------------------------------------------------------------
SUBROUTINE CALSTRM(Z1D,STRM)

!
Expand Down
7 changes: 6 additions & 1 deletion sorc/ncep_post.fd/CALTAU.f
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Russ Treadon W/NP2 @date 1993-09-01

!-----------------------------------------------------------------------
!> @brief Subroutine that computes U and V wind stresses.
!>
!> @param[out] TAUX Suface layer U component wind stress.
!> @param[out] TAUY Suface layer V component wind stress.
!-----------------------------------------------------------------------
SUBROUTINE CALTAU(TAUX,TAUY)

!
Expand Down
9 changes: 8 additions & 1 deletion sorc/ncep_post.fd/CALTHTE.f
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
!> 2021-09-02 | Bo Cui | Decompose UPP in X direction
!>
!> @author Russ Treadon W/NP2 @date 1993-06-18

!--------------------------------------------------------------------------------------
!> @brief Subroutine that computes Theta-E.
!>
!> @param[in] P1D pressure (Pa).
!> @param[in] T1D temperature (K).
!> @param[in] Q1D specific humidity(kg/kg).
!> @param[out] THTE Theta-E (K).
!--------------------------------------------------------------------------------------
SUBROUTINE CALTHTE(P1D,T1D,Q1D,THTE)

!
Expand Down
5 changes: 5 additions & 0 deletions sorc/ncep_post.fd/CALUPDHEL.f
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
!> 2022-05-12 | E James | Adding a check for extremely large positive or negative UH values
!>
!> @author M Pyle W/NP2 @date 2007-10-22
!--------------------------------------------------------------------------------------
!> @brief Subroutine that computes the updraft helicity.
!>
!> @param[out] UPDHEL Updraft helicity (m^2/s^2).
!--------------------------------------------------------------------------------------
SUBROUTINE CALUPDHEL(UPDHEL)

!
Expand Down
35 changes: 32 additions & 3 deletions sorc/ncep_post.fd/CALWXT_BOURG.f
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!> @file
!> @brief Subroutine that calculate precipitation type (Bourgouin).
!> @brief Subroutine that calculates precipitation type (Bourgouin).
!>
!> This routine computes precipitation type.
!> using a decision tree approach that uses the so-called
Expand Down Expand Up @@ -35,6 +35,7 @@
!> ptype=4 freezing rain/mix with freezing rain
!> ptype=8 rain
!></pre>
!> @param[in] me integer Identifier for the processor used in the current instance.
!>
!> ### Program history log:
!> Date | Programmer | Comments
Expand All @@ -50,8 +51,36 @@
!> and layer lmh = bottom
!>
!> @author M Baldwin np22 @date 1999-07-06

subroutine calwxt_bourg_post(im,ista_2l,iend_2u,ista,iend,jm,jsta_2l,jend_2u,jsta,jend,lm,lp1, &
!--------------------------------------------------------------------------------------
!> @brief calwxt_bourg_post Subroutine that calculates precipitation type (Bourgouin).
!>
!> @param[in] im integer i dimension.
!> @param[in] ista_2l integer i dimension start point (including haloes).
!> @param[in] iend_2u integer i dimension end point (including haloes).
!> @param[in] ista integer i dimension start point (excluding haloes).
!> @param[in] iend integer i dimension end point (excluding haloes).
!> @param[in] jm integer j dimension.
!> @param[in] jsta_2l integer j dimension start point (including haloes).
!> @param[in] jend_2u integer j dimension end point (including haloes).
!> @param[in] jsta integer j dimension start point (excluding haloes).
!> @param[in] jend integer j dimension end point (excluding haloes).
!> @param[in] lm integer k dimension.
!> @param[in] lp1 integer k dimension plus 1.
!> @param[in] iseed integer random number seed.
!> @param[in] g real gravity (m/s**2).
!> @param[in] pthresh real precipitation threshold (m).
!> @param[in] t real(im,jsta_2l:jend_2u,lm) mid layer temp (K).
!> @param[in] q real(im,jsta_2l:jend_2u,lm) specific humidity (kg/kg).
!> @param[in] pmid real(im,jsta_2l:jend_2u,lm) mid layer pressure (Pa).
!> @param[in] pint real(im,jsta_2l:jend_2u,lp1) interface pressure (Pa).
!> @param[in] lmh real(im,jsta_2l:jend_2u) max number of layers.
!> @param[in] prec real(im,jsta_2l:jend_2u) precipitation (m).
!> @param[in] zint real(im,jsta_2l:jend_2u,lp1) interface height (m).
!> @param[out] ptype integer(im,jm) instantaneous weather type () acts like a 4 bit binary 1111 = rain/freezing rain/ice pellets/snow.
!> @param[in] me integer Identifier for the processor used in the current instance.
!------------------------------------------------------------------------------------------------------------
subroutine calwxt_bourg_post(im,ista_2l,iend_2u,ista,iend,jm, &
& jsta_2l,jend_2u,jsta,jend,lm,lp1, &
& iseed,g,pthresh, &
& t,q,pmid,pint,lmh,prec,zint,ptype,me)
implicit none
Expand Down