twdb / sdi

Reader for Speciality Devices Incorporated (SDI) depth sounder binary format
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add interpolated easting/northing values #17

Closed wilsaj closed 10 years ago

wilsaj commented 10 years ago

This adds the keys 'interpolated_easting' and 'interpolated_northing' to the frequency dicts, where values have been linearly interpolated from the original easting/northing values. There's a threshold in there to discard GPS glitches.

We talked about making optional with a kwarg but it's not computationally heavy so if someone doesn't want them, they could just ignore the values.

Assumes easting and northing come from a coordinate system that uses either feet or meters. It's probably within acceptable margin of error for something like a lat/long based coordinate system given that distances are so short.