How can I convert a discrete coordinate map into a data flow diagram in python? I have some data stored in a database with the following schema