Go to the source code of this file.
◆ checkdrivernames()
subroutine checkdrivernames |
- Checks whether the read in column names
- cover all required column names
- are all allowed
- Stores in the index file columnLocations, which read in column corresponds to which allowed driver name
- USE FileListModule, FileListModule, LoggerModule, All_par
- IN:
- From FilelistModule:
- Bioclimate_File: TYPE(File): bioclimate file
- From LoggerModule:
- LogMessage: character(len=1024) : message text to be logged
- From All_par:
- nDrivers: INTEGER : number of drivers (including x,y,year)
- columnNamesOfDrivers: character(len=30) (1:50): read in column names of bioclim file
- allowedDriverNames: character(len=30), dimension(nallowedDrivernames),parameter : names of allowed drivers; the first 6 are required; lon,lat,year,DD,WiT,DrStr,Distu,browsPress,germDrought,nutrients
- OUT:
- via All_par: columnLocations: INTEGER, dimension(nallowedDrivernames): index vector; which column corresponds to which driver name?
- CALLS support routines:
- CALLED FROM:
Definition at line 99 of file PrepareBioclimInput.f90.
◆ preparebiocliminput()
subroutine preparebiocliminput |
PrepareBioclimInput
- Opens the bioclimate file
- Extracts from the file header the drivers present in this bioclimate file and stores their names
- Checks whether these are allowed
- If so, reads the first year of bioclimate
- USE: FileListModule, FileListModule, LoggerModule, All_par
- IN:
- From FilelistModule: -Bioclimate_File: TYPE(File): bioclimate file
- From LoggerModule: -LogMessagecharacter(len=1024) : message text to be logged
- OUT:
- via All_par:
- nDrivers: INTEGER : number of drivers (including x,y,year)
- columnNamesOfDrivers: character(len=30) (1:50) : Names of different drivers, x, y, year, bioclim , optional drivers
- CALLS:
- CALLS support routines:
- ExtractAndCountWords, openFileR in FileHandlingModules.f90
- LogError, LogInfo in LoggerModule
- CALLED FROM:
-TreeMig in TreeMig.f90
Definition at line 36 of file PrepareBioclimInput.f90.