Number of layers (image and elevation).
TerrainBody
pure integer function num_layers(self) class(TerrainBody), intent(in) :: self num_layers = self%n_layers end function num_layers