Down sample a diagnostic field.
Definition at line 85 of file MOM_diag_mediator.F90.
|
| subroutine | downsample_diag_field_2d (locfield, locfield_dsamp, dl, diag_cs, diag, isv, iev, jsv, jev, mask) |
| | This subroutine allocates and computes a downsampled array from an input array It also determines the diagnostics-compurte indices for the downsampled array 2d interface. More...
|
| |
| subroutine | downsample_diag_field_3d (locfield, locfield_dsamp, dl, diag_cs, diag, isv, iev, jsv, jev, mask) |
| | This subroutine allocates and computes a downsampled array from an input array It also determines the diagnostics-compurte indices for the downsampled array 3d interface. More...
|
| |
Down sample a diagnostic field.
Definition at line 85 of file MOM_diag_mediator.F90.
◆ downsample_diag_field_2d()
| subroutine mom_diag_mediator::downsample_diag_field::downsample_diag_field_2d |
( |
real, dimension(:,:), pointer |
locfield, |
|
|
real, dimension(:,:), intent(inout), allocatable |
locfield_dsamp, |
|
|
integer, intent(in) |
dl, |
|
|
type(diag_ctrl), intent(in) |
diag_cs, |
|
|
type(diag_type), intent(in) |
diag, |
|
|
integer, intent(inout) |
isv, |
|
|
integer, intent(inout) |
iev, |
|
|
integer, intent(inout) |
jsv, |
|
|
integer, intent(inout) |
jev, |
|
|
real, dimension(:,:), intent(in), optional, target |
mask |
|
) |
| |
|
private |
This subroutine allocates and computes a downsampled array from an input array It also determines the diagnostics-compurte indices for the downsampled array 2d interface.
- Parameters
-
| locfield | Input array pointer |
| [in,out] | locfield_dsamp | Output (downsampled) array |
| [in] | diag_cs | Structure used to regulate diagnostic output |
| [in] | diag | A structure describing the diagnostic to post |
| [in] | dl | Level of down sampling |
| [in,out] | isv | i-start index for diagnostics |
| [in,out] | iev | i-end index for diagnostics |
| [in,out] | jsv | j-start index for diagnostics |
| [in,out] | jev | j-end index for diagnostics |
| [in] | mask | If present, use this real array as the data mask. |
Definition at line 3875 of file MOM_diag_mediator.F90.
3876 real,
dimension(:,:),
pointer :: locfield
3877 real,
dimension(:,:),
allocatable,
intent(inout) :: locfield_dsamp
3878 type(diag_ctrl),
intent(in) :: diag_CS
3879 type(diag_type),
intent(in) :: diag
3880 integer,
intent(in) :: dl
3881 integer,
intent(inout) :: isv
3882 integer,
intent(inout) :: iev
3883 integer,
intent(inout) :: jsv
3884 integer,
intent(inout) :: jev
3885 real,
optional,
target,
intent(in) :: mask(:,:)
3887 real,
dimension(:,:),
pointer :: locmask
3888 integer :: f1,f2,isv_o,jsv_o
3898 call downsample_diag_indices_get(f1,f2, dl, diag_cs,isv,iev,jsv,jev)
3900 if (
present(mask))
then
3902 elseif (
associated(diag%axes%mask2d))
then
3903 locmask => diag%axes%mask2d
3905 call mom_error(fatal,
"downsample_diag_field_2d: Cannot downsample without a mask!!! ")
3908 call downsample_field(locfield, locfield_dsamp, dl, diag%xyz_method, locmask, diag_cs,diag, &
3909 isv_o,jsv_o,isv,iev,jsv,jev)
◆ downsample_diag_field_3d()
| subroutine mom_diag_mediator::downsample_diag_field::downsample_diag_field_3d |
( |
real, dimension(:,:,:), pointer |
locfield, |
|
|
real, dimension(:,:,:), intent(inout), allocatable |
locfield_dsamp, |
|
|
integer, intent(in) |
dl, |
|
|
type(diag_ctrl), intent(in) |
diag_cs, |
|
|
type(diag_type), intent(in) |
diag, |
|
|
integer, intent(inout) |
isv, |
|
|
integer, intent(inout) |
iev, |
|
|
integer, intent(inout) |
jsv, |
|
|
integer, intent(inout) |
jev, |
|
|
real, dimension(:,:,:), intent(in), optional, target |
mask |
|
) |
| |
|
private |
This subroutine allocates and computes a downsampled array from an input array It also determines the diagnostics-compurte indices for the downsampled array 3d interface.
- Parameters
-
| locfield | Input array pointer |
| [in,out] | locfield_dsamp | Output (downsampled) array |
| [in] | diag_cs | Structure used to regulate diagnostic output |
| [in] | diag | A structure describing the diagnostic to post |
| [in] | dl | Level of down sampling |
| [in,out] | isv | i-start index for diagnostics |
| [in,out] | iev | i-end index for diagnostics |
| [in,out] | jsv | j-start index for diagnostics |
| [in,out] | jev | j-end index for diagnostics |
| [in] | mask | If present, use this real array as the data mask. |
Definition at line 3834 of file MOM_diag_mediator.F90.
3835 real,
dimension(:,:,:),
pointer :: locfield
3836 real,
dimension(:,:,:),
allocatable,
intent(inout) :: locfield_dsamp
3837 type(diag_ctrl),
intent(in) :: diag_CS
3838 type(diag_type),
intent(in) :: diag
3839 integer,
intent(in) :: dl
3840 integer,
intent(inout) :: isv
3841 integer,
intent(inout) :: iev
3842 integer,
intent(inout) :: jsv
3843 integer,
intent(inout) :: jev
3844 real,
optional,
target,
intent(in) :: mask(:,:,:)
3846 real,
dimension(:,:,:),
pointer :: locmask
3847 integer :: f1,f2,isv_o,jsv_o
3857 call downsample_diag_indices_get(f1,f2, dl, diag_cs,isv,iev,jsv,jev)
3859 if (
present(mask))
then
3861 elseif (
associated(diag%axes%mask3d))
then
3862 locmask => diag%axes%mask3d
3864 call mom_error(fatal,
"downsample_diag_field_3d: Cannot downsample without a mask!!! ")
3867 call downsample_field(locfield, locfield_dsamp, dl, diag%xyz_method, locmask, diag_cs, diag, &
3868 isv_o,jsv_o,isv,iev,jsv,jev)
The documentation for this interface was generated from the following file: