#include <omgclimatedataprocessorcontroller.h>
Inheritance diagram for OmgClimateDataProcessorController:
Definition at line 50 of file omgclimatedataprocessorcontroller.h.
|
Default constructor Definition at line 33 of file omgclimatedataprocessorcontroller.cpp. References diurnalTempFileName, frostDaysFileName, inputFileType, maxTempFileName, meanPrecipFileName, meanTempFileName, minTempFileName, outputFilePath, totalSolarRadFileName, and windSpeedFileName. |
|
Destructor Definition at line 54 of file omgclimatedataprocessorcontroller.cpp. |
|
Add a calculation to the list of those requested to be carried out by the user. The available availableCalculationsMap will be searched for a string match, and if a match is found that map entry will be tagged as true - 'please calculate' if it is currently false.
Definition at line 882 of file omgclimatedataprocessorcontroller.cpp. References availableCalculationsMap. |
|
A signal emitted to notify listeners that we have completed calculating a given cell. *
|
|
Accessor for the list of available calculations.
Definition at line 875 of file omgclimatedataprocessorcontroller.cpp. References availableCalculationsMap. |
|
This is a helper method that will return a Description of the OmgClimateDataProcessorController vars. This will indicate things like whether the files are in series or not, what calculations are available in the available calculations map, and whether they are tagged true for execution or not.
Definition at line 2508 of file omgclimatedataprocessorcontroller.cpp. References availableCalculationsMap, filesInSeriesFlag, getDiurnalTempFileName(), getFrostDaysFileName(), getInputFileType(), getMaxTempFileName(), getMeanPrecipFileName(), getMeanTempFileName(), getMinTempFileName(), getOutputFileType(), getTotalSolarRadFileName(), and getWindSpeedFileName(). |
Here is the call graph for this function:
|
Accessor for filename of the diurnalTemp calculation inputs.
Definition at line 260 of file omgclimatedataprocessorcontroller.cpp. References diurnalTempFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor for bool filesInSeriesFlag.
Definition at line 904 of file omgclimatedataprocessorcontroller.cpp. References filesInSeriesFlag. |
|
Accessor for int fileStartYear. |
|
Accessor for filename of the frost days calculation inputs.
Definition at line 282 of file omgclimatedataprocessorcontroller.cpp. References frostDaysFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor forOmgClimateFileReader::FileType inputFileType.
Definition at line 518 of file omgclimatedataprocessorcontroller.cpp. References inputFileType. Referenced by getDescription(). |
|
Accessor for int jobEndYear.
|
|
Accessor for int jobStartYear.
|
|
Accessor for filename of the maxTemp calculation inputs.
Definition at line 249 of file omgclimatedataprocessorcontroller.cpp. References maxTempFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor for filename of the mean precipitation calculation inputs.
Definition at line 271 of file omgclimatedataprocessorcontroller.cpp. References meanPrecipFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor for filename of the meanTemp calculation inputs.
Definition at line 227 of file omgclimatedataprocessorcontroller.cpp. References meanTempFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor for filename of the minTemp calculation inputs.
Definition at line 238 of file omgclimatedataprocessorcontroller.cpp. References minTempFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor for the file output path.
Definition at line 318 of file omgclimatedataprocessorcontroller.cpp. References outputFilePath. |
|
Accessor for OmgFileWriter::FileType outputFileType.
Definition at line 548 of file omgclimatedataprocessorcontroller.cpp. References outputFileType. Referenced by getDescription(). |
|
Accessor for QString outputHeader.
Definition at line 58 of file omgclimatedataprocessorcontroller.cpp. References outputHeader. |
|
Accessor for filename of the solar radiation calculation inputs.
Definition at line 295 of file omgclimatedataprocessorcontroller.cpp. References totalSolarRadFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Accessor for filename of the wind speed calculation inputs.
Definition at line 307 of file omgclimatedataprocessorcontroller.cpp. References windSpeedFileName. Referenced by getDescription(), and makeAvailableCalculationsMap(). |
|
Set up an individual file group (called by makefileGroups for each filegroup that needs to be initialised) Definition at line 435 of file omgclimatedataprocessorcontroller.cpp. References OmgClimateFileGroup::add(), filesInSeriesFlag, OmgClimateFileReader::initialise(), inputFileType, and OmgClimateFileReader::setActiveBlock(). Referenced by makeFileGroups(). |
Here is the call graph for this function:
|
Little utility method to convert from int to string |
|
Build a list of which calculations can be performed given the input files that have been registered. The boolean field indicates whether the user actually want to perform this calculation
Definition at line 581 of file omgclimatedataprocessorcontroller.cpp. References availableCalculationsMap, diurnalTempFileName, frostDaysFileName, getDiurnalTempFileName(), getFrostDaysFileName(), getMaxTempFileName(), getMeanPrecipFileName(), getMeanTempFileName(), getMinTempFileName(), getTotalSolarRadFileName(), getWindSpeedFileName(), maxTempFileGroup, maxTempFileName, meanPrecipFileName, meanTempFileName, minTempFileName, totalSolarRadFileName, and windSpeedFileName. |
Here is the call graph for this function:
|
Set up the filegroups for each filename that has been registered
Definition at line 329 of file omgclimatedataprocessorcontroller.cpp. References diurnalTempFileGroup, diurnalTempFileName, frostDaysFileGroup, frostDaysFileName, initialiseFileGroup(), maxTempFileGroup, maxTempFileName, meanPrecipFileGroup, meanPrecipFileName, meanTempFileGroup, meanTempFileName, minTempFileGroup, minTempFileName, totalSolarRadFileGroup, totalSolarRadFileName, windSpeedFileGroup, and windSpeedFileName. |
Here is the call graph for this function:
|
This is a private method. It is a simple method to populate the inputFileTypeMap attribute - this will usually be called by the constructor(s). All keys (file type strings) will be stored in upper case. Definition at line 68 of file omgclimatedataprocessorcontroller.cpp. References inputFileTypeMap. Referenced by setInputFileType(). |
|
This is a private method. It is a simple method to populate the outputFileTypeMap attribute - this will usually be called by the constructor(s). All keys (file type strings) will be stored in upper case. Definition at line 181 of file omgclimatedataprocessorcontroller.cpp. References outputFileTypeMap. Referenced by setOutputFileType(). |
|
A signal emitted to notify listeners how many cells will be passed through in each block. *
Referenced by run(). |
|
A signal emitted to notify listeners how many variables are going to be calculated for each years data. *
Referenced by run(). |
|
This method is intended for debugging purposes only Definition at line 2495 of file omgclimatedataprocessorcontroller.cpp. Referenced by run(). |
|
Here is the call graph for this function:
|
Mutator for filename of the diurnalTemp calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 265 of file omgclimatedataprocessorcontroller.cpp. References diurnalTempFileName. |
|
Mutator for bool filesInSeriesFlag. When files are in series, it means that the file format only contains one months data block per file and that there should be 12 such files to provide monthly data for an entire year. The files should be suffixed with the month numer they represent e.g. meanTemp01.asc meanTemp02.asc meanTemp03.asc meanTemp04.asc meanTemp05.asc meanTemp06.asc meanTemp07.asc meanTemp08.asc meanTemp09.asc meanTemp10.asc meanTemp11.asc meanTemp12.asc
Definition at line 909 of file omgclimatedataprocessorcontroller.cpp. References filesInSeriesFlag. |
|
Mutator for int fileStartYear.
|
|
Mutator for filename of the frost days calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 289 of file omgclimatedataprocessorcontroller.cpp. References frostDaysFileName. |
|
Mutator forOmgClimateFileReader::FileType inputFileType. This is an overloaded version of above that takes a string and looks up the enum.
Definition at line 529 of file omgclimatedataprocessorcontroller.cpp. References inputFileTypeMap, makeInputFileTypeMap(), and setInputFileType(). |
Here is the call graph for this function:
|
Mutator forOmgClimateFileReader::FileType inputFileType.
Definition at line 523 of file omgclimatedataprocessorcontroller.cpp. References inputFileType. Referenced by setInputFileType(). |
|
Mutator for int jobEndYear.
|
|
Mutator for int setJobStartYear.
|
|
Mutator for filename of the maxTemp calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 254 of file omgclimatedataprocessorcontroller.cpp. References maxTempFileName. |
|
Mutator for filename of the mean precipitation calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 276 of file omgclimatedataprocessorcontroller.cpp. References meanPrecipFileName. |
|
Mutator for filename of the meanTemp calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 232 of file omgclimatedataprocessorcontroller.cpp. References meanTempFileName. |
|
Mutator for filename of the minTemp calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 243 of file omgclimatedataprocessorcontroller.cpp. References minTempFileName. |
|
Mutator for directory name for the calculation output files.
Definition at line 323 of file omgclimatedataprocessorcontroller.cpp. References outputFilePath. |
|
Mutator for OmgFileWriter::FileType outputFileType. Overloaded version of above that takes a string and looks up the enum.
Definition at line 559 of file omgclimatedataprocessorcontroller.cpp. References makeOutputFileTypeMap(), outputFileTypeMap, and setOutputFileType(). |
Here is the call graph for this function:
|
Mutator for OmgFileWriter::FileType outputFileType. This will determine how outputs from calculations will be written to disk.
Definition at line 553 of file omgclimatedataprocessorcontroller.cpp. References outputFileType. Referenced by setOutputFileType(). |
|
If the output format requires a header (e.g. Arc/Info ASCII grid, you can define one using this method.
Definition at line 63 of file omgclimatedataprocessorcontroller.cpp. References outputHeader. |
|
Mutator for filename of the solar radiation calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 300 of file omgclimatedataprocessorcontroller.cpp. References totalSolarRadFileName. |
|
Mutator for filename of the wind speed calculation inputs. If the files are in series, the name should be of the first file in the series.
Definition at line 312 of file omgclimatedataprocessorcontroller.cpp. References windSpeedFileName. |
|
A signal emitted to notify listeners that we completed calculating the given variable. *
Referenced by run(). |
|
A signal emitted to notify listeners that we are about to start calculating a variable for one years data. *
Referenced by run(). |
|
This is a map (associative array) that stores which calculations can be performed given the input files that have been registered with this climatedataprocessor. The boolean flag will be used to indicate whether the user actually wants to perform the calculation on the input dataset(s). Definition at line 469 of file omgclimatedataprocessorcontroller.h. Referenced by addUserCalculation(), getAvailableCalculationsMap(), getDescription(), makeAvailableCalculationsMap(), and run(). |
|
A filegroup containing files with diurnal temperature data. Definition at line 494 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains diurnal temp data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 498 of file omgclimatedataprocessorcontroller.h. Referenced by getDiurnalTempFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setDiurnalTempFileName(). |
|
For certain input types (notably cres, arcinfo and Reading paleoclimate), each months data is stored in a discrete file. Files should be numbered e.g. meantemp01.asc, meantemp2.asc...meantemp12.asc for each month. This flag lets us know whether data is in a series of seperate files for each month or can all be found in the same file. Definition at line 533 of file omgclimatedataprocessorcontroller.h. Referenced by getDescription(), getFilesInSeriesFlag(), initialiseFileGroup(), and setFilesInSeriesFlag(). |
|
A filegroup containing files with number of frost days data. Definition at line 508 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains mean frost data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 512 of file omgclimatedataprocessorcontroller.h. Referenced by getFrostDaysFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setFrostDaysFileName(). |
|
The type of input files to be processed by the climate date processor. Definition at line 437 of file omgclimatedataprocessorcontroller.h. Referenced by getInputFileType(), initialiseFileGroup(), OmgClimateDataProcessorController(), and setInputFileType(). |
|
This is a map (associative array) that stores the key/value pairs for the INPUT filetype. The key is the verbose name for the file type (as will typically appear in the user interface, and the value is theOmgClimateFileReader::FileType equivalent. Definition at line 449 of file omgclimatedataprocessorcontroller.h. Referenced by makeInputFileTypeMap(), and setInputFileType(). |
|
A filegroup containing files with maximum temperature data. Definition at line 487 of file omgclimatedataprocessorcontroller.h. Referenced by makeAvailableCalculationsMap(), makeFileGroups(), and run(). |
|
The file name that contains max temp data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 491 of file omgclimatedataprocessorcontroller.h. Referenced by getMaxTempFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setMaxTempFileName(). |
|
A filegroup containing files with mean precipitation data. Definition at line 501 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains mean precipitation data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 505 of file omgclimatedataprocessorcontroller.h. Referenced by getMeanPrecipFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setMeanPrecipFileName(). |
|
A filegroup containing files with mean temperature data. Definition at line 473 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains mean temp data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 477 of file omgclimatedataprocessorcontroller.h. Referenced by getMeanTempFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setMeanTempFileName(). |
|
A filegroup containing files with minimum temperature data. Definition at line 480 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains min temp data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 484 of file omgclimatedataprocessorcontroller.h. Referenced by getMinTempFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setMinTempFileName(). |
|
The directory where the processed results will be stored. Definition at line 435 of file omgclimatedataprocessorcontroller.h. Referenced by getOutputFilePathString(), OmgClimateDataProcessorController(), run(), and setOutputFilePathString(). |
|
The type of output files to be produced by the climate date processor. Definition at line 440 of file omgclimatedataprocessorcontroller.h. Referenced by getOutputFileType(), run(), and setOutputFileType(). |
|
This is a map (associative array) that stores the key/value pairs for the OUTPUT filetype. The key is the verbose name for the file type (as will typically appear in the user interface, and the value is the OmgFileWriter::FileType equivalent. Definition at line 459 of file omgclimatedataprocessorcontroller.h. Referenced by makeOutputFileTypeMap(), and setOutputFileType(). |
|
This is a standard header (e.g. arc/info header) that will be appended to any output grids. Definition at line 536 of file omgclimatedataprocessorcontroller.h. Referenced by getOutputHeader(), run(), and setOutputHeader(). |
|
A filegroup containing files with solar radiation data. Definition at line 515 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains mean solar radiation data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 519 of file omgclimatedataprocessorcontroller.h. Referenced by getTotalSolarRadFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setTotalSolarRadFileName(). |
|
A filegroup containing files with wind speed data. Definition at line 522 of file omgclimatedataprocessorcontroller.h. Referenced by makeFileGroups(), and run(). |
|
The file name that contains wind speed data. If the file type is one where the data is stored in series (a single file per month), this member will store the name of the first file in the series. Definition at line 526 of file omgclimatedataprocessorcontroller.h. Referenced by getWindSpeedFileName(), makeAvailableCalculationsMap(), makeFileGroups(), OmgClimateDataProcessorController(), run(), and setWindSpeedFileName(). |