LSDTopoTools
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
LSDRasterAggregator Class Reference

A general object for holding several different raster layers. More...

#include <LSDRasterAggregator.hpp>

Inheritance diagram for LSDRasterAggregator:
LSDSedimentRouting

Public Member Functions

 LSDRasterAggregator ()
 the default constructor. This doesn't do anything.
 
 LSDRasterAggregator (string path, string file_prefix)
 This constructor requires a filename The filename and path point to files with the rasters. More...
 
void load_raster_filenames (string filename)
 This function load a csv file containing names of a DEMs and (possibly) other rasters The first row of the file contains column headers and is ignored Thereafter you have two columns in each row, comma seperated, with the raster type as the first column and the raster filename (with full path) as the second. More...
 
void load_parameters (string filename)
 This loads parameters It creates a map of parameter values. More...
 
void check_rasters ()
 this function checks the existence and georeferencing of the rasters outlined in the file list More...
 

Protected Attributes

string path
 the path to the cosmo data. Also used to print results
 
string param_name
 the prefix of the parameter files
 
map< string, string > raster_filenames
 
map< string, string > parameter_map
 
float min_slope
 The minimum slope for the fill function.
 
vector< string > boundary_conditions
 The boundary conditions for flow info calculations.
 

Detailed Description

A general object for holding several different raster layers.

Constructor & Destructor Documentation

LSDRasterAggregator::LSDRasterAggregator ( string  path,
string  file_prefix 
)
inline

This constructor requires a filename The filename and path point to files with the rasters.

Parameters
pathThe path to the files
file_prefixthe prefix of the files
Author
SMM
Date
10/02/2016

Member Function Documentation

void LSDRasterAggregator::check_rasters ( )

this function checks the existence and georeferencing of the rasters outlined in the file list

Author
SMM
Date
10/02/2016
void LSDRasterAggregator::load_parameters ( string  filename)

This loads parameters It creates a map of parameter values.

Parameters
filenamea string of the full filename
Author
SMM
Date
10/02/2016
void LSDRasterAggregator::load_raster_filenames ( string  filename)

This function load a csv file containing names of a DEMs and (possibly) other rasters The first row of the file contains column headers and is ignored Thereafter you have two columns in each row, comma seperated, with the raster type as the first column and the raster filename (with full path) as the second.

Parameters
filenamethe name of the file
Author
SMM
Date
10/02/2016

Member Data Documentation

map<string,string> LSDRasterAggregator::parameter_map
protected

A map holding the parameter values. These are stored as strings and converted to the appropriate data type as needed

map< string,string > LSDRasterAggregator::raster_filenames
protected

A map for holding the different raster filenames The index into the raster filenames is the raster type. There are some commone raster types: DEM is the DEM —more to come here—


The documentation for this class was generated from the following files: