ucd-cws / calvin-network-tools

Command line tools for calvin-network-data and calvin-network-app. Includes prm tool for export PRI and DSS files
MIT License
3 stars 5 forks source link

export spatial subset #52

Closed jdherman closed 7 years ago

jdherman commented 7 years ago

@jrmerz in an effort to take advantage of your last days on the job ...... :)

we were wondering how big of an effort it would be to enable something like this:

cnf matrix --format csv blah blah blah --region sacramento-river

I thought it might be doable since the folder structure is already grouped into regions, which could simplify things. The tricky part I'm guessing is the boundary conditions -- similar to the time subset that Mustafa is working on now.

No worries if it's too far off to think about right now, we were just curious.

jrmerz commented 7 years ago

push to NPM calvin-network-tools@3.0.3

Quick notes.

Let me know how that looks or questions/comments

jdherman commented 7 years ago

Wow, this is awesome, thanks!! We shall test .... along with the "time subset" that Mustafa is working on now. If we can get both of those running in the solver, we'll be good to go.

I'll close this now and open a new issue if we run into anything. Thanks again Justin.

jdherman commented 7 years ago

@jrmerz last thing :) is it possible to do this regional export using the old naming convention -- just the node names instead of the full paths? Not by default but maybe a flag option.

jrmerz commented 7 years ago

@jdherman So this would be some work. Splitting the network is actually a function of the HOBBES code. HOBBES only knows the full network path identifiers, it is unaware of the prmnames, or any other property of a node/link.

jdherman commented 7 years ago

Ah ok thanks. Is there any option in the reverse direction -- to output the full HOBBES path when exporting the full network (not a regional subset)?

Our postprocessing scripts use the prmnames, which is why I'm asking. We could figure out how to change them, we just have to be consistent either way.

I know you're officially done now so no pressure to keep up with this stuff. This was the last question that came up last week.