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

Convert units and basin specifics to a recipe from inicheck #4

Closed
micahjohnson150 opened this issue Jun 6, 2018 · 0 comments
Closed

Comments

@micahjohnson150
Copy link
Contributor

On line 241 in framework.py we could clean this up using recipes.

Here is what it currently looks like
# Assign some basin-specific things, also needs to be generalized if self.basin == 'BRB': self.pixel = 100 sr = 0 if self.units == 'KAF': emin = 2500 emax = 10500 self.step = 1000 if self.units == 'SI': emin = 800 emax = 3200 self.step = 250 if self.basin == 'TUOL': self.pixel = 50 sr = 6 if self.units == 'KAF': emin = 3000 # [ft] emax = 12000 self.step = 1000 if self.units == 'SI': emin = 800 # [m] emax = 3600 self.step = 500 if self.basin == 'SJ': self.pixel = 50 sr = 6 if self.units == 'KAF': emin = 1000 # [ft] emax = 13000 self.step = 1000 if self.units == 'SI': emin = 300 # [m] emax = 4000 self.step = 500 if self.basin == 'LAKES': self.pixel = 50 sr = 0 self.imgx = (1200,1375) self.imgy = (425,225) if self.units == 'KAF': emin = 8000 # [ft] emax = 12500 self.step = 500 if self.units == 'SI': emin = 2400 # [m] emax = 3800 self.step = 200 if self.basin == 'RCEW': self.pixel = 50 sr = 0 if self.units == 'KAF': emin = 2500 # [ft] emax = 7500 self.step = 500 if self.units == 'SI': emin = 800 # [m] emax = 2500 self.step = 500

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

No branches or pull requests

2 participants