-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refrain from recomputing VPD for CRU based on potentially non-existin…
…g column 'vapr' This fixes VPD for CRU, when vapr was not requested. This commit moves computation of vpd with calc_vpd() inside of ingest_globalfields() for CRU, watch_wfdei, and wfde5. This results in consistent code between these 3 sources and also irrespective of the user calling ingest() or ingest_bysite(). Hence, this reduces code replication. Furthermore, calc_vpd() is now re-computed (in ingest() or ingest_bysite()) only in cases when there is bias correction of `vapr` with WorldClim data. This code is still repeated across ingest() and ingest_bysite().
- Loading branch information
Showing
3 changed files
with
20 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters