fzhu2e / cfr

A Python package for Climate Field Reconstruction
https://fzhu2e.github.io/cfr
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

Standardize needs to check that data are available over the reference period #10

Closed CommonClimate closed 5 months ago

CommonClimate commented 1 year ago

Right now, a RuntimeWarning: divide by zero encountered in divide is returned, but that corrupts the results; the method should instead remove records from the db if they don't have any overlap over the reference period.

fzhu2e commented 1 year ago

Reconstructed the code a bit regarding standardize() and center() for both ProxyRecord and ProxyDatabase in commit 6fe18cb.