stefanfluck / palmpy

Package supporting the generation of static driver files for simulations with the PALM model system. Check out the Wiki and engage in the Discussions!
GNU General Public License v3.0
18 stars 4 forks source link

create config option for which input source is used -> steer mapdict selection with it #21

Closed stefanfluck closed 4 years ago

stefanfluck commented 4 years ago

have input source as an option (tlm, osm, corine, usgs) and appropriate mpd. should be taken then.

distinguish for streets, for bodenbedeckung,(+ for pavement).

stefanfluck commented 4 years ago

do it like this:

create dictfolder in staticcreation (already done) in it, have a XX.py for each "tranlsation" eg. tlm.py in them, rename "tlmbb2palmveg" to just bb2palmveg".

when importing, do switch case: switch "language" == 'tlm' import palmpy.staticcreation.dictfolder.tlm as mpd

(einfach in python syntax).

then, you can import rename the mpd.XX calls to the generic dict names and it should run normally!

stefanfluck commented 4 years ago

implemented