Changeset a916e8f in flex_extract.git for Source/Python/Mods/disaggregation.py
- Timestamp:
- Jun 11, 2020, 11:14:56 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 3a54479
- Parents:
- 0c8c068
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Mods/disaggregation.py
r026b359 ra916e8f 18 18 # to a new module named disaggregation 19 19 # - added the new disaggregation method for precipitation 20 # 21 # June 2020 - Anne Philipp (University of Vienna): 22 # - reformulated formular for dapoly 20 23 # 21 24 # @License: … … 92 95 93 96 """ 94 95 pya = (alist[3] - alist[0] + 3. * (alist[1] - alist[2])) / 6. 96 pyb = (alist[2] + alist[0]) / 2. - alist[1] - 9. * pya / 2. 97 pyc = alist[1] - alist[0] - 7. * pya / 2. - 2. * pyb 98 pyd = alist[0] - pya / 4. - pyb / 3. - pyc / 2. 99 nfield = 8. * pya + 4. * pyb + 2. * pyc + pyd 97 98 nfield = -1./12.*alist[0] + \ 99 7./12.*alist[1] + \ 100 7./12.*alist[2] - \ 101 1./12.*alist[3] 100 102 101 103 return nfield
Note: See TracChangeset
for help on using the changeset viewer.