-
Notifications
You must be signed in to change notification settings - Fork 4
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
Input data overhaul #184
Input data overhaul #184
Conversation
… last_storm_day_basin wasn't used anywhere so removed all metion of it
…WSM), DRYing out code
@@ -30,7 +30,7 @@ below is the function :mod:`run_smrf <smrf.framework.model_framework.run_smrf>`. | |||
s.loadTopo() | |||
|
|||
# initialize the distribution | |||
s.initializeDistribution() | |||
s.create_distribution() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break AWSM. Should be included in AWSM #68
@@ -104,18 +104,11 @@ def readImages(self, f): | |||
# to double or int | |||
for v_smrf in self.IMAGES: | |||
|
|||
# check to see if the user defined any variables | |||
# e.g. veg_height = veg_length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has never been used where one can specify different field names in the topo.nc. Most will be generated with basin_setup
so it's just making it a little more rigid.
@etrujil and @Hedrick-ARS, here is a good overhaul to the input data for SMRF to make it more efficient. This also has removed the MySQL capability since we haven't used it in a few years. |
Some of my comments apply to multiple data loading classes and I did not repeat the message there. Easier to discuss suggestions in one place. |
Got it, a lot of the classes are similar so I've applied the comments to all classes that were applicable. |
A big issue with SMRF and gridded data is that it must loaded all upfront which does not make sense for a year long run. Refactored the data loading to be more organized and have an easier call in SMRF.
last_storm_basin
metric what calculated the time since last storm for the whole basin, this is not being used anymore