Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observed Paths #12

Open
laallison opened this issue Sep 18, 2020 · 0 comments
Open

Observed Paths #12

laallison opened this issue Sep 18, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@laallison
Copy link
Collaborator

Create function to show which files are being pulled for observed data - right now this functionality is within the import_observed_data.R, but the function does not return a specific list of the pathnames.

#loop through each of the Formatted Unsteady Flow Files pathnames and pull the files out of dss
for(p in 1:length(plan_events)){
Formatted_UnsteadyFlowFile <- Formatted_UnsteadyFlowFileList[[p]]
event_year <- plan_events[p]

#Recreate the paths for those DSS files
Observed_Pathnames_Formatted <-c()

for(j in 1:nrow(Formatted_UnsteadyFlowFile)){ #for each row in the data frame
  Formmated_Pathname <- paste0("/",Formatted_UnsteadyFlowFile[j,4],"/",
    Formatted_UnsteadyFlowFile[j,5],"/",
    Formatted_UnsteadyFlowFile[j,6],"/",
    "/",
    Formatted_UnsteadyFlowFile[j,8],"/",
    Formatted_UnsteadyFlowFile[j,9],"/")

  Observed_Pathnames_Formatted  <- c(Observed_Pathnames_Formatted , Formmated_Pathname)
}

assign(paste("Observed_Pathnames_Formatted",Plan_Event, sep="_") ,Observed_Pathnames_Formatted)
@laallison laallison added the enhancement New feature or request label Sep 18, 2020
@laallison laallison self-assigned this Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant