Module v_self
Function validation3 to run the
RDNAPTRANS(tm)2018_v220627 self-validation test set
.../Z001_ETRS89andRDNAP.txt obtainable from NSGI.NL after registration.
For each test point, 3 lines are produced: the 1st showing the point
id, the original (ETRS89) lat, lon
and height and the expected RDx,
RDy and NAPh values.
The 2nd line shows the lat, lon and
height and RDx, RDy and
NAPh results from the RDNAP2018v1.reverse respectively -.forward method.
The 3rd line contains the (absolute value) of the difference between
each result on the 2nd line and the corresponding, original test point
value on the 1st line.
The final lines of the output are the maximum of all
(absolute value) differences in 2 formats and a line with the
RDNAPTRANS(tm)2018 requirements, 0.000000010
degrees or 0.0010 meter for each result.
A test is considered FAILED if any reverse
or forward result exceeds the
RDNAPTRANS(tm)2018 requirement for that result.
For points with NAPh marked "*",
NAPh is set to NAN.
See main module pyrdnap for some examples invoking validation3.
|
|
validation3(self_txt,
R,
all_=False,
in_out=True,
_print=None,
_printest=None)
Run the RDNAPTRANS(tm)2018_v220627 self-validation test
set. |
|
|
validation3 (self_txt,
R,
all_=False,
in_out=True,
_print=None,
_printest=None)
|
|
Run the RDNAPTRANS(tm)2018_v220627 self-validation test
set.
- Arguments:
self_txt - Path of the file containing the self-validation test set
(str, .../Z001_ETRS89andRDNAP.txt).
R - An RDNAP2018v# transformer (RDNAP2018v1 or RDNAP2018v2 instance).
all_ - If True print all tests and test results, otherwise
print only failing tests (bool).
in_out - If True test only points inside the
RD region, if False only points
outside (bool).
_print - A Python 3+ print-like callable or None
to not print the header and the final, summary lines.
_printest - A Python 3+ print-like callable or None
to not print all_ in_out
tests or only the failing ones.
- Returns:
- 3-Tuple
(failed, total, in_outside) with the number
of FAILED tests, the total number of
tests and the number of points in_out the
RD region.
|