Skip to content

Commit

Permalink
rename + file restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Manoj committed Aug 7, 2024
1 parent 63c8c51 commit 0600d91
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 210 deletions.
File renamed without changes.
98 changes: 0 additions & 98 deletions in/climadat.csv

This file was deleted.

File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions in/fac.dat

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed in/make_geometry_out/geom.Rds
Binary file not shown.
98 changes: 0 additions & 98 deletions in/raindat.csv

This file was deleted.

File renamed without changes.
3 changes: 2 additions & 1 deletion src/hillslope_method.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ hillslope_tool <- function(hillslope_nr, li_spatial, plot_2d_catena=FALSE, plot_
# safty check if hillslope_nr is set to zero
if(hillslope_nr == 0) stop("---Do not use hillslope_nr = 0---")

hill <- hillslope_as_pts[hillslope_as_pts[,3]==hillslope_nr,]
if(hillslope_nr == -1) hill <- hillslope_as_pts # Untested - Ashish 06.08.2024
else hill <- hillslope_as_pts[hillslope_as_pts[,3]==hillslope_nr,]

#extract number of cells and area of hillslope
number_of_cells <- length(hill[,1])
Expand Down
3 changes: 1 addition & 2 deletions src/run.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ toolname <- tolower(Sys.getenv("TOOL_RUN"))
# make functions from Catflow-R-Package available
source("catlib.R")


# Switch for the different tools available in this package
if (toolname == "make_representative_hillslope") {
make_geometry_representative_hillslope(params,data_paths)
} else {
# in any other case, the tool was invalid or not configured
print(paste("[", Sys.time(), "] Either no TOOL_RUN environment variable available, or '", toolname, "' is not valid.\n", sep = ""))
print(paste("[", Sys.time(), "] Either no TOOL_RUN environment variable available, or '", toolname, "' is not valid.\n", sep = "")) # nolint: line_length_linter.
}

0 comments on commit 0600d91

Please sign in to comment.