Review ROUNDING during computations. Is this rounding necessary? Beneficial?

Open
#171 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
backend

Research direction

Start by reading GeodePy.ntv2reader.py functions ntv2_bicubic() and ntv2_bilinear(), then GeodePy.convert.geo2grid(), focusing on where latitude, longitude, Easting, and Northing values are rounded. Compare the current precision with the requested full or greater precision and establish the intended output behavior before changing it; the issue is done when the rounding policy is decided and applied consistently.

Written by the indexing model from the issue text.

Description

In general, the precision returned by GeodePy are suitable for the average (or great majority of) use case.
There MAY be cases, however, where a user wants to make comparisons of outputs at greater precision.
There seems no need to artificially round to the given precisions.
Consider returning the full float, or rounding to even greater precision.

GeodePy.ntv2reader.py ntv2_bicubic() and GeodePy.ntv2reader.py ntv2_bilinear()
round their lat and lon shift values (in arc seconds) to 6 decimal places (equivalent to approx 3/100th of a mm).

GeodePy.convert.geo2grid()
rounds Easting and Northing outputs (in metres) to 4 decimal places.

Dominant language
Python
Stars
117
Forks
50
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GeoscienceAustralia/GeodePy

All issues in GeoscienceAustralia/GeodePy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.