Group 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:
INFILEPrimary input file pathINFILE2Secondary canopy profile input file path