Skip to content

Commit 13364fb

Browse files
committed
Fix ATMOSPH.in file creation to be displayed
correctly in GUI! (requires "weird" adding of RootDepth and deleting of all cTop/cBot headers besides cTop/cBot
1 parent 7fec900 commit 13364fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/convert_atmosphere_to_string.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ convert_atmosphere_to_string <- function(
5252
names(atm)[is_short] <- do_pad_short(names(atm)[is_short])
5353
names(atm)[is_long] <- do_pad_long(names(atm)[is_long])
5454

55-
header_text <- c(names(atm)[!grepl("(cTop|cBot)[2-9][1-9]?[0-9]?", names(atm))], "RootDepth") %>%
56-
do_pad_long() %>%
55+
header_text <- c(names(atm)[!grepl("[cTop|cBot][1-9]0?", names(atm))],
56+
do_pad_long("RootDepth")) %>%
5757
kwb.utils::collapsed(collapse = "")
5858

5959
body_lines <- apply(atm, 1L, kwb.utils::collapsed, "")

0 commit comments

Comments
 (0)