localdevices / pyorc

Surface velocity, object tracking, and river flow measurements in an open-source API
GNU Affero General Public License v3.0
129 stars 31 forks source link

Forward and back projection of real world coordinates results in truncated coordinates sometimes #145

Closed hcwinsemius closed 8 months ago

hcwinsemius commented 8 months ago

Is related to a problem in numpy where subtraction of float64 numbers from float32 numbers somehow results in truncated values. Fix is easy, as we only need to ensure we only subtract float64 from float64 and only after that convert into float32 if necessary.