Skip to content
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

NEW_TIME_BASE: bolster date checking #8

Open
smwesten-usgs opened this issue Nov 12, 2013 · 0 comments
Open

NEW_TIME_BASE: bolster date checking #8

smwesten-usgs opened this issue Nov 12, 2013 · 0 comments
Labels

Comments

@smwesten-usgs
Copy link
Owner

TSPROC fails to detect out-of-order dates when given values associated with the following sequence of dates (as supplied in an observation data *.ssf file):

05476000    6/1/2005    12:00:00    0.126
05476000    6/2/2005    12:00:00    0.137
05476000    3/23/2005    12:00:00    0.043
05476000    6/3/2005    12:00:00    0.083

The simulated values are supplied in another *.ssf file and look like this:

34_28  06/01/2005  12:00:00          0.1409
34_28  06/02/2005  12:00:00          0.1534
34_28  06/03/2005  12:00:00          0.1603
34_28  06/04/2005  12:00:00          0.1365

The resulting time series produced by TSPROC is:

s05476000et       06/01/2005   12:00:00    0.140900001    
s05476000et       06/02/2005   12:00:00    0.153400004    
s05476000et       03/23/2005   12:00:00   -0.734100223    
s05476000et       06/03/2005   12:00:00    0.160300002   

It appears that the negative value calculated in line 3 above is due to the fact that the routine attempts to linearly interpolate between data points, except in this case it is extrapolating to a point three months prior; the resulting value is problematic to say the least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant