0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_append::add_nodata_slice Interface Reference

Paste a matrix of ones times a value onto an existing matrix. More...

Public Member Functions

subroutine add_nodata_slice_dp_2d (array, nadd, nodatavalue)
 
subroutine add_nodata_slice_dp_3d (array, nadd, nodatavalue)
 
subroutine add_nodata_slice_dp_4d (array, nadd, nodatavalue)
 
subroutine add_nodata_slice_i4_2d (array, nadd, nodatavalue)
 
subroutine add_nodata_slice_i4_3d (array, nadd, nodatavalue)
 
subroutine add_nodata_slice_i4_4d (array, nadd, nodatavalue)
 

Detailed Description

Paste a matrix of ones times a value onto an existing matrix.

Pastes a matrix of uniform element and predefined number of columns to the columns of another matrix.
Example

Add 2 columns of elements 5.0_dp.

input1(1,:) = (/ 1.0_dp , 2.0_dp /)
input1(2,:) = (/ 2.0_dp , 4.0_dp /)
call add_nodata_slice(input1, 2, 5.0_dp)
--> input1(1,:) = (/ 1.0_dp , 2.0_dp /)
input1(2,:) = (/ 2.0_dp , 4.0_dp /)
input1(3,:) = (/ 5.0_dp , 5.0_dp /)
input1(4,:) = (/ 5.0_dp , 5.0_dp /)

See also test folder for a detailed example, "test/test_mo_append/".

Parameters
[in,out]allocatable :: matrixMatrix to be pasted to. Can be integer(i4) or real(dp). Must be dimension(:,:), dimension(:,:,:), or dimension(:,:,:,:) and allocatable.
[in]integer(i4) :: nAddNumber of column to paste.
[in]noDataValueValue of elements of the matrix. Can be integer(i4) or real(dp).

Definition at line 210 of file mo_append.f90.

Member Function/Subroutine Documentation

◆ add_nodata_slice_dp_2d()

subroutine mo_append::add_nodata_slice::add_nodata_slice_dp_2d ( real(dp), dimension(:, :), intent(inout), allocatable  array,
integer(i4), intent(in)  nadd,
real(dp), intent(in)  nodatavalue 
)

Definition at line 2568 of file mo_append.f90.

◆ add_nodata_slice_dp_3d()

subroutine mo_append::add_nodata_slice::add_nodata_slice_dp_3d ( real(dp), dimension(:, :, :), intent(inout), allocatable  array,
integer(i4), intent(in)  nadd,
real(dp), intent(in)  nodatavalue 
)

Definition at line 2582 of file mo_append.f90.

◆ add_nodata_slice_dp_4d()

subroutine mo_append::add_nodata_slice::add_nodata_slice_dp_4d ( real(dp), dimension(:, :, :, :), intent(inout), allocatable  array,
integer(i4), intent(in)  nadd,
real(dp), intent(in)  nodatavalue 
)

Definition at line 2596 of file mo_append.f90.

◆ add_nodata_slice_i4_2d()

subroutine mo_append::add_nodata_slice::add_nodata_slice_i4_2d ( integer(i4), dimension(:, :), intent(inout), allocatable  array,
integer(i4), intent(in)  nadd,
integer(i4), intent(in)  nodatavalue 
)

Definition at line 2610 of file mo_append.f90.

◆ add_nodata_slice_i4_3d()

subroutine mo_append::add_nodata_slice::add_nodata_slice_i4_3d ( integer(i4), dimension(:, :, :), intent(inout), allocatable  array,
integer(i4), intent(in)  nadd,
integer(i4), intent(in)  nodatavalue 
)

Definition at line 2624 of file mo_append.f90.

◆ add_nodata_slice_i4_4d()

subroutine mo_append::add_nodata_slice::add_nodata_slice_i4_4d ( integer(i4), dimension(:, :, :, :), intent(inout), allocatable  array,
integer(i4), intent(in)  nadd,
integer(i4), intent(in)  nodatavalue 
)

Definition at line 2638 of file mo_append.f90.


The documentation for this interface was generated from the following file: