R tracking software trip 1.10.1 corrects distances for independent GPS pairs
A fix handles independent longitude and latitude pairs passed as four vectors.
What shipped
CRAN published trip 1.10.1 at 11:10:02 UTC on November 29. An independent comparison with 1.10.0 shows changes in implementation files and the release notes. The central fix concerns `trackDistance()` when it receives longitude and latitude through four vectors. This interface can give each start point its own destination. Previous versions could use the wrong destination when the pairs did not describe consecutive segments of a single path. The immediate change is in a distance calculation that can feed later mapping and filtering.
When pairs are independent
Consider two independent observations, one from A to B and one from C to D. Point B need not coincide with point C. If the last destination is reused, the first result becomes A-to-D instead of A-to-B. The error can be hard to see when the destinations are nearby. The notes trace the four-vector case to version 1.6.0 and say that distance calculations for a trip object or a coordinate matrix are unchanged. A test with well-separated destinations can make the old and new behavior easy to distinguish.
Why filtering can change
A movement filter can divide a segment distance by elapsed time to flag an implausible jump. With the wrong endpoint, the same threshold can select different observations even though the raw coordinates are unchanged. The notes identify `speedfilter()` and `sda()` as functions whose longitude and latitude results may change. They say projected coordinates were unaffected by this issue. Check the coordinate representation and calling form before interpreting a difference in a processed track.
A separate missing-time case
The release also addresses a stack-usage error when all timestamps were missing. That case is distinct from the four-vector distance correction. A coordinate file can carry plausible locations while an import error leaves its time field empty. A speed check needs a defined outcome for such input even if a point-to-point distance can still be calculated. Small fixtures with fully missing and partly missing times can clarify the behavior expected from the application after the update.
Compare reproducible track fragments
Start with a short reference track rather than a whole season of telemetry. Test independent pairs and a contiguous track in the same area. Record the unit, coordinate system, package version, and the identities of removed observations. That comparison can guide decisions about recomputing old filtered tracks from the preserved raw data. The release changes the software’s pairing of the supplied positions. Device accuracy and the uncertainty of the original location readings are separate properties.
Preserve the audit trail
If distances have already fed field reports, document which point pairs changed and which stayed the same. Record the threshold used for filtering. A table comparing the two calling forms preserves the distinction between a device observation and a later distance computed by software. That matters when an older report has to remain reproducible.
Archive photo · YellowstoneNPS / Wikimedia Commons ↗ · Public domain
Sources and verification
- Primary sourceCRAN paket kaydı ↗
- Technical documentCRAN sürüm notları ↗
- Reporting / cross-checkCRANberries paket karşılaştırması ↗
Reader discussion
What would you change first for maintainability and testing in your own project?
No comments yet. Be the first to contribute.
Write a comment