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

Automate creation of topology files with scaled areas for re-routing corrected flows #54

Open
arbennett opened this issue Mar 24, 2021 · 1 comment

Comments

@arbennett
Copy link
Member

arbennett commented Mar 24, 2021

In the current workflows I've created these manually to do the rerouting of flows like so:

yakima_topo_scaled = yakima_topo.copy(deep=True)
yakima_topo_scaled['Contrib_Area'] = yakima_topo_scaled['Length'].copy()
yakima_topo_scaled['Contrib_Area'].values[:] = SEC_PER_YEAR * M_PER_KM
yakima_topo_scaled.to_netcdf('../topologies/yakima_topo_scaled_area.nc')

Ideally this should be done behind the scenes since it's always this format (up to a constant for different time steps).

@arbennett
Copy link
Member Author

Then, once there's a scale_topology_file or whatever function it should get called in the SCBC workflow right after this line:
https://github.com/UW-Hydro/bmorph/blob/develop/bmorph/core/workflows.py#L677

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant