Skip to content

Group check_input_vars

Modules > check_input_vars

Check and read canopy input files (TXT or NETCDF) More...

Public Attributes

Type Name
character(len= *), intent(in) canopy
integer extension
integer, intent(in) file
character(len= *), intent(in) infile
character(len= *), intent(in) infile2
character(len= *), intent(in) input
integer of
character(len= *), intent(in) path
integer position
integer ppos
character(len= *), intent(in) primary
character(len= *), intent(in) profile
character(len= *), intent(in) secondary
integer separator

Detailed Description

This subroutine determines the input file format based on the file extension and validates it against the user-specified format option (infmt_opt). It then calls the appropriate reading routine: * For .txt files: calls canopy_read_txt() * For .nc/.ncf/.nc4 files: calls canopy_read_ncf()

The subroutine performs error checking to ensure the file format matches the namelist specification and exits with an error code if there are mismatches.

Parameters:

  • INFILE Primary input file path
  • INFILE2 Secondary canopy profile input file path

Public Attributes Documentation

variable canopy

character(len=*), intent(in) canopy;

variable extension

integer extension;

variable file

character(len=*), intent(in) file;

variable infile

character(len=*), intent(in) infile;

variable infile2

character(len=*), intent(in) infile2;

variable input

character(len=*), intent(in) input;

variable of

integer of;

variable path

character(len=*), intent(in) path;

variable position

integer position;

variable ppos

integer ppos;

variable primary

character(len=*), intent(in) primary;

variable profile

character(len=*), intent(in) profile;

variable secondary

character(len=*), intent(in) secondary;

variable separator

integer separator;