CSU-Radarmet / CSU_RadarTools

A module of independent functions to do precipitation retrievals from polarimetric radar data
GNU General Public License v2.0
88 stars 43 forks source link

tropical rain #39

Closed pfhein closed 8 years ago

pfhein commented 8 years ago

csu_blended_rain_tropical.py has Z-R relationships from the DYNAMO field project. (Thompson paper)

tjlang commented 8 years ago

I am going to move the base rainfall functions in csu_blended_rain.py the to the common.py file. That way, they can be imported where they are needed and thus we can remove duplicate code. When that is done, you should import the R-Kdp functions, etc. from there.

tjlang commented 8 years ago

OK, I updated the csu_blended_rain and common modules. Now you should alter the tropical code to import the base rain functions (e.g., R-Kdp) and _check_for_array from common. In addition, you should import the main tropical function to be part of csu_blended_rain. That is, put from .csu_blended_rain_tropical import calc_blended_rain_tropical in csu_blended_rain.py. Thanks!

tjlang commented 8 years ago

Closing this because of merger of https://github.com/CSU-Radarmet/CSU_RadarTools/pull/41.