bug fixes

- resampler did not correctly convert units
- threshold needs fixed value setting
- PointRecord had a buggy query optimization
- resampler did not correctly convert units
- threshold needs fixed value setting
- PointRecord had a buggy query optimization