Set up a grid params array with std spectrum at each spatial position
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=xp), | intent(inout), | dimension(:,:,:), allocatable | :: | params | grid of paramters |
|
real(kind=xp), | intent(in), | dimension(:), allocatable | :: | guess_spectrum | std spectrum of the observation |
|
integer, | intent(in) | :: | dim_y | dimension along spatial axis y |
||
integer, | intent(in) | :: | dim_x | dimension along spatial axis x |
subroutine init_grid_params(params, guess_spectrum, dim_y, dim_x)
!! Set up a grid params array with std spectrum at each spatial position
implicit none
real(xp), intent(inout), dimension(:,:,:), allocatable :: params !! grid of paramters
real(xp), intent(in), dimension(:), allocatable :: guess_spectrum !! std spectrum of the observation
integer, intent(in) :: dim_y !! dimension along spatial axis y
integer, intent(in) :: dim_x !! dimension along spatial axis x
integer :: i !! index loop
integer :: j !! index loop
do j=1, dim_x
do i=1, dim_y
params(:,i,j) = guess_spectrum
end do
end do
end subroutine init_grid_params