@@ -161,7 +161,10 @@ saveOutput <- function(workingDirectory,
161161 fileType [i ] == " channel_sd_yr.txt" |
162162 fileType [i ] == " channel_sdmorph_day.txt" |
163163 fileType [i ] == " channel_sdmorph_mon.txt" |
164- fileType [i ] == " channel_sdmorph_yr.txt" ){
164+ fileType [i ] == " channel_sdmorph_yr.txt" |
165+ fileType [i ] == " lsunit_wb_day.txt" |
166+ fileType [i ] == " lsunit_wb_mon.txt" |
167+ fileType [i ] == " lsunit_wb_yr.txt" ){
165168 output <- readChannelFile(workingDirectory ,
166169 coreNumber ,
167170 fileName [i ],
@@ -337,8 +340,7 @@ appendListObject <- function(listA, listB){
337340# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
338341
339342# -------------------------------------------------------------------------------
340- # Read channel_sd_xxx.txt file, data is always at daily timestep
341- # xxx could be "day", "month", or "yr" readChannel_sd_dayFile
343+ # Read channel and lsunit data at daily, monthly, yearly time step
342344# ------------------------------------------------------------------------------
343345readChannelFile <- function (workingDirectory ,
344346 coreNumber ,
@@ -354,7 +356,10 @@ readChannelFile <- function(workingDirectory,
354356 " channel_sd_yr.txt" ,
355357 " channel_sdmorph_day.txt" ,
356358 " channel_sdmorph_mon.txt" ,
357- " channel_sdmorph_yr.txt" )
359+ " channel_sdmorph_yr.txt" ,
360+ " lsunit_wb_day.txt" ,
361+ " lsunit_wb_mon.txt" ,
362+ " lsunit_wb_yr.txt" )
358363
359364 filePath <- paste(workingDirectory , " /TxtInOut_" , coreNumber , " /" ,
360365 fileName , sep = " " )
0 commit comments