sampling Subroutine

private subroutine sampling(scal, scal_samp, nb_samp, tab_bounds)

Note

The function sampling allow for the user to sample the surface.

The user is asked for the number of samples as well as the sample dimensions. It should be noted that:

  • the number of samples nb_samp must be a square,
  • the samples can overlap.

The output is just an array that contains the samples bound.

Arguments

Type IntentOptional Attributes Name
type(SCALE_SURF), intent(in) :: scal

SCALE_SURF object of the input surface

type(SCALE_SURF), intent(out) :: scal_samp

SCALE_SURF object of a sample

integer(kind=I4), intent(out) :: nb_samp

number of samples

type(tborne), intent(out), allocatable, dimension(:) :: tab_bounds

array of the sample bounds