pacificclimate / climate-explorer-data-prep

0 stars 0 forks source link

Refactor `decompose_flow_vectors` #118

Closed jameshiebert closed 4 years ago

jameshiebert commented 4 years ago

The decompose_flow_vectors script has no function encapsulation with all of the code being at the top level and executed at import time.

Better practice would be to wrap the functionality in a main() function, so that it can be imported into other programs and run programmatically (e.g. in a WPS process).

Follow the example in generate_prsn to do this.