Determines the type of a given stream variable in an LPJ-GUESS file.

find_stream_type(
  class = NULL,
  current_stream_var,
  LPJ_GUESS_CLASSES,
  LPJ_GUESS_TYPES,
  guessh_in
)

Arguments

class

A character string representing the class of the stream variable (default is NULL).

current_stream_var

A character string representing the current stream variable.

LPJ_GUESS_CLASSES

A character vector of LPJ-GUESS class names.

LPJ_GUESS_TYPES

A character vector of recognized LPJ-GUESS types.

guessh_in

A character vector of LPJ-GUESS header file content.

Value

A character string indicating the stream type.