BoulderCodeHub / RWDataPlyr

R package to read and manipulate data from RiverWareTM
3 stars 5 forks source link

Could the package import the RiverWare network? #95

Open amabdallah opened 6 years ago

amabdallah commented 6 years ago

Thanks for the very useful work. So I'm looking if it would be possible to also import the network schematic of RiverWare: nodes and their coordinates and types, links and their start and end nodes and types. It would also be ideal if the package can import the RiverWare template: list of object types and their attributes.

I dont have a RiverWare license yet but it would be very useful to me if the package can import the template, network, and input and output data.

rabutler-usbr commented 6 years ago

Thanks for your interest @amabdallah!

RWDataPlyr is designed to just aggregate and post process RiverWare output. As far as I know, there is no information as you describe included in the output files (at least the rdf, csv, or nc files), so I don't think it is possible.

You might be able to export coordinates from RiverWare, but I can't entirely recall. I know not all models have coordinates associated with their placement, as some are just a schematic. If you could export coordinates, then they'd likely be in a format that you could read into R. If that's what you're after I'd recommend reaching out to the model owners for further discussion.

amabdallah commented 6 years ago

Thanks again @rabutler-usbr for this nice work and for the prompt response.

Good to know. I will work with this tool when I get the RiverWare license in the next few weeks. I'm curious if the tool would work to get the input data as well. I think time series of input data is in csv files but not sure about other types of data and where it is stored. I will also see if it would possible to get the network dynamically using any of RiverWare other files. I'll check in with RiverWare developers some time soon.

I was able to completely and dynamically to get all the input data and the network of WEAP models but not yet its output. The more we can build tools like yours and mine, the more useful WEAP and RiverWare will become to others.

Thanks