← Back to Documentation Home
CCPP SciDoc v8.0.0  v8.0.0
Common Community Physics Package Developed at DTC
 
Loading...
Searching...
No Matches
rrtmgp_sampling Module Reference

This module provides a simple implementation of sampling for the Monte Carlo Independent Pixel Approximation (McICA, doi:10.1029/2002jd003322) More...

Functions/Subroutines

character(len=128) function, public draw_samples (cloud_mask, do_twostream, clouds, clouds_sampled)
 Apply a T/F sampled cloud mask to cloud optical properties defined by band to produce McICA-sampled cloud optical properties.
 
subroutine, public sampled_mask (randoms, cloud_frac, cloud_mask, overlap_param, randoms2)
 Generate a McICA-sampled cloud mask.
 

Detailed Description

This module provides a simple implementation of sampling for the Monte Carlo Independent Pixel Approximation (McICA, doi:10.1029/2002jd003322)

Function/Subroutine Documentation

◆ draw_samples()

character(len=128) function, public rrtmgp_sampling::draw_samples ( logical, dimension(:,:,:), intent(in)  cloud_mask,
logical, intent(in)  do_twostream,
class(ty_optical_props_arry), intent(in)  clouds,
class(ty_optical_props_arry), intent(inout)  clouds_sampled 
)

Apply a T/F sampled cloud mask to cloud optical properties defined by band to produce McICA-sampled cloud optical properties.

Definition at line 36 of file rrtmgp_sampling.F90.

◆ sampled_mask()

subroutine, public rrtmgp_sampling::sampled_mask ( real(wp), dimension(:,:,:), intent(in)  randoms,
real(wp), dimension(:,:), intent(in)  cloud_frac,
logical, dimension(:,:,:), intent(out)  cloud_mask,
real(wp), dimension(:,:), intent(in), optional  overlap_param,
real(wp), dimension(:,:,:), intent(in), optional  randoms2 
)

Generate a McICA-sampled cloud mask.

Definition at line 78 of file rrtmgp_sampling.F90.