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

Object to store information about drainage basins and generate basin average metrics.. More...

#include <LSDBasin.hpp>

Inheritance diagram for LSDBasin:
LSDCosmoBasin

Public Member Functions

 LSDBasin ()
 Default constructor method used to create a basin object. More...
 
 LSDBasin (int Junction, LSDFlowInfo &FlowInfo, LSDJunctionNetwork &ChanNet)
 Constructor method used to create a basin object. More...
 
int get_NRows () const
 
int get_NCols () const
 
float get_XMinimum () const
 
float get_YMinimum () const
 
float get_DataResolution () const
 
int get_NoDataValue () const
 
map< string, string > get_GeoReferencingStrings () const
 
vector< int > get_BasinNodes () const
 
int get_NumberOfCells () const
 
float get_Area () const
 
int get_Junction () const
 
int get_BasinOrder () const
 
bool get_Beheaded () const
 
int get_Outlet_node () const
 
int get_Outlet_i () const
 
int get_Outlet_j () const
 
int get_Centroid_i () const
 
int get_Centroid_j () const
 
float get_SlopeMean () const
 
float get_ElevationMean () const
 
float get_AspectMean () const
 
float get_ReliefMean () const
 
float get_PlanCurvMean () const
 
float get_ProfileCurvMean () const
 
float get_TotalCurvMean () const
 
float get_PlanCurvMax () const
 
float get_ProfileCurvMax () const
 
float get_TotalCurvMax () const
 
float get_HillslopeLength_HFR () const
 
float get_HillslopeLength_Binned () const
 
float get_HillslopeLength_Spline () const
 
float get_HillslopeLength_Density () const
 
float get_FlowLength () const
 
float get_DrainageDensity () const
 
vector< int > get_Perimeter_i () const
 
vector< int > get_Perimeter_j () const
 
vector< int > get_Perimeter_nodes () const
 
float get_CosmoErosionRate () const
 
float get_OtherErosionRate () const
 
float get_CHTMean () const
 
float get_EStar () const
 
float get_RStar () const
 
int get_HilltopPx () const
 
float get_BedrockFraction () const
 
float get_Biomass () const
 
int get_AlternativeIndex () const
 
float CalculateBasinMean (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the mean value of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinMax (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the max value of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinMin (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the min value of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinMedian (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the median value of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinPercentile (LSDFlowInfo &FlowInfo, LSDRaster Data, int Percentile)
 Calculate the percentile value of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinStdDev (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the Standard Deviation of values of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinStdError (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the Standard error of values of an LSDRaster which falls inside a basin. More...
 
float CalculateBasinRange (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the range of values of an LSDRaster which falls inside a basin. More...
 
int CalculateNumDataPoints (LSDFlowInfo &FlowInfo, LSDRaster Data)
 Calculate the number of data points of an LSDRaster which fall inside a basin. More...
 
void set_SlopeMean (LSDFlowInfo &FlowInfo, LSDRaster Slope)
 Set the mean slope of a basin. More...
 
void set_ElevationMean (LSDFlowInfo &FlowInfo, LSDRaster Elevation)
 Set the mean Elevation of a basin. More...
 
void set_ReliefMean (LSDFlowInfo &FlowInfo, LSDRaster Relief)
 Set the mean Relief of a basin. More...
 
void set_PlanCurvMean (LSDFlowInfo &FlowInfo, LSDRaster PlanCurv)
 Set the mean PlanCurve of a basin. More...
 
void set_ProfileCurvMean (LSDFlowInfo &FlowInfo, LSDRaster ProfileCurv)
 Set the mean ProfCurv of a basin. More...
 
void set_TotalCurvMean (LSDFlowInfo &FlowInfo, LSDRaster TotalCurv)
 Set the mean TotalCurv of a basin. More...
 
void set_PlanCurvMax (LSDFlowInfo &FlowInfo, LSDRaster PlanCurv)
 Set the max PlanCurve of a basin. More...
 
void set_ProfileCurvMax (LSDFlowInfo &FlowInfo, LSDRaster ProfileCurv)
 Set the max ProfCurv of a basin. More...
 
void set_TotalCurvMax (LSDFlowInfo &FlowInfo, LSDRaster TotalCurv)
 Set the max TotalCurv of a basin. More...
 
void set_CHTMean (LSDFlowInfo &FlowInfo, LSDRaster CHT)
 Set the mean hilltop curvature of a basin. More...
 
void set_CosmoErosionRate (float ErosionRate)
 Set the Cosmogenic erosion rate. More...
 
void set_OtherErosionRate (float ErosionRate)
 Set the Other erosion rate. More...
 
void set_EStar_RStar (float CriticalSlope)
 Calculate E* and R* values for the basin, using hilltop flow routed hillslope lengths. More...
 
void set_FlowLength (LSDIndexRaster &StreamNetwork, LSDFlowInfo &FlowInfo)
 Calculate flow length for the basin using the D8 flow directions. More...
 
void set_DrainageDensity ()
 Set basin drainage density. More...
 
void set_HillslopeLength_HFR (LSDFlowInfo &FlowInfo, LSDRaster HillslopeLengths)
 Set the mean HillslopeLength from hilltop flow routing. More...
 
void set_HillslopeLengths_Boomerang (LSDRaster &Slope, LSDRaster &DinfArea, LSDFlowInfo &FlowInfo, float log_bin_width, int SplineResolution, float bin_threshold)
 Set mean HillslopeLengths from boomerang plots from both splines and binned data. More...
 
void set_HillslopeLength_Density ()
 Set the mean HillslopeLength from drainage density. More...
 
void set_BedrockFraction (LSDFlowInfo &FlowInfo, LSDRaster RockExposure)
 Set the Rock Exposure fraction of the basin. More...
 
void set_Biomass (LSDFlowInfo &FlowInfo, LSDRaster BiomassRaster)
 
void set_AlternativeIndex (LSDFlowInfo &FlowInfo, LSDIndexRaster &AltIndex)
 
void Plot_Boomerang (LSDRaster &Slope, LSDRaster &DinfArea, LSDFlowInfo &FlowInfo, float log_bin_width, int SplineResolution, float bin_threshold, string Path)
 Generate text files containing data to plot boomerangs. More...
 
void set_AspectMean (LSDFlowInfo &FlowInfo, LSDRaster Aspect)
 Set the mean aspect of a basin. More...
 
void set_Perimeter (LSDFlowInfo &FlowInfo)
 Set the perimeter pixels using a simple edge detection algorithm. More...
 
void set_perimeter_from_vector (vector< int > perimeter_nodes)
 Set the perimeter pixels by passing in your own vector of perimeter nodes. More...
 
void print_perimeter_to_csv (LSDFlowInfo &FlowInfo, string perimeter_fname)
 Prints the perimeter nodes to a csv file. More...
 
void print_perimeter_hypsometry_to_csv (LSDFlowInfo &FlowInfo, string perimeter_fname, LSDRaster &ElevationRaster)
 Prints the perimeter nodes to a csv file plus elevations. More...
 
vector< int > order_perimeter_nodes (LSDFlowInfo &FlowInfo)
 Orders perimeter nodes from the outlet. More...
 
void set_all_HillslopeLengths (LSDFlowInfo &FlowInfo, LSDRaster &HillslopeLengths, LSDRaster &Slope, LSDRaster &DinfArea, float log_bin_width, int SplineResolution, float bin_threshold)
 Set the four different hillslope length measurements for the basin. More...
 
void set_All_Parameters (LSDRaster &Elevation, LSDFlowInfo &FlowInfo, LSDRaster &CHT, LSDIndexRaster &StreamNetwork, LSDRaster &HillslopeLengths, LSDRaster &Relief, float window_radius, float log_bin_width, int SplineResolution, float bin_threshold, float CriticalSlope, float CosmoErosionRate=-9999, float OtherErosionRate=-9999)
 Set all of the basin parameters with one call. More...
 
void set_HilltopPx (LSDFlowInfo &FlowInfo, LSDRaster Hilltops)
 Set the count of the number of hilltop pixels in a basin. More...
 
LSDIndexRaster write_raster_data_to_LSDIndexRaster (LSDIndexRaster Data, LSDFlowInfo FlowInfo)
 Cookie cut data from an LSDIndexRaster into the shape of the basin. More...
 
LSDRaster write_raster_data_to_LSDRaster (LSDRaster Data, LSDFlowInfo FlowInfo)
 Cookie cut data from an LSDRaster into the shape of the basin. More...
 
int is_node_in_basin (int test_node)
 check whether a test node is in the basin or not More...
 
bool are_basins_from_same_base_DEM (LSDBasin &other)
 This checks the dimensions of the base DEMs along with georeferencing strings to see if the other basin is from the same DEM as the current basin. More...
 
bool is_this_a_subbasin (LSDBasin &other)
 This checks to see if a supplied basin is a subbasin of the other. More...
 
LSDRaster keep_only_internal_hilltop_curvature (LSDRaster hilltop_curvature, LSDFlowInfo FlowInfo)
 remove hilltop curvature values that are at the edge of the basin More...
 
LSDRaster write_real_data_to_LSDRaster (float Param, LSDFlowInfo FlowInfo)
 Write a real value to an LSDRaster in the shape of the basin. More...
 
LSDIndexRaster write_integer_data_to_LSDIndexRaster (int Param, LSDFlowInfo FlowInfo)
 Write an integer value to an LSDIndexRaster in the shape of the basin. More...
 
void add_basin_to_LSDIndexRaster (LSDIndexRaster &basin_raster, LSDFlowInfo &FlowInfo, map< int, int > &drainage_of_other_basins, int this_basin_index)
 This function is used to create a single LSDIndexRaster that contains all the basins in a DEM. It is done by adding each basin in turn (but this only adds a single basin). More...
 
LSDRaster TrimPaddedRasterToBasin (int padding_pixels, LSDFlowInfo &FlowInfo, LSDRaster &Raster_Data)
 This function creates a padded, georeferenced raster from a raw raster file that is trimmed to the dimension of a basin. More...
 
bool is_adjacent (LSDBasin &DifferentBasin, LSDFlowInfo &flowpy)
 This function check if two basin are adjacent return true if the two basin are adjacent with at least one pixel TODO add a minimum adjacent pixel parameter. More...
 
vector< int > get_source_node_from_perimeter (vector< int > perimeter, LSDFlowInfo &flowpy, LSDJunctionNetwork &junky, int pixel_window)
 detect the source nodes in a pixel window around a perimeter, for instance a basin perimeter It needs a sequence of nodes where it will loop around and gather all the source nodes encountered. More...
 
LSDIndexRaster write_Junction (LSDFlowInfo FlowInfo)
 Write Junction values into the shape of the basin. More...
 
LSDIndexRaster write_NumberOfCells (LSDFlowInfo FlowInfo)
 Write NumberOfCells values into the shape of the basin. More...
 
LSDIndexRaster write_BasinOrder (LSDFlowInfo FlowInfo)
 Write BasinOrder values into the shape of the basin. More...
 
LSDRaster write_Area (LSDFlowInfo FlowInfo)
 Write Area values into the shape of the basin. More...
 
LSDRaster write_SlopeMean (LSDFlowInfo FlowInfo)
 Write SlopeMean values into the shape of the basin. More...
 
LSDRaster write_ElevationMean (LSDFlowInfo FlowInfo)
 Write ElevationMean values into the shape of the basin. More...
 
LSDRaster write_AspectMean (LSDFlowInfo FlowInfo)
 Write AspectMean values into the shape of the basin. More...
 
LSDRaster write_ReliefMean (LSDFlowInfo FlowInfo)
 Write ReliefMean values into the shape of the basin. More...
 
LSDRaster write_PlanCurvMean (LSDFlowInfo FlowInfo)
 Write PlanCurvMean values into the shape of the basin. More...
 
LSDRaster write_ProfileCurvMean (LSDFlowInfo FlowInfo)
 Write ProfileCurvMean values into the shape of the basin. More...
 
LSDRaster write_TotalCurvMean (LSDFlowInfo FlowInfo)
 Write TotalCurvMean values into the shape of the basin. More...
 
LSDRaster write_PlanCurvMax (LSDFlowInfo FlowInfo)
 Write PlanCurvMax values into the shape of the basin. More...
 
LSDRaster write_ProfileCurvMax (LSDFlowInfo FlowInfo)
 Write ProfileCurvMax values into the shape of the basin. More...
 
LSDRaster write_TotalCurvMax (LSDFlowInfo FlowInfo)
 Write TotalCurvMax values into the shape of the basin. More...
 
LSDRaster write_HillslopeLength_HFR (LSDFlowInfo FlowInfo)
 Write HillslopeLength_HFR values into the shape of the basin. More...
 
LSDRaster write_HillslopeLength_Binned (LSDFlowInfo FlowInfo)
 Write HillslopeLength_Binned values into the shape of the basin. More...
 
LSDRaster write_HillslopeLength_Spline (LSDFlowInfo FlowInfo)
 Write HillslopeLength_Spline values into the shape of the basin. More...
 
LSDRaster write_HillslopeLength_Density (LSDFlowInfo FlowInfo)
 Write HillslopeLength_Density values into the shape of the basin. More...
 
LSDRaster write_FlowLength (LSDFlowInfo FlowInfo)
 Write FlowLength values into the shape of the basin. More...
 
LSDRaster write_DrainageDensity (LSDFlowInfo FlowInfo)
 Write DrainageDensity values into the shape of the basin. More...
 
LSDRaster write_CosmoErosionRate (LSDFlowInfo FlowInfo)
 Write CosmoErosionRate values into the shape of the basin. More...
 
LSDRaster write_OtherErosionRate (LSDFlowInfo FlowInfo)
 Write OtherErosionRate values into the shape of the basin. More...
 
LSDRaster write_CHTMean (LSDFlowInfo FlowInfo)
 Write CHTMean values into the shape of the basin. More...
 
LSDRaster write_EStar (LSDFlowInfo FlowInfo)
 Write EStar values into the shape of the basin. More...
 
LSDRaster write_RStar (LSDFlowInfo FlowInfo)
 Write RStar values into the shape of the basin. More...
 
LSDRaster Merge_Basins (vector< LSDRaster > Basins)
 Method to merge a vector of LSDRaster basins generated using LSDBasin into a single LSDRaster for visualisation. More...
 
map< int, int > count_unique_values_from_litho_raster (LSDIndexRaster &litho, LSDFlowInfo &topo)
 Count the number of each unique lithology value contain in the basin from a topographic raster take a lithologic raster and a topographic raster in argument. More...
 
vector< int > merge_perimeter_nodes_adjacent_basins (vector< LSDBasin > budgerigar, LSDFlowInfo &flowpy)
 merge and contour the perimeter from a vector of adjacent basins WARNING There may be 1 pixel-size holes in the perimeter. More...
 
map< string, float > get_metrics_both_side_divide (LSDRaster &rasterTemplate, LSDFlowInfo &flowpy, vector< int > &nodes_to_test, map< int, bool > &raster_node_basin)
 Compare metrics inside/out of a basin for a given vector of nodes. Ill detail when it will be done later. More...
 
void square_window_stat_drainage_divide (LSDRaster &rasterTemplate, LSDFlowInfo &flowpy, int size_window)
 apply a square window around each perimeter nodes and extract statistics on each sides of the basin. Ill detail when it will be done later More...
 
void write_windowed_stats_around_drainage_divide_csv (string full_name, LSDFlowInfo &flowpy)
 
void preprocess_DD_metrics (LSDFlowInfo flowpy)
 Preprocess the Drainage Divide tool driver required info Set the perimeter and set a map containing the corresponding x,y ... TODO: add distance from origin and other global parameters. More...
 
void organise_perimeter (LSDFlowInfo &flowpy)
 
void clean_perimeter (LSDFlowInfo &flowpy)
 

Protected Attributes

int NRows
 Number of rows.
 
int NCols
 Number of columns.
 
float XMinimum
 Minimum X coordinate.
 
float YMinimum
 Minimum Y coordinate.
 
float DataResolution
 Data resolution.
 
int NoDataValue
 No data value.
 
map< string, string > GeoReferencingStrings
 A map of strings for holding georeferencing information.
 
int Junction
 Junction Number of the basin, serves as a unique ID of a basin.
 
vector< int > BasinNodes
 Vector of all nodes in basin.
 
map< int, int > nodes_of_basins
 Map of nodes in the basin - faster to check if a node is in the basin due to a binary search tree for large maps.
 
int NumberOfCells
 Number of DEM cells.
 
float Area
 Area in spatial units of the basin.
 
bool Beheaded
 Boolean to show if the basin is beheaded or not.
 
int Outlet_i
 i index of the outlet pixel
 
int Outlet_j
 j index of the outlet pixel
 
int BasinOrder
 The Strahler order of the basin.
 
int Centroid_i
 The i index of the centroid of the basin.
 
int Centroid_j
 The j index of the centroid of the basin.
 
float SlopeMean
 Mean basin slope.
 
float ElevationMean
 Mean basin elevation.
 
float AspectMean
 Mean basin aspect.
 
float ReliefMean
 Mean basin relief.
 
float PlanCurvMean
 Mean basin planform curvature.
 
float ProfileCurvMean
 Mean basin profile curvature.
 
float TotalCurvMean
 Mean basin total curvature.
 
float PlanCurvMax
 Max basin planform curvature.
 
float ProfileCurvMax
 Max basin profile curvature.
 
float TotalCurvMax
 Max basin total curvature.
 
float HillslopeLength_HFR
 Mean hillslope length from hilltop flow routing.
 
float HillslopeLength_Binned
 Mean hillslope length from binned boomerang plots.
 
float HillslopeLength_Spline
 Mean hillslope length from spline curves on boomerang plots.
 
float HillslopeLength_Density
 Mean hillslope length from drainage density.
 
float FlowLength
 Basin flowlength.
 
float DrainageDensity
 Basin drainage density.
 
vector< int > Perimeter_i
 Basin Perimeter's j index.
 
vector< int > Perimeter_j
 Basin Perimeter's j index.
 
vector< int > Perimeter_nodes
 Basin Perimeter's node index.
 
vector< int > Perimeter_nodes_sorted
 Basin Perimeter's node index, sorted by followed order.
 
map< int, int > Perimeter_nodes_sorted_id
 corresponding map giving an index to the sorted perimeter. Mostly for testing and debugging purposes.
 
map< int, int > Perimeter_nodes_map
 increase the speed of checking whether a node is perimeter or not compare to find in a vector
 
float CosmoErosionRate
 Cosmo erosion rate.
 
float OtherErosionRate
 Other erosion rate.
 
float CHTMean
 Mean basin hilltop curvature.
 
float EStar
 Basin E* value.
 
float RStar
 Basin R* value.
 
float HilltopPx
 Number of hilltop pixels in a basin.
 
float BedrockFraction
 Fraction of basin mapped bedrock.
 
float Biomass
 AGB density.
 
int AlternativeIndex
 
bool DD_preprocessed
 
map< int, map< string, float > > stats_around_perimeter_window
 
map< int, float > map_of_dist_perim
 
map< int, vector< float > > DD_map
 
map< int, vector< float > > BasinNodesMapOfXY
 

Detailed Description

Object to store information about drainage basins and generate basin average metrics..

Constructor & Destructor Documentation

LSDBasin::LSDBasin ( )
inline

Default constructor method used to create a basin object.

This is necessary since there is a derived class and with derived classes the default constructor of the parent class is automatically called

Author
SMM
Date
28/12/14
LSDBasin::LSDBasin ( int  Junction,
LSDFlowInfo FlowInfo,
LSDJunctionNetwork ChanNet 
)
inline

Constructor method used to create a basin object.

Parameters
Junctionoutlet junction of the basin to be constructed.
FlowInfoLSDFlowInfo object.
ChanNetChannel network object.
Author
SWDG
Date
11/12/12

Member Function Documentation

void LSDBasin::add_basin_to_LSDIndexRaster ( LSDIndexRaster basin_raster,
LSDFlowInfo FlowInfo,
map< int, int > &  drainage_of_other_basins,
int  this_basin_index 
)

This function is used to create a single LSDIndexRaster that contains all the basins in a DEM. It is done by adding each basin in turn (but this only adds a single basin).

Parameters
basin_rasterLSDIndexRaster containing the basin codes. It should be initialsed using write_integer_data_to_LSDIndexRaster
FlowInfothe flowinfo data member
drainage_of_other_basinsThis is a map where the key is an int, which has the basin number, and the value is an int, the number of pixels in the basin. It is somewhat dangerous because it does not make sure that the user is inputting unique basin numbers so some basin numbers could be overwritten
this_basin_indexthe index of the basin being added to the raster
Author
SMM
Date
18/03/2015
bool LSDBasin::are_basins_from_same_base_DEM ( LSDBasin other)

This checks the dimensions of the base DEMs along with georeferencing strings to see if the other basin is from the same DEM as the current basin.

Parameters
otherthe other LSDBasin
Returns
true if the other basin if from the same DEM, false otherwise
Author
SMM
Date
23/2/2016
float LSDBasin::CalculateBasinMax ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the max value of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the max of.
Returns
Max value.
Author
SWDG
Date
11/12/13
float LSDBasin::CalculateBasinMean ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the mean value of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the mean of.
Returns
Mean value.
Author
SWDG
Date
11/12/13
float LSDBasin::CalculateBasinMedian ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the median value of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the median of.
Returns
Median value.
Author
SWDG
Date
17/2/14
float LSDBasin::CalculateBasinMin ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the min value of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the minimum of.
Returns
Min value.
Author
SWDG
Date
17/2/14
float LSDBasin::CalculateBasinPercentile ( LSDFlowInfo FlowInfo,
LSDRaster  Data,
int  Percentile 
)

Calculate the percentile value of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the percentile of.
Returns
Percentile value.
Author
SWDG
Date
5/2/17
float LSDBasin::CalculateBasinRange ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the range of values of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the range of.
Returns
Range value.
Author
SWDG
Date
17/2/14
float LSDBasin::CalculateBasinStdDev ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the Standard Deviation of values of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the standard deviation of.
Returns
Standard deviation value.
Author
SWDG
Date
17/2/14
float LSDBasin::CalculateBasinStdError ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the Standard error of values of an LSDRaster which falls inside a basin.

Parameters
FlowInfoFlowinfo object.
DataValues to find the standard error of.
Returns
Standard error value.
Author
SWDG
Date
17/2/14
int LSDBasin::CalculateNumDataPoints ( LSDFlowInfo FlowInfo,
LSDRaster  Data 
)

Calculate the number of data points of an LSDRaster which fall inside a basin.

Useful for checking that an average value is not just taken from a single data point.

Parameters
FlowInfoFlowinfo object.
DataValues to count.
Returns
Number of data points.
Author
SWDG
Date
17/2/14
map< int, int > LSDBasin::count_unique_values_from_litho_raster ( LSDIndexRaster litho,
LSDFlowInfo topo 
)

Count the number of each unique lithology value contain in the basin from a topographic raster take a lithologic raster and a topographic raster in argument.

Author
BG
Date
17/09/17
float LSDBasin::get_Area ( ) const
inline
Returns
Area of basin in spataial units.
float LSDBasin::get_AspectMean ( ) const
inline
Returns
Mean aspect.
vector<int> LSDBasin::get_BasinNodes ( ) const
inline
Returns
Nodes of the basin.
int LSDBasin::get_BasinOrder ( ) const
inline
Returns
Stream order of basin.
float LSDBasin::get_BedrockFraction ( ) const
inline
Returns
fraction basin that is rock rather than soil mantled
bool LSDBasin::get_Beheaded ( ) const
inline
Returns
Boolean value of whether a basin is beheaded or not.
int LSDBasin::get_Centroid_i ( ) const
inline
Returns
i index of Centroid pixel.
int LSDBasin::get_Centroid_j ( ) const
inline
Returns
j index of Centroid pixel.
float LSDBasin::get_CHTMean ( ) const
inline
Returns
Mean hilltop curvature.
float LSDBasin::get_CosmoErosionRate ( ) const
inline
Returns
Cosmo erosion rate.
float LSDBasin::get_DataResolution ( ) const
inline
Returns
Data resolution as an integer.
float LSDBasin::get_DrainageDensity ( ) const
inline
Returns
Drainage Density.
float LSDBasin::get_ElevationMean ( ) const
inline
Returns
Mean elevation.
float LSDBasin::get_EStar ( ) const
inline
Returns
E* value.
float LSDBasin::get_FlowLength ( ) const
inline
Returns
Flow length.
map<string,string> LSDBasin::get_GeoReferencingStrings ( ) const
inline
Returns
Georeferencing information
float LSDBasin::get_HillslopeLength_Binned ( ) const
inline
Returns
Hillslope length from boomerang bins.
float LSDBasin::get_HillslopeLength_Density ( ) const
inline
Returns
Hillslope length from drainage density.
float LSDBasin::get_HillslopeLength_HFR ( ) const
inline
Returns
Hillslope length from hilltop flow routing.
float LSDBasin::get_HillslopeLength_Spline ( ) const
inline
Returns
Hillslope length from boomerang splines.
int LSDBasin::get_HilltopPx ( ) const
inline
Returns
Number of hilltop pixels in the basin.
int LSDBasin::get_Junction ( ) const
inline
Returns
Junction Number of the basin.
map< string, float > LSDBasin::get_metrics_both_side_divide ( LSDRaster rasterTemplate,
LSDFlowInfo flowpy,
vector< int > &  nodes_to_test,
map< int, bool > &  raster_node_basin 
)

Compare metrics inside/out of a basin for a given vector of nodes. Ill detail when it will be done later.

Parameters
rasterTemplateand the vector of node to test
Author
BG
Date
23/12/17
int LSDBasin::get_NCols ( ) const
inline
Returns
Number of columns as an integer.
int LSDBasin::get_NoDataValue ( ) const
inline
Returns
No Data Value as an integer.
int LSDBasin::get_NRows ( ) const
inline
Returns
Number of rows as an integer.
int LSDBasin::get_NumberOfCells ( ) const
inline
Returns
Number of cells in the basin.
float LSDBasin::get_OtherErosionRate ( ) const
inline
Returns
Other eroision rate.
int LSDBasin::get_Outlet_i ( ) const
inline
Returns
i index of outlet pixel.
int LSDBasin::get_Outlet_j ( ) const
inline
Returns
j index of outlet pixel.
int LSDBasin::get_Outlet_node ( ) const
inline
Returns
the node index of the outlet
vector<int> LSDBasin::get_Perimeter_i ( ) const
inline
Returns
Basin Perimeter's i index.
vector<int> LSDBasin::get_Perimeter_j ( ) const
inline
Returns
Basin Perimeter's j index.
vector<int> LSDBasin::get_Perimeter_nodes ( ) const
inline
Returns
Basin Perimiter's node indices
float LSDBasin::get_PlanCurvMax ( ) const
inline
Returns
Max plan curvature.
float LSDBasin::get_PlanCurvMean ( ) const
inline
Returns
Mean plan curvature.
float LSDBasin::get_ProfileCurvMax ( ) const
inline
Returns
Max profile curvature.
float LSDBasin::get_ProfileCurvMean ( ) const
inline
Returns
Mean profile curvature.
float LSDBasin::get_ReliefMean ( ) const
inline
Returns
Mean relief.
float LSDBasin::get_RStar ( ) const
inline
Returns
R* value.
float LSDBasin::get_SlopeMean ( ) const
inline
Returns
Mean slope.
vector< int > LSDBasin::get_source_node_from_perimeter ( vector< int >  perimeter,
LSDFlowInfo flowpy,
LSDJunctionNetwork junky,
int  pixel_window 
)

detect the source nodes in a pixel window around a perimeter, for instance a basin perimeter It needs a sequence of nodes where it will loop around and gather all the source nodes encountered.

Parameters
vectorof nodes, Flowinfo object and a JunctionNetwork object and a number of pixel for the window.
Returns
vector of node indices of the new perimeter
Author
BG
Date
11/10/17
Parameters
vectorof nodes, Flowinfo object and a JunctionNetwork object and a number of pixel for the window.
Returns
vector of node indices of the new perimeter
Author
BG
Date
10/10/17
float LSDBasin::get_TotalCurvMax ( ) const
inline
Returns
Max total curvature.
float LSDBasin::get_TotalCurvMean ( ) const
inline
Returns
Mean total curvature.
float LSDBasin::get_XMinimum ( ) const
inline
Returns
Minimum X coordinate as an integer.
float LSDBasin::get_YMinimum ( ) const
inline
Returns
Minimum Y coordinate as an integer.
bool LSDBasin::is_adjacent ( LSDBasin DifferentBasin,
LSDFlowInfo flowpy 
)

This function check if two basin are adjacent return true if the two basin are adjacent with at least one pixel TODO add a minimum adjacent pixel parameter.

Parameters
LSDBasinanother LSDBasin object
Author
BG
Date
10/10/2017
int LSDBasin::is_node_in_basin ( int  test_node)

check whether a test node is in the basin or not

Parameters
test_nodenode to test
Returns
integer which is 1 if node is in the basin or 0 if it is not
Author
FJC
Date
21/02/14
bool LSDBasin::is_this_a_subbasin ( LSDBasin other)

This checks to see if a supplied basin is a subbasin of the other.

Parameters
otherthe other LSDBasin
Returns
true if the other basin is a subbasin of the first basin
Author
SMM
Date
23/2/2016
LSDRaster LSDBasin::keep_only_internal_hilltop_curvature ( LSDRaster  hilltop_curvature,
LSDFlowInfo  FlowInfo 
)

remove hilltop curvature values that are at the edge of the basin

Parameters
hilltop_curvatureraster of CHT
FlowInfoFlowinfo object
Returns
LSDRaster of internal hilltop curvature values
Author
FJC
Date
19/03/15
LSDRaster LSDBasin::Merge_Basins ( vector< LSDRaster Basins)

Method to merge a vector of LSDRaster basins generated using LSDBasin into a single LSDRaster for visualisation.

50% less computationally expesnive than the old method, but still very inefficient. Does not test for overlaps in the data, will simply overwrite so that the last value to occupy a cell will be written.

Parameters
Basinsvector of LSDRasters of basins.
Returns
LSDRaster of all the merged basins.
Author
SWDG
Date
07/12/14
vector< int > LSDBasin::merge_perimeter_nodes_adjacent_basins ( vector< LSDBasin budgerigar,
LSDFlowInfo flowpy 
)

merge and contour the perimeter from a vector of adjacent basins WARNING There may be 1 pixel-size holes in the perimeter.

Parameters
vectorof LSDBasin objects
Author
BG
Date
10/10/17
Parameters
vectorof LSDBasin objects
Returns
vector of node indices of the new perimeter
Author
BG
Date
10/10/17
vector< int > LSDBasin::order_perimeter_nodes ( LSDFlowInfo FlowInfo)

Orders perimeter nodes from the outlet.

Parameters
FlowInfothe LSDFlowInfo object
Author
FJC
Date
16/01/18
void LSDBasin::Plot_Boomerang ( LSDRaster Slope,
LSDRaster DinfArea,
LSDFlowInfo FlowInfo,
float  log_bin_width,
int  SplineResolution,
float  bin_threshold,
string  Path 
)

Generate text files containing data to plot boomerangs.

Writes 3 files to the output path, coded with the basin's unique junction number which can the be read with python and plotted.

Parameters
SlopeLSDRaster of slope.
DinfAreaD-infinity Flowarea LSDRaster.
FlowInfoFlowinfo object.
log_bin_widthWidth (in log space) of the bins, with respect to D_inf.
SplineResolutionNumber of values between each point for the spline curve.
bin_thresholdThreshold fraction of values needed to keep a bin.
PathThe output path where the data files will be written to, including the final slash.
Author
SWDG
Date
12/12/13
void LSDBasin::preprocess_DD_metrics ( LSDFlowInfo  flowpy)

Preprocess the Drainage Divide tool driver required info Set the perimeter and set a map containing the corresponding x,y ... TODO: add distance from origin and other global parameters.

Parameters
FlowInfoobject corresponding to the original raster where the Basin has been calculated
Author
BG
Date
26/12/2017
void LSDBasin::print_perimeter_hypsometry_to_csv ( LSDFlowInfo FlowInfo,
string  perimeter_fname,
LSDRaster ElevationRaster 
)

Prints the perimeter nodes to a csv file plus elevations.

Parameters
FlowInfothe LSDFlowInfo object
stringperimeter_fname
perimeter_nodesvector of perimeter nodes that can be passed. Pass an empty vector if you want to use the default perimeter finder.
ElevationRasterelevation raster
Author
FJC
Date
10/01/18
void LSDBasin::print_perimeter_to_csv ( LSDFlowInfo FlowInfo,
string  perimeter_fname 
)

Prints the perimeter nodes to a csv file.

Parameters
FlowInfothe LSDFlowInfo object
stringperimeter_fname
Author
SMM
Date
26/04/2017
void LSDBasin::set_all_HillslopeLengths ( LSDFlowInfo FlowInfo,
LSDRaster HillslopeLengths,
LSDRaster Slope,
LSDRaster DinfArea,
float  log_bin_width,
int  SplineResolution,
float  bin_threshold 
)

Set the four different hillslope length measurements for the basin.

Parameters
FlowInfoFlowinfo object.
HillslopeLengthsLSDRaster of hillslope lengths from the hilltop flow routing method.
SlopeLSDRaster of slope.
DinfAreaD-infinity Flowarea LSDRaster.
log_bin_widthWidth (in log space) of the bins, with respect to D_inf.
SplineResolutionNumber of values between each point for the spline curve.
bin_thresholdThreshold fraction of values needed to keep a bin.
Author
SWDG
Date
12/12/13
void LSDBasin::set_All_Parameters ( LSDRaster Elevation,
LSDFlowInfo FlowInfo,
LSDRaster CHT,
LSDIndexRaster StreamNetwork,
LSDRaster HillslopeLengths,
LSDRaster Relief,
float  window_radius,
float  log_bin_width,
int  SplineResolution,
float  bin_threshold,
float  CriticalSlope,
float  CosmoErosionRate = -9999,
float  OtherErosionRate = -9999 
)

Set all of the basin parameters with one call.

Runs polyfit to get the elevation derivatives, so can be quite memory intensive. Method calls all the setters one by one, to populate all the basin parameters. So a basin can be created and all it's properties set with 2 calls. The erosion rates have default parameters of -9999 as these are rarely used variables.

Parameters
ElevationLSDRaster of filled elevation values.
FlowInfoFlowinfo object.
CHTLSDRaster of hilltop curvatures.
StreamNetworkLSDIndexRaster of the stream network.
HillslopeLengthsLSDRaster of hillslope lengths from the hilltop flow routing method.
ReliefLSDRaster of the hilltop relief.
window_radiusRadius in spatial units for the polyft routine.
log_bin_widthWidth (in log space) of the bins, with respect to D_inf. Default value is 0.1.
SplineResolutionNumber of values between each point for the spline curve. Default value is 10000.
bin_thresholdThreshold fraction of values needed to keep a bin. Default value is 0.
CriticalSlopeSlope threshold used for E* R* calculations. Default value is 0.4.
CosmoErosionRateErosion rate from cosmo.
OtherErosionRateErosion rate from another source.
Author
SWDG
Date
12/12/13
void LSDBasin::set_AspectMean ( LSDFlowInfo FlowInfo,
LSDRaster  Aspect 
)

Set the mean aspect of a basin.

Parameters
FlowInfoFlowinfo object.
AspectValues to find the mean of.
Author
SWDG
Date
17/2/14
void LSDBasin::set_BedrockFraction ( LSDFlowInfo FlowInfo,
LSDRaster  RockExposure 
)
inline

Set the Rock Exposure fraction of the basin.

Author
DTM
Date
14/07/15
void LSDBasin::set_CHTMean ( LSDFlowInfo FlowInfo,
LSDRaster  CHT 
)
inline

Set the mean hilltop curvature of a basin.

Parameters
FlowInfoFlowinfo object.
CHTValues to find the mean of.
Author
SWDG
Date
12/12/13
void LSDBasin::set_CosmoErosionRate ( float  ErosionRate)
inline

Set the Cosmogenic erosion rate.

Parameters
ErosionRateErosion rate - No sanity check on this value.
Author
SWDG
Date
11/12/13
void LSDBasin::set_DrainageDensity ( )
inline

Set basin drainage density.

Author
SWDG
Date
12/12/13
void LSDBasin::set_ElevationMean ( LSDFlowInfo FlowInfo,
LSDRaster  Elevation 
)
inline

Set the mean Elevation of a basin.

Parameters
FlowInfoFlowinfo object.
ElevationValues to find the mean of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_EStar_RStar ( float  CriticalSlope)

Calculate E* and R* values for the basin, using hilltop flow routed hillslope lengths.

Parameters
CriticalSlopeslope threshold value, typically 0.4.
Author
SWDG
Date
12/12/13
void LSDBasin::set_FlowLength ( LSDIndexRaster StreamNetwork,
LSDFlowInfo FlowInfo 
)

Calculate flow length for the basin using the D8 flow directions.

Parameters
StreamNetworkthe channel network.
FlowInfoFlowinfo object.
Author
SWDG
Date
12/12/13
void LSDBasin::set_HillslopeLength_Density ( )
inline

Set the mean HillslopeLength from drainage density.

Author
SWDG
Date
12/12/13
void LSDBasin::set_HillslopeLength_HFR ( LSDFlowInfo FlowInfo,
LSDRaster  HillslopeLengths 
)
inline

Set the mean HillslopeLength from hilltop flow routing.

Parameters
FlowInfoFlowinfo object.
HillslopeLengthsValues to find the mean of.
Author
SWDG
Date
12/12/13
void LSDBasin::set_HillslopeLengths_Boomerang ( LSDRaster Slope,
LSDRaster DinfArea,
LSDFlowInfo FlowInfo,
float  log_bin_width,
int  SplineResolution,
float  bin_threshold 
)

Set mean HillslopeLengths from boomerang plots from both splines and binned data.

Parameters
SlopeLSDRaster of slope.
DinfAreaD-infinity Flowarea LSDRaster.
FlowInfoFlowinfo object.
log_bin_widthWidth (in log space) of the bins, with respect to D_inf.
SplineResolutionNumber of values between each point for the spline curve.
bin_thresholdThreshold fraction of values needed to keep a bin.
Author
SWDG
Date
12/12/13
void LSDBasin::set_HilltopPx ( LSDFlowInfo FlowInfo,
LSDRaster  Hilltops 
)

Set the count of the number of hilltop pixels in a basin.

Parameters
FlowInfoFlowinfo object.
Hilltopsa raster of hilltop data.
Author
SWDG
Date
18/6/15
void LSDBasin::set_OtherErosionRate ( float  ErosionRate)
inline

Set the Other erosion rate.

Parameters
ErosionRateErosion rate - No sanity check on this value.
Author
SWDG
Date
11/12/13
void LSDBasin::set_Perimeter ( LSDFlowInfo FlowInfo)

Set the perimeter pixels using a simple edge detection algorithm.

This is quite messy and will be improved soon.

Parameters
FlowInfoFlowinfo object.
Author
SWDG
Date
12/12/13
void LSDBasin::set_perimeter_from_vector ( vector< int >  perimeter_nodes)
inline

Set the perimeter pixels by passing in your own vector of perimeter nodes.

Parameters
perimeter_nodesvector of perimeter nodes
Author
FJC
Date
26/01/18
void LSDBasin::set_PlanCurvMax ( LSDFlowInfo FlowInfo,
LSDRaster  PlanCurv 
)
inline

Set the max PlanCurve of a basin.

Parameters
FlowInfoFlowinfo object.
PlanCurvValues to find the max of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_PlanCurvMean ( LSDFlowInfo FlowInfo,
LSDRaster  PlanCurv 
)
inline

Set the mean PlanCurve of a basin.

Parameters
FlowInfoFlowinfo object.
PlanCurvValues to find the mean of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_ProfileCurvMax ( LSDFlowInfo FlowInfo,
LSDRaster  ProfileCurv 
)
inline

Set the max ProfCurv of a basin.

Parameters
FlowInfoFlowinfo object.
ProfileCurvValues to find the max of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_ProfileCurvMean ( LSDFlowInfo FlowInfo,
LSDRaster  ProfileCurv 
)
inline

Set the mean ProfCurv of a basin.

Parameters
FlowInfoFlowinfo object.
ProfileCurvValues to find the mean of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_ReliefMean ( LSDFlowInfo FlowInfo,
LSDRaster  Relief 
)
inline

Set the mean Relief of a basin.

Parameters
FlowInfoFlowinfo object.
ReliefValues to find the mean of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_SlopeMean ( LSDFlowInfo FlowInfo,
LSDRaster  Slope 
)
inline

Set the mean slope of a basin.

Parameters
FlowInfoFlowinfo object.
SlopeValues to find the mean of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_TotalCurvMax ( LSDFlowInfo FlowInfo,
LSDRaster  TotalCurv 
)
inline

Set the max TotalCurv of a basin.

Parameters
FlowInfoFlowinfo object.
TotalCurvValues to find the max of.
Author
SWDG
Date
11/12/13
void LSDBasin::set_TotalCurvMean ( LSDFlowInfo FlowInfo,
LSDRaster  TotalCurv 
)
inline

Set the mean TotalCurv of a basin.

Parameters
FlowInfoFlowinfo object.
TotalCurvValues to find the mean of.
Author
SWDG
Date
11/12/13
void LSDBasin::square_window_stat_drainage_divide ( LSDRaster rasterTemplate,
LSDFlowInfo flowpy,
int  size_window 
)

apply a square window around each perimeter nodes and extract statistics on each sides of the basin. Ill detail when it will be done later

Parameters
rasterTemplateand the vector of node to test
Author
BG
Date
23/12/17
LSDRaster LSDBasin::TrimPaddedRasterToBasin ( int  padding_pixels,
LSDFlowInfo FlowInfo,
LSDRaster Raster_Data 
)

This function creates a padded, georeferenced raster from a raw raster file that is trimmed to the dimension of a basin.

Includes a padding function so that one can pad either to catch streams for CRN analysis or for wider padding to catch peaks for topographic shielding (also for CRN analysis)

Parameters
padding_pixelsthe number of pixels with which to pad the raster
FlowInfoan LSDFlowInfo object
Raster_Datathe raster that gets trimmed. Its georeferencing needs to be the same as the basin obect georeferencing.
Author
SMM
Date
18/03/2015
LSDRaster LSDBasin::write_Area ( LSDFlowInfo  FlowInfo)
inline

Write Area values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of Area values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_AspectMean ( LSDFlowInfo  FlowInfo)
inline

Write AspectMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of AspectMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDIndexRaster LSDBasin::write_BasinOrder ( LSDFlowInfo  FlowInfo)
inline

Write BasinOrder values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDIndexRaster of BasinOrder values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_CHTMean ( LSDFlowInfo  FlowInfo)
inline

Write CHTMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of CHTMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_CosmoErosionRate ( LSDFlowInfo  FlowInfo)
inline

Write CosmoErosionRate values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of CosmoErosionRate values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_DrainageDensity ( LSDFlowInfo  FlowInfo)
inline

Write DrainageDensity values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of DrainageDensity values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_ElevationMean ( LSDFlowInfo  FlowInfo)
inline

Write ElevationMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of ElevationMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_EStar ( LSDFlowInfo  FlowInfo)
inline

Write EStar values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of EStar values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_FlowLength ( LSDFlowInfo  FlowInfo)
inline

Write FlowLength values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of FlowLength values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_HillslopeLength_Binned ( LSDFlowInfo  FlowInfo)
inline

Write HillslopeLength_Binned values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of HillslopeLength_Binned values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_HillslopeLength_Density ( LSDFlowInfo  FlowInfo)
inline

Write HillslopeLength_Density values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of HillslopeLength_Density values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_HillslopeLength_HFR ( LSDFlowInfo  FlowInfo)
inline

Write HillslopeLength_HFR values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of HillslopeLength_HFR values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_HillslopeLength_Spline ( LSDFlowInfo  FlowInfo)
inline

Write HillslopeLength_Spline values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of HillslopeLength_Spline values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDIndexRaster LSDBasin::write_integer_data_to_LSDIndexRaster ( int  Param,
LSDFlowInfo  FlowInfo 
)

Write an integer value to an LSDIndexRaster in the shape of the basin.

Parameters
Paraminteger value to be written
FlowInfoFlowinfo object.
Returns
LSDIndexRaster of the data in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDIndexRaster LSDBasin::write_Junction ( LSDFlowInfo  FlowInfo)
inline

Write Junction values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDIndexRaster of Junction values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDIndexRaster LSDBasin::write_NumberOfCells ( LSDFlowInfo  FlowInfo)
inline

Write NumberOfCells values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDIndexRaster of NumberOfCells values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_OtherErosionRate ( LSDFlowInfo  FlowInfo)
inline

Write OtherErosionRate values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of OtherErosionRate values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_PlanCurvMax ( LSDFlowInfo  FlowInfo)
inline

Write PlanCurvMax values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of PlanCurvMax values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_PlanCurvMean ( LSDFlowInfo  FlowInfo)
inline

Write PlanCurvMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of PlanCurvMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_ProfileCurvMax ( LSDFlowInfo  FlowInfo)
inline

Write ProfileCurvMax values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of ProfileCurvMax values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_ProfileCurvMean ( LSDFlowInfo  FlowInfo)
inline

Write ProfileCurvMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of ProfileCurvMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDIndexRaster LSDBasin::write_raster_data_to_LSDIndexRaster ( LSDIndexRaster  Data,
LSDFlowInfo  FlowInfo 
)

Cookie cut data from an LSDIndexRaster into the shape of the basin.

Parameters
DataLSDIndexRaster data to be written.
FlowInfoFlowinfo object.
Returns
LSDIndexRaster of the data in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_raster_data_to_LSDRaster ( LSDRaster  Data,
LSDFlowInfo  FlowInfo 
)

Cookie cut data from an LSDRaster into the shape of the basin.

Parameters
DataLSDRaster data to be written.
FlowInfoFlowinfo object.
Returns
LSDRaster of the data in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_real_data_to_LSDRaster ( float  Param,
LSDFlowInfo  FlowInfo 
)

Write a real value to an LSDRaster in the shape of the basin.

Parameters
Paramreal value to be written
FlowInfoFlowinfo object.
Returns
LSDRaster of the data in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_ReliefMean ( LSDFlowInfo  FlowInfo)
inline

Write ReliefMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of ReliefMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_RStar ( LSDFlowInfo  FlowInfo)
inline

Write RStar values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of RStar values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_SlopeMean ( LSDFlowInfo  FlowInfo)
inline

Write SlopeMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of SlopeMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_TotalCurvMax ( LSDFlowInfo  FlowInfo)
inline

Write TotalCurvMax values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of TotalCurvMax values in the shape of the basin.
Author
SWDG
Date
12/12/13
LSDRaster LSDBasin::write_TotalCurvMean ( LSDFlowInfo  FlowInfo)
inline

Write TotalCurvMean values into the shape of the basin.

Parameters
FlowInfoFlowinfo object.
Returns
LSDRaster of TotalCurvMean values in the shape of the basin.
Author
SWDG
Date
12/12/13
void LSDBasin::write_windowed_stats_around_drainage_divide_csv ( string  full_name,
LSDFlowInfo flowpy 
)

write the csv file corresponding to the previously calculated windowed stTS Ill detail when it will be done later

Parameters
@authorBG
Date
23/12/17

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