189 vector<string> expandedFiles;
193 string fileSpecLower = fileSpec;
194 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
195 fileSpecLower.begin(), ::tolower);
197 if (fileSpecLower ==
"all")
200 expandedFiles.insert(expandedFiles.end(),
201 {
"suspended_sediment",
202 "avg_suspended_sediment",
209 "sediment_top_elevation",
215 "potential_platform_erosion",
216 "actual_platform_erosion",
217 "total_potential_platform_erosion",
218 "total_actual_platform_erosion",
219 "potential_beach_erosion",
220 "actual_beach_erosion",
221 "total_potential_beach_erosion",
222 "total_actual_beach_erosion",
224 "total_beach_deposition",
226 "local_cons_sediment_slope",
231 "avg_wave_orientation",
233 "basement_elevation",
238 "total_cliff_collapse",
239 "cliff_collapse_deposition",
240 "total_cliff_collapse_deposition",
242 "potential_platform_erosion_mask",
246 "deep_water_wave_angle",
247 "deep_water_wave_height",
248 "deep_water_wave_period",
249 "polygon_uncons_sediment_up_or_down_drift",
250 "polygon_uncons_sediment_gain_or_loss"});
252 else if (fileSpecLower ==
"usual")
255 expandedFiles.insert(expandedFiles.end(),
256 {
"suspended_sediment",
257 "avg_suspended_sediment",
264 "sediment_top_elevation",
269 "potential_platform_erosion",
270 "actual_platform_erosion",
271 "total_potential_platform_erosion",
272 "total_actual_platform_erosion",
273 "potential_beach_erosion",
274 "actual_beach_erosion",
275 "total_potential_beach_erosion",
276 "total_actual_beach_erosion",
278 "total_beach_deposition",
280 "local_cons_sediment_slope",
283 "avg_wave_orientation",
285 "basement_elevation",
288 "total_cliff_collapse",
289 "cliff_collapse_deposition",
290 "total_cliff_collapse_deposition",
293 "polygon_uncons_sediment_up_or_down_drift",
294 "polygon_uncons_sediment_gain_or_loss",
304 else if (fileSpecLower ==
"cmetools")
307 expandedFiles.insert(expandedFiles.end(),
317 "total_actual_platform_erosion",
318 "total_actual_beach_erosion",
319 "total_beach_deposition",
321 "basement_elevation",
324 "total_cliff_collapse",
325 "cliff_collapse_deposition",
326 "total_cliff_collapse_deposition",
331 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
333 return expandedFiles;
338 expandedFiles.push_back(fileSpec);
342 return expandedFiles;
351 vector<string> expandedFiles;
355 string fileSpecLower = fileSpec;
356 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
357 fileSpecLower.begin(), ::tolower);
359 if (fileSpecLower ==
"all")
362 expandedFiles.insert(expandedFiles.end(), {
"coast",
"cliff_edge",
"wave_angle",
"normals",
"invalid_normals",
"avg_wave_angle",
"wave_energy",
"mean_wave_energy",
"breaking_wave_height",
"coast_curvature",
"polygon_node",
"polygon",
"cliff_notch",
"wave_transect_points",
"shadow_boundary",
"downdrift_boundary",
"deep_water_wave_angle",
"wave_setup",
"storm_surge",
"run_up",
"flood_line"});
364 else if (fileSpecLower ==
"usual")
367 expandedFiles.insert(
369 {
"coast",
"cliff_edge",
"wave_angle",
"normals",
"invalid_normals",
370 "avg_wave_angle",
"wave_energy",
"mean_wave_energy",
371 "breaking_wave_height",
"polygon",
"cliff_notch",
372 "shadow_boundary",
"downdrift_boundary",
"deep_water_wave_angle"});
374 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
376 return expandedFiles;
381 expandedFiles.push_back(fileSpec);
385 return expandedFiles;
394 vector<string> expandedFiles;
398 string fileSpecLower = fileSpec;
399 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
400 fileSpecLower.begin(), ::tolower);
402 if (fileSpecLower ==
"all")
405 expandedFiles.insert(expandedFiles.end(), {
"wave_setup",
"wave_runup",
"beach_change_net",
"beach_deposition",
"beach_erosion",
"cliff_collapse_deposition",
"cliff_collapse_erosion",
"cliff_collapse_net",
"platform_erosion",
"sea_area",
"suspended",
"water_level"});
407 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
409 return expandedFiles;
414 expandedFiles.push_back(fileSpec);
418 return expandedFiles;
426 vector<string> expandedFiles;
430 string fileSpecLower = fileSpec;
431 std::transform(fileSpecLower.begin(), fileSpecLower.end(),
432 fileSpecLower.begin(), ::tolower);
434 if (fileSpecLower ==
"all")
437 expandedFiles.insert(expandedFiles.end(), {});
439 else if (fileSpecLower ==
"" or fileSpecLower ==
"none")
441 return expandedFiles;
446 expandedFiles.push_back(fileSpec);
450 return expandedFiles;
457 std::transform(my_text.begin(), my_text.end(), my_text.begin(), ::tolower);
double m_dCoarseMedianSize
double m_dSyntheticTransectSpacing
string m_strSedimentInputLocation
string GetOmitGridEdges() const
double m_dSedimentDensity
double m_dPlatformErosionResistance
bool m_bCoastPlatformErosion
double m_dSeawaterDensity
bool m_bCSVPerTimestepResults
int m_nBeachTransportAtEdges
double m_dCliffSlopeLimit
double m_dDeepWaterWaveHeight
vector< string > GetTimeSeriesFiles() const
Get time series files with keyword expansion support.
vector< string > GetFloodFiles() const
Get time series files with keyword expansion support.
vector< string > m_vecConsCoarseFiles
string m_strSuspendedSedFile
CConfiguration()
Constructor.
string m_strWaveInputMode
string m_strStartDateTime
double m_dInitialWaterLevel
double m_dGravitationalAcceleration
bool m_bSaveParallelProfiles
int m_nCoastlineSmoothingWindow
vector< string > m_vecUnconsSandFiles
int m_nWavePropagationModel
string m_strInterventionClassFile
vector< string > m_vecTimeSeriesFiles
double m_dDeepWaterWaveOrientation
int m_nBeachErosionEquation
string m_strOmitGridEdges
bool m_bBeachSedimentTransport
vector< string > m_vecRasterFiles
string m_strWaveStationDataFile
string m_strBasementDEMFile
~CConfiguration()
Destructor.
double m_dBeachSedimentPorosity
vector< string > m_vecConsSandFiles
string m_strSedimentInputType
vector< string > m_vecVectorFiles
string m_strFloodCoastline
int m_nCliffEdgePolynomialOrder
vector< string > m_vecUnconsFineFiles
bool m_bOutputErosionPotential
string m_strFloodInputLocation
vector< double > m_vecSliceElevations
int m_nProfileSmoothingWindow
vector< int > m_vecProfileNumbers
vector< string > m_vecSaveTimes
int m_nCliffEdgeSmoothingWindow
double m_dCoarseErosivity
double m_dBreakingWaveRatio
string m_strWaveHeightTimeSeries
bool m_bHasFinalWaterLevel
double m_dCliffDepositionA
int m_nCoastlineSmoothing
vector< unsigned long > m_vecProfileTimesteps
vector< string > GetRasterFiles() const
Get raster files with keyword expansion support.
double m_dStartDepthRatio
void InitializeDefaults()
Initialize all parameters with default values.
string m_strFloodLocations
string m_strSaveDigitsMode
double m_dCliffErosionResistance
double m_dMaxBeachElevation
vector< string > GetVectorFiles() const
Get vector files with keyword expansion support.
string m_strSedimentInputDetails
int m_nCliffEdgeSmoothing
vector< string > m_vecConsFineFiles
bool m_bUseSystemTimeForSeed
vector< string > m_vecUnconsCoarseFiles
string m_strInterventionHeightFile
This file contains global definitions for CoastalME.
Unified configuration class for CoastalME simulation parameters.