Determines the size (number of variables) in a stream based on the file content.

find_stream_size(
  current_stream_type,
  guessh_in,
  LPJ_GUESS_TYPES,
  LPJ_GUESS_CONST_INTS
)

Arguments

current_stream_type

A list containing details of the current stream.

guessh_in

A character vector of LPJ-GUESS header file content.

LPJ_GUESS_TYPES

A character vector of recognized LPJ-GUESS types.

LPJ_GUESS_CONST_INTS

A dataframe mapping LPJ-GUESS constants to their values.

Value

A numeric value representing the size (number of streamed variables).