Diff of the two buildlogs:
--
--- b1/build.log 2024-11-23 12:15:03.107055673 +0000
+++ b2/build.log 2024-11-23 12:23:44.523469967 +0000
@@ -1,6 +1,6 @@
I: pbuilder: network access will be disabled during build
-I: Current time: Sat Nov 23 00:07:47 -12 2024
-I: pbuilder-time-stamp: 1732363667
+I: Current time: Sun Nov 24 02:15:22 +14 2024
+I: pbuilder-time-stamp: 1732364122
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz]
I: copying local configuration
@@ -28,52 +28,84 @@
dpkg-source: info: applying add-distclean-target.patch
I: Not using root during the build.
I: Installing the build-deps
-I: user script /srv/workspace/pbuilder/13989/tmp/hooks/D02_print_environment starting
+I: user script /srv/workspace/pbuilder/15703/tmp/hooks/D01_modify_environment starting
+debug: Running on ff4a.
+I: Changing host+domainname to test build reproducibility
+I: Adding a custom variable just for the fun of it...
+I: Changing /bin/sh to bash
+'/bin/sh' -> '/bin/bash'
+lrwxrwxrwx 1 root root 9 Nov 23 12:15 /bin/sh -> /bin/bash
+I: Setting pbuilder2's login shell to /bin/bash
+I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other
+I: user script /srv/workspace/pbuilder/15703/tmp/hooks/D01_modify_environment finished
+I: user script /srv/workspace/pbuilder/15703/tmp/hooks/D02_print_environment starting
I: set
- BUILDDIR='/build/reproducible-path'
- BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other'
- BUILDUSERNAME='pbuilder1'
- BUILD_ARCH='armhf'
- DEBIAN_FRONTEND='noninteractive'
- DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 '
- DISTRIBUTION='unstable'
- HOME='/root'
- HOST_ARCH='armhf'
+ BASH=/bin/sh
+ BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath
+ BASH_ALIASES=()
+ BASH_ARGC=()
+ BASH_ARGV=()
+ BASH_CMDS=()
+ BASH_LINENO=([0]="12" [1]="0")
+ BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:.
+ BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment")
+ BASH_VERSINFO=([0]="5" [1]="2" [2]="32" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf")
+ BASH_VERSION='5.2.32(1)-release'
+ BUILDDIR=/build/reproducible-path
+ BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other'
+ BUILDUSERNAME=pbuilder2
+ BUILD_ARCH=armhf
+ DEBIAN_FRONTEND=noninteractive
+ DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 '
+ DIRSTACK=()
+ DISTRIBUTION=unstable
+ EUID=0
+ FUNCNAME=([0]="Echo" [1]="main")
+ GROUPS=()
+ HOME=/root
+ HOSTNAME=i-capture-the-hostname
+ HOSTTYPE=arm
+ HOST_ARCH=armhf
IFS='
'
- INVOCATION_ID='6f875554003f4b9f8d31e41f6aa6202a'
- LANG='C'
- LANGUAGE='en_US:en'
- LC_ALL='C'
- MAIL='/var/mail/root'
- OPTIND='1'
- PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'
- PBCURRENTCOMMANDLINEOPERATION='build'
- PBUILDER_OPERATION='build'
- PBUILDER_PKGDATADIR='/usr/share/pbuilder'
- PBUILDER_PKGLIBDIR='/usr/lib/pbuilder'
- PBUILDER_SYSCONFDIR='/etc'
- PPID='13989'
- PS1='# '
- PS2='> '
+ INVOCATION_ID=db0f95036c36493897fa2c054b0bd12b
+ LANG=C
+ LANGUAGE=it_CH:it
+ LC_ALL=C
+ MACHTYPE=arm-unknown-linux-gnueabihf
+ MAIL=/var/mail/root
+ OPTERR=1
+ OPTIND=1
+ OSTYPE=linux-gnueabihf
+ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path
+ PBCURRENTCOMMANDLINEOPERATION=build
+ PBUILDER_OPERATION=build
+ PBUILDER_PKGDATADIR=/usr/share/pbuilder
+ PBUILDER_PKGLIBDIR=/usr/lib/pbuilder
+ PBUILDER_SYSCONFDIR=/etc
+ PIPESTATUS=([0]="0")
+ POSIXLY_CORRECT=y
+ PPID=15703
PS4='+ '
- PWD='/'
- SHELL='/bin/bash'
- SHLVL='2'
- SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.9KRmA8NM/pbuilderrc_y0LC --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.9KRmA8NM/b1 --logfile b1/build.log octave-mapping_1.4.2-3.dsc'
- SUDO_GID='113'
- SUDO_UID='107'
- SUDO_USER='jenkins'
- TERM='unknown'
- TZ='/usr/share/zoneinfo/Etc/GMT+12'
- USER='root'
- _='/usr/bin/systemd-run'
- http_proxy='http://10.0.0.15:3142/'
+ PWD=/
+ SHELL=/bin/bash
+ SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix
+ SHLVL=3
+ SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.9KRmA8NM/pbuilderrc_0wsz --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.9KRmA8NM/b2 --logfile b2/build.log octave-mapping_1.4.2-3.dsc'
+ SUDO_GID=113
+ SUDO_UID=107
+ SUDO_USER=jenkins
+ TERM=unknown
+ TZ=/usr/share/zoneinfo/Etc/GMT-14
+ UID=0
+ USER=root
+ _='I: set'
+ http_proxy=http://10.0.0.15:3142/
I: uname -a
- Linux virt64c 6.1.0-27-arm64 #1 SMP Debian 6.1.115-1 (2024-11-01) aarch64 GNU/Linux
+ Linux i-capture-the-hostname 6.1.0-27-armmp-lpae #1 SMP Debian 6.1.115-1 (2024-11-01) armv7l GNU/Linux
I: ls -l /bin
- lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin
-I: user script /srv/workspace/pbuilder/13989/tmp/hooks/D02_print_environment finished
+ lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin
+I: user script /srv/workspace/pbuilder/15703/tmp/hooks/D02_print_environment finished
-> Attempting to satisfy build-dependencies
-> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
@@ -745,7 +777,7 @@
Get: 624 http://deb.debian.org/debian unstable/main armhf unixodbc-dev armhf 2.3.12-1+b3 [210 kB]
Get: 625 http://deb.debian.org/debian unstable/main armhf libgdal-dev armhf 3.9.3+dfsg-1+b1 [537 kB]
Get: 626 http://deb.debian.org/debian unstable/main armhf octave-io armhf 2.6.4-3+b2 [198 kB]
-Fetched 237 MB in 8s (28.5 MB/s)
+Fetched 237 MB in 16s (15.3 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package netbase.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 19686 files and directories currently installed.)
@@ -3307,7 +3339,11 @@
Building tag database...
-> Finished parsing the build-deps
I: Building the package
-I: Running cd /build/reproducible-path/octave-mapping-1.4.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../octave-mapping_1.4.2-3_source.changes
+I: user script /srv/workspace/pbuilder/15703/tmp/hooks/A99_set_merged_usr starting
+Not re-configuring usrmerge for unstable
+I: user script /srv/workspace/pbuilder/15703/tmp/hooks/A99_set_merged_usr finished
+hostname: Name or service not known
+I: Running cd /build/reproducible-path/octave-mapping-1.4.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../octave-mapping_1.4.2-3_source.changes
dpkg-buildpackage: info: source package octave-mapping
dpkg-buildpackage: info: source version 1.4.2-3
dpkg-buildpackage: info: source distribution unstable
@@ -3358,9 +3394,9 @@
config.status: creating config.h
make[1]: Entering directory '/build/reproducible-path/octave-mapping-1.4.2/src'
/usr/bin/mkoctfile --verbose -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -I/usr/include/gdal -lgdal -o gdalread.oct gdalread.cc misc.cpp
-g++ -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-9.2.0/octave/.. -I/usr/include/octave-9.2.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -I/usr/include/gdal -DHAVE_CONFIG_H gdalread.cc -o /tmp/oct-3Snpr4.o
-g++ -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-9.2.0/octave/.. -I/usr/include/octave-9.2.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -I/usr/include/gdal -DHAVE_CONFIG_H misc.cpp -o /tmp/oct-3QFBwL.o
-g++ -I/usr/include/octave-9.2.0/octave/.. -I/usr/include/octave-9.2.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -o gdalread.oct /tmp/oct-3Snpr4.o /tmp/oct-3QFBwL.o -lgdal -shared -Wl,-Bsymbolic -Wl,-z,relro -flto=auto -ffat-lto-objects -Wl,-z,relro
+g++ -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-9.2.0/octave/.. -I/usr/include/octave-9.2.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -I/usr/include/gdal -DHAVE_CONFIG_H gdalread.cc -o /tmp/oct-ths15m.o
+g++ -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-9.2.0/octave/.. -I/usr/include/octave-9.2.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -I/usr/include/gdal -DHAVE_CONFIG_H misc.cpp -o /tmp/oct-PxnsN2.o
+g++ -I/usr/include/octave-9.2.0/octave/.. -I/usr/include/octave-9.2.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-mapping-1.4.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -o gdalread.oct /tmp/oct-ths15m.o /tmp/oct-PxnsN2.o -lgdal -shared -Wl,-Bsymbolic -Wl,-z,relro -flto=auto -ffat-lto-objects -Wl,-z,relro
make[1]: Leaving directory '/build/reproducible-path/octave-mapping-1.4.2/src'
copyfile /build/reproducible-path/octave-mapping-1.4.2/./src/gdalread.oct /build/reproducible-path/octave-mapping-1.4.2/./inst/arm-unknown-linux-gnueabihf-api-v59
For information about changes from previous versions of the mapping package, run 'news mapping'.
@@ -3368,617 +3404,6 @@
Checking package...
Run the unit tests...
Checking m files ...
-[inst/nm2deg.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/nm2deg.m
-***** test
- ratio = unitsratio ('km','nm');
- assert (nm2deg (10), km2deg (ratio*10), 10*eps);
- assert (nm2deg (10, 80), km2deg (ratio*10, ratio*80), 10*eps);
- assert (nm2deg (10, "pluto"), km2deg (ratio*10, "pluto"), 10*eps);
-1 test, 1 passed, 0 known failure, 0 skipped
-[inst/validateLengthUnit.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/validateLengthUnit.m
-***** error validateLengthUnit ("bad", 7)
-***** error validateLengthUnit ("bad", "foo")
-***** error validateLengthUnit ("bad", "foo", "ARG")
-***** error validateLengthUnit ("bad", "foo", "ARG", 7)
-***** error validateLengthUnit (9)
-***** error validateLengthUnit (9, 7)
-***** error validateLengthUnit (9, "foo")
-***** error validateLengthUnit (9, "foo", "ARG")
-***** error validateLengthUnit (9, "foo", "ARG", 7)
-***** assert (validateLengthUnit ("m"), "meter")
-***** assert (validateLengthUnit ("meter"), "meter")
-***** assert (validateLengthUnit ("meters"), "meter")
-***** assert (validateLengthUnit ("mETErs"), "meter")
-***** assert (validateLengthUnit ("us survey feet"), "U.S. survey foot")
-***** assert (validateLengthUnit ("US survey feet"), "U.S. survey foot")
-***** assert (validateLengthUnit ("U.S. survey feet"), "U.S. survey foot")
-***** assert (validateLengthUnit ("u.s. survey feet"), "U.S. survey foot")
-***** assert (validateLengthUnit ("clarke's foot"), "Clarke's foot")
-18 tests, 18 passed, 0 known failure, 0 skipped
-[inst/azimuth.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/azimuth.m
-***** test
- assert(azimuth([10,10], [10,40]), 87.336, 1e-3)
- assert(azimuth([0,10], [0,40]), 90, 1e-3)
- assert(azimuth(pi/4,0,pi/4,-pi/2,"radians"), 5.3279, 1e-4)
-1 test, 1 passed, 0 known failure, 0 skipped
-[inst/majaxis.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/majaxis.m
-***** test
-
- earth_b = 6356752.314245; ## meter
- earth_ecc = 0.081819221456;
- assert ( majaxis (earth_b, earth_ecc), 6378137.01608, 10e-6);
- planets_b = [ 6356752.314245 ; 66854000 ]; ## meter
- planets_ecc = [ 0.081819221456 ; 0.3543164 ];
- assert( majaxis (planets_b, planets_ecc), [ 6378137.01608; 71492000.609327 ], 10e-6 );
-***** error majaxis (0.5, "ecc")
-***** error majaxis (0.5, 0.3 + 0.5i)
-***** error majaxis ("b", 0.5)
-***** error majaxis (0.3 + 0.5i , 0.5)
-***** error majaxis ([10; 10; 10], [0.5; 0; -0.5])
-***** error minaxis ( [ 6356752.314245 ; 66854000 ] , [ 0.081819221456 ; 0.3543164 ]')
-7 tests, 7 passed, 0 known failure, 0 skipped
-[inst/referenceSphere.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/referenceSphere.m
-***** test
- U = referenceSphere ("Unit");
- assert (U.LengthUnit, "");
- assert (U.Radius, 1);
- assert (U.SemimajorAxis, 1);
- assert (U.SemiminorAxis, 1);
- assert (U.InverseFlattening, Inf);
- assert (U.Eccentricity, 0);
- assert (U.Flattening, 0);
- assert (U.ThirdFlattening, 0);
- assert (U.MeanRadius, 1);
- assert (U.SurfaceArea, 4*pi);
- assert (U.Volume, 4*pi/3);
-***** error referenceSphere (7i)
-***** error referenceSphere ("yy")
-***** error referenceSphere ("Unit", "##not a unit@@")
-4 tests, 4 passed, 0 known failure, 0 skipped
-[inst/geo2con.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/geo2con.m
-***** test
- phi = [0:15:90];
- chi = geo2con (phi);
- Z = degrees2dm(chi - phi);
- check = [0; ...
- -5.755543956550260; ...
- -9.979077451140980; ...
- -11.53895663467140; ...
- -10.00703049899710; ...
- -5.783497189944170; ...
- 0];
- assert (Z(:,2), check, 1e-6)
-***** error geo2con ("s")
-***** error geo2con (5i)
-3 tests, 3 passed, 0 known failure, 0 skipped
-[inst/geo2iso.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/geo2iso.m
-***** test
- psi = geo2iso (45);
- assert (psi, 50.227465817, 1e-6)
-***** test
- psi = geo2iso ([-90 90]);
- assert (psi, [-Inf Inf])
-***** test
- chi = geo2iso (iso2geo ([-90 : 10: 0; 0 : 10 : 90]), "wgs84");
- assert (chi, [-90 : 10: 0; 0 : 10 : 90], 1e-6);
-***** error geo2iso ("s")
-***** error geo2iso (5i)
-5 tests, 5 passed, 0 known failure, 0 skipped
-[inst/aer2ned.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/aer2ned.m
-***** test
- [n, e, d] = aer2ned (33, 70, 1e3);
- assert ([n, e, d], [286.84222, 186.277521, -939.69262], 10e-6)
- [e, n, u] = aer2ned (0.57595865, 1.221730476, 1e3, "rad");
- assert ([e, n, u], [286.84222, 186.277521, -939.69262], 10e-6)
-***** error aer2ned("s", 25, 1e3)
-***** error aer2ned(3i, 25, 1e3)
-***** error aer2ned(33, "s", 1e3)
-***** error aer2ned(33, 3i, 1e3)
-***** error aer2ned(33, 25, "s")
-***** error aer2ned(33, 25, 3i)
-***** error aer2ned ([1 1], [2 2]', [4 5])
-***** error aer2ned ([1 1], [2 2], [4 5 6])
-***** error aer2ned (1, 2, 3, 4);
-***** error aer2ned (33, 70, 1e3, "f");
-***** error aer2ned (33, 70, 1e3, "degreef");
-12 tests, 12 passed, 0 known failure, 0 skipped
-[inst/axes2ecc.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/axes2ecc.m
-***** test
- semimajor = 6378137;
- semiminor = 6356752.314245;
- Earth = [ semimajor, semiminor ];
- Jupiter = [ 71492 , 66854 ];
- Planets = [ Jupiter ; Earth ];
- assert (axes2ecc (semimajor, semiminor), 0.0818191908429654, 10e-12);
- assert (axes2ecc (Earth), 0.0818191908429654, 10e-12);
- assert (axes2ecc (Planets), [ 0.354316379; 0.081819190843 ], 10e-10);
- assert (axes2ecc (Planets(:, 1), Planets(:, 2)), [ 0.354316379; 0.081819190843 ], 10e-10);
-***** error axes2ecc ("a", 1);
-***** error axes2ecc ([1; 2]);
-3 tests, 3 passed, 0 known failure, 0 skipped
-[inst/enu2uvw.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/enu2uvw.m
-***** test
- [u, v, w] = enu2uvw (186.277521, 286.84222, 939.69262, 42, -82, "d");
- assert ([u, v, w], [254.940936348589, -475.5397947444, 841.942404132992], 10e-6)
-***** test
- [u, v, w] = enu2uvw (186.277521, 286.84222, 939.69262, ...
- 0.733038285837618, -1.43116998663535, "r");
- assert ([u, v, w], [254.940936348589, -475.5397947444, 841.942404132992], 10e-6)
-***** error enu2uvw("s", 25, 1e3, 0, 0)
-***** error enu2uvw(3i, 25, 1e3, 0, 0)
-***** error enu2uvw(33, "s", 1e3, 0, 0)
-***** error enu2uvw(33, 3i, 1e3, 0, 0)
-***** error enu2uvw(33, 25, "s", 0, 0)
-***** error enu2uvw(33, 25, 3i, 0, 0)
-***** error enu2uvw(33, 25, 1e3, "s", 0)
-***** error enu2uvw(33, 25, 1e3, 3i, 0)
-***** error enu2uvw(33, 25, 1e3, 0, "s")
-***** error enu2uvw(33, 25, 1e3, 0, 3i)
-***** error enu2uvw (33, 70, 1e3, 0, 0, "f");
-***** error enu2uvw (33, 70, 1e3, 0, 0, "degreef");
-14 tests, 14 passed, 0 known failure, 0 skipped
-[inst/fromRadians.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/fromRadians.m
-***** test
- rad{1} = pi;
- rad{2} = [pi 2*pi];
- rad{3} = [0 pi; 2*pi 0];
- deg{1} = 180;
- deg{2} = [180 360];
- deg{3} = [0 180; 360 0];
- for i=1:3
- assert (fromRadians ("degrees", rad{i}), deg{i})
- assert (fromRadians ("radians", rad{i}), rad{i})
- endfor
-
- ## test multiple angles same time
- assert (nthargout (1:3, @fromRadians, "degrees", rad{:}), deg)
- assert (nthargout (1:2, @fromRadians, "degrees", rad{:}), deg(1:2))
-
- ## test abbreviations of degrees
- assert (nthargout (1:3, @fromRadians, "degree", rad{:}), deg)
- assert (nthargout (1:3, @fromRadians, "deg", rad{:}), deg)
- assert (nthargout (1:3, @fromRadians, "d", rad{:}), deg)
-***** error fromRadians ("INVALID")
-2 tests, 2 passed, 0 known failure, 0 skipped
-[inst/ecef2geodetic.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/ecef2geodetic.m
-***** shared X, Y, Z
- X = 3426949.397;
- Y = 601195.852;
- Z = 5327723.994; ## meters
-***** test
- [latd, lond, h] = ecef2geodetic ("wgs84", X, Y, Z);
- assert ([latd, lond, h], [57.02929569, 9.950248114, 56.95], 10e-3);
-***** test
- [latd, lond, h] = ecef2geodetic (X, Y, Z);
- assert ([latd, lond, h], [57.02929569, 9.950248114, 56.95], 10e-3);
-***** test
- latr = deg2rad (57.02929569);
- lonr = deg2rad (9.950248114);
- [lat, lon, h2] = ecef2geodetic ("wgs84", X, Y, Z, "radians");
- assert ([lat, lon, h2], [latr, lonr, 56.95], 10e-3);
-***** test
- latr = deg2rad (57.02929569);
- lonr = deg2rad (9.950248114);
- [lat, lon, h2] = ecef2geodetic (X, Y, Z, "radians");
- assert ([lat, lon, h2], [latr, lonr, 56.95], 10e-3);
-***** error ecef2geodetic ("", 4500000, 450000, 50000000, "km")
-***** error ecef2geodetic ("", "A", 450000, 50000000)
-***** error ecef2geodetic ("", 45i, 450000, 50000000)
-***** error ecef2geodetic ("", 4500000, "B", 50000000)
-***** error ecef2geodetic ("", 4500000, 45i, 50000000)
-***** error ecef2geodetic ("", 4500000, 450000, "C")
-***** error ecef2geodetic (4500000, 450000, "C")
-***** error ecef2geodetic ("", 4500000, 450000, 50i)
-***** error ecef2geodetic (4500000, 450000, 50i)
-13 tests, 13 passed, 0 known failure, 0 skipped
-[inst/gc2sc.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/gc2sc.m
-***** test
- [lat, lon, radius] = gc2sc (60, 25, 60);
- assert (lat, -25.6589, 1e-5)
- assert (lon, 58.69006, 1e-5)
-***** test
- [lat, lon, radius] = gc2sc (0, 45, 90);
- assert (lat, -90, 1e-5)
- assert (lon, 0, 1e-5)
- m = gc2sc (45, [0:45:360], 45);
- assert (m(:, 1), repmat (-30.0, 9, 1), 1e-10);
- assert (m(:, 2), [ 54.73561031725; 99.73561031725; 144.73561031725; ...
- -170.26438968276; -125.26438968276; -80.26438968276; ...
- -35.26438968276; 9.73561031725; 54.73561031725], 1e-10);
- assert (m(:, 3), repmat (90.0, 9, 1), 1e-10);
-***** error gc2sc ("s", 0, 100)
-***** error gc2sc (3i, 0, 100)
-***** error gc2sc (50, "s", 100)
-***** error gc2sc (50, 0, 100, "f")
-***** error gc2sc (50, 0, 100, "degreef")
-***** error gc2sc (190, 0, 90);
-***** error gc2sc (-91, 0, -90.001);
-***** error gc2sc (pi/1.999, 0, pi/2, "r");
-10 tests, 10 passed, 0 known failure, 0 skipped
-[inst/wrapTo2Pi.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/wrapTo2Pi.m
-***** test
- x = -9:0.1:9;
- xw = wrapTo2Pi (x);
- assert (sin (x), sin (xw), 8 * eps)
- assert (cos (x), cos (xw), 8 * eps)
- assert (! any (xw < 0))
- assert (! any (xw > 2 * pi))
-***** test
- assert (wrapTo2Pi ([-2*pi, -pi, 0, pi; 0.1, pi, 4*pi, 5*pi]), ...
- [0, pi, 0, pi; 0.1, pi, 2*pi, pi], 1e-13);
-2 tests, 2 passed, 0 known failure, 0 skipped
-[inst/km2deg.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/km2deg.m
-***** assert (deg2km (km2deg (10)), 10, 10*eps)
-***** assert (deg2km (km2deg (10, 80), 80), 10, 10*eps)
-***** assert (deg2km (km2deg (10, "pluto"), "pluto"), 10, 10*eps)
-3 tests, 3 passed, 0 known failure, 0 skipped
-[inst/meridianfwd.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/meridianfwd.m
-***** test
- a = rad2deg (meridianfwd (-pi/4, [60 120] * 45 * 1846.2756967249574, 'wgs84'));
- assert (a, [0, 45], 5e-7);
-1 test, 1 passed, 0 known failure, 0 skipped
-[inst/km2sm.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/km2sm.m
-***** test
- km = [2 3.218694437388875 4.8326 6.437388874777749];
- sm = [1.242739898989899 2 3.002832417929293 4];
- assert (km2sm (km), sm)
- km = reshape (km, [2 2]);
- sm = reshape (sm, [2 2]);
- assert (km2sm (km), sm)
-***** assert (km2sm (4.8326), 3.002832417929293)
-2 tests, 2 passed, 0 known failure, 0 skipped
-[inst/geodeticLatitudeFromParametric.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/geodeticLatitudeFromParametric.m
-***** test
- earth_flattening = 0.0033528 ;
- assert ( geodeticLatitudeFromParametric (45, earth_flattening), 45.0962122, 10e-6);
- assert ( geodeticLatitudeFromParametric (pi/4, earth_flattening, 'radians'), 0.78708, 10e-6);
-***** error geodeticLatitudeFromParametric (0.5, "flat")
-***** error geodeticLatitudeFromParametric (0.5, 5i)
-***** error geodeticLatitudeFromParametric ("beta", 0.0033528)
-***** error geodeticLatitudeFromParametric (5i, 0.0033528 )
-***** error geodeticLatitudeFromParametric ([45 50], [0.7 0.8])
-***** error geodeticLatitudeFromParametric (45, 1)
-***** error geodeticLatitudeFromParametric (45, 0.0033528, "km")
-8 tests, 8 passed, 0 known failure, 0 skipped
-[inst/enu2aer.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/enu2aer.m
-***** test
- [az, el, slantrange] = enu2aer (186.277521, 286.84222, 939.69262);
- assert ([az, el, slantrange], [33, 70, 1e3], 10e-6)
-***** test
- [az, el, slantrange] = enu2aer (186.277521, 286.84222, 939.69262, "rad");
- assert ([az, el, slantrange], [0.57595865, 1.221730476, 1e3], 10e-6)
-***** test
- [az, el, sr] = enu2aer ([8450.4; 186.277521], [12473.7; 286.84222], ...
- [1104.6; 939.69262]);
- assert ([az, el, sr], [34.115966, 4.193108, 15107.037863; 33.000001, ...
- 70.0, 999.999997], 1e-6)
-***** error enu2aer ("s", 25, 1e3)
-***** error enu2aer (3i, 25, 1e3)
-***** error enu2aer (33, "s", 1e3)
-***** error enu2aer (33, 3i, 1e3)
-***** error enu2aer (33, 25, "s")
-***** error enu2aer (33, 25, 3i)
-***** error enu2aer ([1 1], [2 2]', [4 5])
-***** error enu2aer ([1 1], [2 2], [4 5 6])
-11 tests, 11 passed, 0 known failure, 0 skipped
-[inst/ecc2n.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/ecc2n.m
-***** test
-
- ecc_earth = .081819221456;
- ecc_jupiter = 0.3543164;
- e_vec = [ ecc_earth ecc_jupiter ];
- assert ( ecc2n ( ecc_earth ) , 0.001679222 , 10e-10 );
- assert ( ecc2n ( e_vec ), [0.0016792 0.03352464],10e-8);
-***** error ecc2n ("ecc")
-***** error ecc2n (0.5 + 3i)
-***** error n2ecc (-1)
-***** error n2ecc (2)
-***** error n2ecc (-Inf)
-***** error n2ecc (Inf)
-7 tests, 7 passed, 0 known failure, 0 skipped
-[inst/roundn.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/roundn.m
-***** assert (roundn (pi), 3, 2e-15)
-***** assert (roundn (e, -2), 2.7200, 2e-15)
-***** assert (roundn (pi, -4), 3.1416, 2e-15)
-***** assert (roundn (e, -3), 2.718, 2e-15)
-***** assert (roundn ([0.197608841252122, 0.384415323084123; ...
- 0.213847642260694, 0.464622347858917], -2), ...
- [0.20, 0.38; 0.21, 0.46], 2e-15)
-***** assert (roundn (401189, 3), 401000, 2e-15)
-***** assert (roundn (5), 5, 2e-15)
-***** assert (roundn (-5), -5, 2e-15)
-8 tests, 8 passed, 0 known failure, 0 skipped
-[inst/con2geo.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/con2geo.m
-***** test
- chi = [0:15:90];
- phi = con2geo (chi);
- Z = degrees2dm (phi - chi);
- check = [0
- 5.7891134
- 10.01261
- 11.538913
- 9.9734791
- 5.7499818
- 0];
- assert (Z(:,2), check, 1e-6)
-***** error con2geo ("s")
-***** error con2geo (5i)
-3 tests, 3 passed, 0 known failure, 0 skipped
-[inst/distance.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/distance.m
-***** test
- assert (distance ([37, -76], [37, -9]), 52.30942093, 1e-7)
-***** test ## Very small distances, haversine formula
- assert (distance (0, 0, 0, 1e-8), 1e-8, eps);
-***** test ## Very large distance, spherical cosine formula. Sph.cos. degenerates
- ## the least there
- assert (distance (-90, 0, 89.999999, 0), 179.999999, 1e-6);
-***** test
- [d, az] = distance (0, 0, 0, pi, "radians");
- assert (d, pi, 1e-7)
- assert (az, pi / 2, 1e-7)
-4 tests, 4 passed, 0 known failure, 0 skipped
-[inst/referenceEllipsoid.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/referenceEllipsoid.m
-***** test
-
- E = referenceEllipsoid ("wgs84");
- assert ( E.SemiminorAxis, 6356752.314245, 10e-7 )
- assert ( E.Eccentricity, 0.081819221456, 10e-8)
- assert ( E.Flattening, 1 / 298.2572235630, 10e-8 )
-***** error referenceEllipsoid ( 7i )
-***** error referenceEllipsoid ( "yy" )
-***** error referenceEllipsoid ( " " )
-4 tests, 4 passed, 0 known failure, 0 skipped
-[inst/almanac.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/almanac.m
-***** test
- assert (strcmpi (almanac (){1}, "Sun"), true);
- assert (strcmpi (almanac (){12}, "Unit Sphere"), true);
-***** test
- assert (almanac ("sun", "radius", "sm"), 432285.77700111, 1e-6);
-***** test
- assert (almanac ("earth", "everest", "nm"), [3443.456768421318, 0.0814729809], 1e-9);
-***** test
- assert (almanac ("jupiter", "ellipsoid", "km"), [71492.0 0.3543164], 1e-7);
-***** error almanac ("UFO")
-***** error almanac ("Moon", 12)
-***** error almanac ("Mars", "flattening")
-7 tests, 7 passed, 0 known failure, 0 skipped
-[inst/antipode.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/antipode.m
-***** test
- [lato, lono] = antipode (90, 0);
- assert ([lato, lono], [-90, 180], eps);
-***** test
- [lato, lono] = antipode (43, 15);
- assert ([lato, lono], [-43, -165], eps);
-***** test
- [lato, lono] = antipode ([-365; -360; -315; -270; -225; -185; -180; -135; -90; -45; 0; 45; 90; 135; 180; 225; 270; 315; 360], ...
- [-361; -359; -315; -270; -225; -185; -180; -135; -90; -45; 0; 45; 90; 135; 180; 225; 270; 315; 360]);
- assert ([lato, lono], [[5; 0; -45; -90; -45; -5; 0; 45; 90; 45; 0; -45; -90; -45; 0; 45; 90; 45; 0], ...
- [179; -179; -135; -90; -45; -5; 0; 45; 90; 135; 180; -135; -90; -45; 0; 45; 90; 135; 180]], eps);
-***** error [a, b] = antipode ("a", 1);
-***** error a = antipode (0, 0);
-***** error [a, b] = antipode (0);
-***** error [a, b] = antipode (0, 0, 0);
-***** error [a, b] = antipode (0, 0, "a");
-8 tests, 8 passed, 0 known failure, 0 skipped
-[inst/degrees2dm.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/degrees2dm.m
-***** test
- deg = [10 10.5 -10.5 -0.5 0.5]';
- dm = [ 10 0
- 10 30
- -10 30
- 0 -30
- 0 30];
- for i = 1:rows (deg)
- assert (degrees2dm (deg(i)), dm(i,:));
- assert (degrees2dm (single (deg(i))), single (dm(i,:)));
- endfor
- assert (degrees2dm (deg), dm);
- assert (degrees2dm (single (deg)), single (dm));
-
- warning ("error", "Octave:array-to-vector", "local")
- got_warn = false;
- try
- degrees2dm (deg');
- catch
- got_warn = true;
- end_try_catch
- assert (got_warn, true)
-***** assert (degrees2dm ("f"), [102 0])
-***** assert (degrees2dm ("fm"), [102 0; 109 0])
-***** assert (degrees2dm (true), [1 0])
-***** assert (degrees2dm ([true false]), [1 0; 0 0])
-***** assert (degrees2dm (uint8 ([5 48 9]')), uint8 ([5 0; 48 0; 9 0]))
-6 tests, 6 passed, 0 known failure, 0 skipped
-[inst/ecef2nedv.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/ecef2nedv.m
-***** test
- [n, e, d] = ecef2nedv (186.277521, 286.84222, 939.69262, 42, -82, "d");
- assert ([n, e, d], [871.0476287, 224.3854022, -436.9521873], 10e-6);
-***** test
- [n, e, d] = ecef2nedv (186.277521, 286.84222, 939.69262, ...
- 0.733038285837618, -1.43116998663535, "r");
- assert ([n, e, d], [871.0476287, 224.3854022, -436.9521873], 10e-6);
-***** test ## Multidimensionality
- [n, e, d] = ecef2nedv ([186.277521; 200], [286.84222; 300], [939.69262; 1000], 42, -82);
- assert ([n, e, d], [871.047629, 224.385402, -436.952187; ...
- 923.305431, 239.805544, -469.041983], 1e-6);
-***** test
- [nv, ev, dv] = ecef2nedv (530.2445, 492.1283, 396.3459, 61.64, 30.70);
- assert ([nv, ev, dv], [-434.0403, 152.4451, -684.69634], 1e-4);
-***** error ecef2nedv("s", 25, 1e3, 0, 0)
-***** error ecef2nedv(3i, 25, 1e3, 0, 0)
-***** error ecef2nedv(33, "s", 1e3, 0, 0)
-***** error ecef2nedv(33, 3i, 1e3, 0, 0)
-***** error ecef2nedv(33, 25, "s", 0, 0)
-***** error ecef2nedv(33, 25, 3i, 0, 0)
-***** error ecef2nedv(33, 25, 1e3, "s", 0)
-***** error ecef2nedv(33, 25, 1e3, 3i, 0)
-***** error ecef2nedv(33, 25, 1e3, 0, "s")
-***** error ecef2nedv(33, 25, 1e3, 0, 3i)
-***** error ecef2nedv (33, 70, 1e3, 0, 0, "f");
-***** error ecef2nedv (33, 70, 1e3, 0, 0, "degreef")
-***** error [u, v, w] = ecef2nedv ([1, 2, 3], [4, 5, 6], [7, 9], 60, 50)
-***** error [u, v, w] = ecef2nedv ([1, 2, 3], [4, 5, 6], [7, 8, 9], [40; 50], [-40; -50])
-***** error [u, v, w] = ecef2nedv ([1, 2, 3], [4, 5, 6], [7, 8, 9], 50, [-45; 50])
-19 tests, 19 passed, 0 known failure, 0 skipped
-[inst/sm2km.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/sm2km.m
-***** test
- km = [2 6336 4.8326 6.437388874777749];
- sm = [1.242739898989899 3937 3.002832417929293 4];
- assert (sm2km (sm), km)
- km = reshape (km, [1 2 2]);
- sm = reshape (sm, [1 2 2]);
- assert (sm2km (sm), km)
-***** assert (sm2km (3937), 6336)
-2 tests, 2 passed, 0 known failure, 0 skipped
-[inst/sm2deg.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/sm2deg.m
-***** test
- ratio = unitsratio ('km','sm');
- assert (sm2deg (10), km2deg (ratio*10), 10*eps);
- assert (sm2deg (10, 80), km2deg (ratio*10, ratio*80), 10*eps);
- assert (sm2deg (10, "pluto"), km2deg (ratio*10, "pluto"), 10*eps);
-1 test, 1 passed, 0 known failure, 0 skipped
-[inst/extractfield.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/extractfield.m
-***** test
- a = {1:3, 4:6, [7:9]', 10:11, uint8(12:13), "text"};
- s(1).a = a{1};
- s(2).a = a{2};
- assert (extractfield (s, "a"), 1:6);
- s(3).a = a{3};
- assert (extractfield (s, "a"), 1:9);
- s(4).a = a{4};
- assert (extractfield (s, "a"), 1:11);
- s(5).a = a{5};
- assert (extractfield (s, "a"), a(1:5));
- s(6).a = a{6};
- assert (extractfield (s, "a"), a);
-***** test
- s(1).a = [4 5];
- s(2).a = [6i 7i 8];
- assert (extractfield (s, "a"), [4 5 6i 7i 8]);
-***** test
- s(1).a = 0;
- s(2).a = false;
- assert (extractfield (s, "a"), {0, false});
-***** test
- s = struct ("a", mat2cell (1:10, 1, [3 3 4]),
- "b", mat2cell (11:20, 1, [5 2 3]));
- assert (extractfield (s, "a"), 1:10);
- assert (extractfield (s, "b"), 11:20);
-***** error extractfield (5, "name")
-***** error extractfield (struct ("name", 5), "not a name")
-6 tests, 6 passed, 0 known failure, 0 skipped
-[inst/makesymbolspec.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/makesymbolspec.m
-***** test
-***** warning ssp = makesymbolspec ("Line", {"LENGTH", [100 150], "color", "b", ...
- "nonsense", "?", "lineWidth", 3, "markersize", "BS", "Visible", 1});
- ssp = makesymbolspec ("Line", {"LENGTH", [100 150], "color", "b", ...
- "lineWidth", 3, "Visible", 1});
- assert (reshape (ssp{2}(3:end), 2, [])(1, :), {"Color", "LineWidth", ...
- "Visible"});
- assert (ssp{1}, "Line");
-2 tests, 2 passed, 0 known failure, 0 skipped
-[inst/enu2geodetic.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/enu2geodetic.m
-***** test
- [lat, lon, alt] = enu2geodetic (186.28, 286.84, 939.69, 42, -82, 200);
- assert ([lat, lon, alt], [42.00258, -81.997752, 1139.69918], 10e-6);
-***** test
- [lat, lon, alt] = enu2geodetic (186.28, 286.84, 939.69, 0.733038285837618, -1.43116998663535, 200, "", "rad");
- assert ([lat, lon, alt], [0.73308, -1.43113, 1139.69918], 10e-6);
-***** test
- [a, b, c] = enu2geodetic (-7134.8, -4556.3, 2852.4, 46.017, 7.750, 1673, 7030);
- assert ([a, b, c], [45.976000, 7.657999, 4531.009608], 1e-6);
-***** error enu2geodetic("s", 25, 1e3, 0, 0, 0)
-***** error enu2geodetic(3i, 25, 1e3, 0, 0, 0)
-***** error enu2geodetic(33, "s", 1e3, 0, 0, 0)
-***** error enu2geodetic(33, 3i, 1e3, 0, 0, 0)
-***** error enu2geodetic(33, 25, "s", 0, 0, 0)
-***** error enu2geodetic(33, 25, 3i, 0, 0, 0)
-***** error enu2geodetic(33, 25, 1e3, "s", 0, 0)
-***** error enu2geodetic(33, 25, 1e3, 3i, 0, 0)
-***** error enu2geodetic(33, 25, 1e3, 0, "s", 0)
-***** error enu2geodetic(33, 25, 1e3, 0, 3i, 0)
-***** error enu2geodetic(33, 25, 1e3, 0, 0, "s")
-***** error enu2geodetic(33, 25, 1e3, 0, 0, 3i)
-***** error enu2geodetic ([1 1], [2 2]', [3 3], 4, 5, 6)
-***** error enu2geodetic ([1 1], [2 2], [33], 4, 5, 6)
-***** error enu2geodetic ([1 1], [2 2], [3 3], [4 4], 5, 6)
-***** error enu2geodetic ([1 1], [2 2], [3 3], 4, [5 5], 6)
-***** error enu2geodetic ([1 1], [2 2], [3 3], [4; 4], [5; 5], [6; 6])
-20 tests, 20 passed, 0 known failure, 0 skipped
-[inst/egm96geoid.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/egm96geoid.m
-***** test ## Check for heights of some global extreme regions
- assert (egm96geoid ([20, 50, 60, 10, -5], [-120, -50, -20, 75, 140]), ...
- [-47.576, 24.159,60.658, -97.286, 75.784], 1e-2);
-***** error egm96geoid ("a", 1)
-***** error egm96geoid (2.5i, 1)
-***** error egm96geoid (-1)
-***** error egm96geoid (1, [3 4])
-***** error egm96geoid (1, 1, 2)
-6 tests, 6 passed, 0 known failure, 0 skipped
-[inst/closePolygonParts.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/closePolygonParts.m
-***** test
- xi = [ 1 5 6 2 NaN 11 15 16 12 ];
- yi = [ 1 2 5 6 NaN 1 2 5 6 ];
- zi = [ 1 3 5 3 NaN 11 13 15 13 ];
- mi = [ 8 9 NaN -1 NaN NaN -3 -2 NaN];
- [a, b, c, d] = closePolygonParts (xi, yi, zi, mi);
- assert (a, [1 5 6 2 1 NaN 11 15 16 12 11], 1e-10);
- assert (b, [1 2 5 6 1 NaN 1 2 5 6 1], 1e-10);
- assert (c, [1 3 5 3 1 NaN 11 13 15 13 11], 1e-10);
- [d, e, f] = closePolygonParts (a, b, c);
- assert (a, d, 1e-10);
- assert (b, e, 1e-10);
- assert (c, f, 1e-10);
-***** test
- xxi = [ 400 405 406 402 NaN 311 315 316 312 671 ];
- yyi = [ 1 2 5 6 NaN 1 2 5 6 1 ];
- zzi = [ 1 3 5 3 NaN 11 13 15 13 11 ];
- [a, b, c] = closePolygonParts (xxi, yyi, zzi, "deg");
- assert (a, [400 405 406 402 400 NaN 311 315 316 312 671], 1e-10);
- assert (b, [ 1 2 5 6 1 NaN 1 2 5 6 1], 1e-10);
- assert (c, [ 1 3 5 3 1 NaN 11 13 15 13 11], 1e-10);
-***** error a = closePolygonParts ([0 1], "ged");
-***** error [a, b] = closePolygonParts ([0 1], {"c", "d"})
-***** error a = closePolygonParts ([0 1], [2 3])
-***** error a = closePolygonParts ("radians")
-***** error [a, b] = closePolygonParts ([0 NaN 1], [2 NaN 3 4])
-***** error [a, b] = closePolygonParts ([0 1 NaN 1], [2 NaN 3 4])
-8 tests, 8 passed, 0 known failure, 0 skipped
[inst/areaquad.m]
>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/areaquad.m
***** test
@@ -4021,29 +3446,116 @@
***** error areaquad (-90, 0, 91, 360);
***** error areaquad ([1 2], 3, [4; 5], 6);
22 tests, 22 passed, 0 known failure, 0 skipped
-[inst/ecc2flat.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/ecc2flat.m
+[inst/nm2deg.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/nm2deg.m
***** test
- ec = 0.081819221456;
- ev = 0 : 0.01 : 0.05;
- assert (ecc2flat (ec), 0.00335281317793612, 10^-12);
- assert (ecc2flat (ev), [0, 5e-5, 2e-4, 4.501e-4, 8.0032e-4, 0.00125078], 10^-6);
-***** error ecc2flat ("a")
-***** error ecc2flat(1)
-3 tests, 3 passed, 0 known failure, 0 skipped
-[inst/utmzone.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/utmzone.m
+ ratio = unitsratio ('km','nm');
+ assert (nm2deg (10), km2deg (ratio*10), 10*eps);
+ assert (nm2deg (10, 80), km2deg (ratio*10, ratio*80), 10*eps);
+ assert (nm2deg (10, "pluto"), km2deg (ratio*10, "pluto"), 10*eps);
+1 test, 1 passed, 0 known failure, 0 skipped
+[inst/meridianfwd.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/meridianfwd.m
***** test
- lat = 43; ## From Wiki
- long = -79;
- assert (utmzone (lat, long), "17T")
-***** assert (utmzone ("17T"), [40, 48;-84, -78])
-***** assert (utmzone (60, 5), "32V") ## For Bergen Norway
-***** assert (utmzone ("32V"), [56, 64;3, 12])
-***** error utmzone ("32X")
-***** error utmzone ("31I")
-***** error utmzone ("31O")
-7 tests, 7 passed, 0 known failure, 0 skipped
+ a = rad2deg (meridianfwd (-pi/4, [60 120] * 45 * 1846.2756967249574, 'wgs84'));
+ assert (a, [0, 45], 5e-7);
+1 test, 1 passed, 0 known failure, 0 skipped
+[inst/rad2km.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/rad2km.m
+***** test
+***** assert (km2rad (rad2km (10)), 10, 10*eps);
+***** assert (km2rad (rad2km (10, 80), 80), 10, 10*eps);
+***** assert (km2rad (rad2km (10, "pluto"), "pluto"), 10, 10*eps);
+4 tests, 4 passed, 0 known failure, 0 skipped
+[inst/sm2km.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/sm2km.m
+***** test
+ km = [2 6336 4.8326 6.437388874777749];
+ sm = [1.242739898989899 3937 3.002832417929293 4];
+ assert (sm2km (sm), km)
+ km = reshape (km, [1 2 2]);
+ sm = reshape (sm, [1 2 2]);
+ assert (sm2km (sm), km)
+***** assert (sm2km (3937), 6336)
+2 tests, 2 passed, 0 known failure, 0 skipped
+[inst/enu2ecef.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/enu2ecef.m
+***** test
+ [x, y, z] = enu2ecef (186.28, 286.84, 939.69, 42, -82, 200);
+ assert ([x, y, z], [6.6093019515e5, -4.70142422216e6, 4.24657960122e6], 10e-6)
+***** test
+ [x3, y3, z3] = enu2ecef ( 186.28, 286.84, 939.69, 0.733038285837618, -1.43116998663535, 200, "", "rad");
+ assert ([x3, y3, z3], [660.93019e3, -4701.42422e3, 4246.5796e3],10e-3)
+***** test
+ [a, b, c] = enu2ecef (355601.3, -923083.2, 1041016.4, 45.9132, 36.7484, 1877753.2);
+ assert ([a, b, c], [5507528.8891, 4556224.1399, 6012820.7522], 1e-4)
+***** error enu2ecef("s", 25, 1e3, 0, 0, 0)
+***** error enu2ecef(3i, 25, 1e3, 0, 0, 0)
+***** error enu2ecef(33, "s", 1e3, 0, 0, 0)
+***** error enu2ecef(33, 3i, 1e3, 0, 0, 0)
+***** error enu2ecef(33, 25, "s", 0, 0, 0)
+***** error enu2ecef(33, 25, 3i, 0, 0, 0)
+***** error enu2ecef(33, 25, 1e3, "s", 0, 0)
+***** error enu2ecef(33, 25, 1e3, 3i, 0, 0)
+***** error enu2ecef(33, 25, 1e3, 0, "s", 0)
+***** error enu2ecef(33, 25, 1e3, 0, 3i, 0)
+***** error enu2ecef(33, 25, 1e3, 0, 0, "s")
+***** error enu2ecef(33, 25, 1e3, 0, 0, 3i)
+***** error enu2ecef ([1 1], [2 2]', [3 3], 4, 5, 6)
+***** error enu2ecef ([1 1], [2 2], [33], 4, 5, 6)
+***** error enu2ecef ([1 1], [2 2], [3 3], [4 4], 5, 6)
+***** error enu2ecef ([1 1], [2 2], [3 3], 4, [5 5], 6)
+***** error enu2ecef ([1 1], [2 2], [3 3], 4, 5, [6 6])
+20 tests, 20 passed, 0 known failure, 0 skipped
+[inst/nm2sm.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/nm2sm.m
+***** test
+ nm = [50292 50.292 100.584 25.146 10058.4 12.573];
+ sm = [57875 57.875 115.75 28.9375 11575 14.46875];
+ assert (nm2sm (nm), sm)
+ sm = reshape (sm, [2 1 3]);
+ nm = reshape (nm, [2 1 3]);
+ assert (nm2sm (nm), sm)
+***** assert (nm2sm (50292), 57875)
+2 tests, 2 passed, 0 known failure, 0 skipped
+[inst/gcxgc.m]
+>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/gcxgc.m
+***** test
+ [lat3, lon3] = gcxgc ( 51.8853, 0.2545, 108.55, 49.0034, 2.5735, 32.44);
+ assert (degrees2dms (lat3(1)), [50 54 27.387002], 10e-5);
+ assert (degrees2dms (lon3(1)), [04 30 30.868724], 10e-5);
+***** test
+ [lat3, lon3] = gcxgc (20, -5, 45, 30, 5, 15);
+ assert (lat3(1), 28.062035, 10e-5);
+ assert (lon3(1), 4.4120504, 10e-5);
+***** test
+ latlon = gcxgc (45, 45, 90, 0, 0, 90);
+ assert (latlon, [0, 0, 135, -45], 10e-10);
+***** test
+ warning ("off", "Octave:coinciding-great-circles");
+ [~, ~, idl] = gcxgc (45, [0:45:360], 45, -45, -135, -45);
+ warning ("on", "Octave:coinciding-great-circles");
+ assert (idl, 2, 1e-10);
+***** warning gcxgc (0, 0, 45, 0, 180, -45);
+***** error gcxgc ("s", 0, 100, 10, 30, 0)
+***** error gcxgc (3i, 0, 100, 10, 30, 0)
+***** error gcxgc (50, "s", 100, 10, 30, 0)
+***** error gcxgc (50, 2i, 10, 10, 30, 0)
+***** error gcxgc (50, 0, "s", 10, 30, 0)
+***** error gcxgc (50, 0, 100i, 10, 30, 0)
+***** error gcxgc (50, 0, 100, "s", 30, 0)
+***** error gcxgc (50, 0, 100, 10i, 30, 0)
+***** error gcxgc (50, 0, 100, 10, "s", 0)
+***** error gcxgc (50, 0, 100, 10, 30i, 0)
+***** error gcxgc (50, 0, 100, 10, 30, "s")
+***** error gcxgc (50, 0, 100, 10, 30, 2i)
+***** error gcxgc (50, 0, 100, 10, 30, 0, "f")
+***** error gcxgc (50, 0, 100, 10, 30, 0, "degreef")
+***** error gcxgc (190, 0, 90, -90.000001, 180, 80);
+***** error gcxgc (190, 0, -90.001, -90.000001, 180, 80);
+***** error gcxgc (pi/1.999, 0, pi/2, pi/2.0001, 2, 2*pi/3, "r");
+***** error gcxgc ([50 0], 0, 0, 0, 0, [1 2 3])
+23 tests, 23 passed, 0 known failure, 0 skipped
[inst/geodeticarc.m]
>>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/geodeticarc.m
***** demo
@@ -4068,204 +3580,6 @@
assert (dst, [5830081.06; 3337842.871; 0], 1e-2);
assert (mean (az'), [90, 0, 0,], 1e-7);
6 tests, 6 passed, 0 known failure, 0 skipped
-[inst/ned2ecefv.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/ned2ecefv.m
-***** test
- [u, v, w] = ned2ecefv (871.0476287, 224.3854022, -436.9521873, 42, -82, "d");
- assert ([u, v, w], [186.277521, 286.84222, 939.69262], 10e-6)
-***** test
- [u, v, w] = ned2ecefv (871.0476287, 224.3854022, -436.9521873, ...
- 0.733038285837618, -1.43116998663535, "r");
- assert ([u, v, w], [186.277521, 286.84222, 939.69262], 10e-6)
-***** test ## Multidimensionality
- [u, v, w] = ned2ecefv ([871.0476287; 900], [224.3854022; 200], [-436.9521873; -500], 42, -82);
- assert ([u, v, w], [186.277521, 286.84222, 939.69262; ...
- 165.954015, 256.23513, 1003.395646], 1e6);
-***** test
- [u, v, w] = ned2ecefv (-434.0403, 152.4451, -684.6964, 61.64, 30.70);
- assert ([u, v, w], [530.24451, 492.12835, 396.34594], 1e-5);
-***** error ned2ecefv("s", 25, 1e3, 0, 0)
-***** error ned2ecefv(3i, 25, 1e3, 0, 0)
-***** error ned2ecefv(33, "s", 1e3, 0, 0)
-***** error ned2ecefv(33, 3i, 1e3, 0, 0)
-***** error ned2ecefv(33, 25, "s", 0, 0)
-***** error ned2ecefv(33, 25, 3i, 0, 0)
-***** error ned2ecefv(33, 25, 1e3, "s", 0)
-***** error ned2ecefv(33, 25, 1e3, 3i, 0)
-***** error ned2ecefv(33, 25, 1e3, 0, "s")
-***** error ned2ecefv(33, 25, 1e3, 0, 3i)
-***** error ned2ecefv (33, 70, 1e3, 0, 0, "f");
-***** error ned2ecefv (33, 70, 1e3, 0, 0, "degreef")
-***** error [u, v, w] = ned2ecefv ([1, 2, 3], [4, 5, 6], [7, 9], 60, 50)
-***** error [u, v, w] = ned2ecefv ([1, 2, 3], [4, 5, 6], [7, 8, 9], [40; 50], [-40; -50])
-***** error [u, v, w] = ned2ecefv ([1, 2, 3], [4, 5, 6], [7, 8, 9], 50, [-45; 50])
-19 tests, 19 passed, 0 known failure, 0 skipped
-[inst/auth2geo.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/auth2geo.m
-***** test
- xi = [0:15:90];
- phi = auth2geo (xi);
- Z = degrees2dm(phi - xi);
- check = [0
- 3.8575173
- 6.6751024
- 7.6978157
- 6.6579355
- 3.8403504
- 0];
- assert (Z(:,2), check, 1e-6)
-***** error auth2geo ("s")
-***** error auth2geo (5i)
-3 tests, 3 passed, 0 known failure, 0 skipped
-[inst/ned2aer.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/ned2aer.m
-***** test
- [az, el, slantrange] = ned2aer (286.84222, 186.277521, -939.69262);
- assert ([az, el, slantrange], [33, 70, 1e3], 10e-6)
- [az, el, slantrange] = ned2aer (286.84222, 186.277521, -939.69262, "rad");
- assert ([az, el, slantrange], [0.57595865, 1.221730476, 1e3], 10e-6)
-***** error ned2aer ("s", 25, 1e3)
-***** error ned2aer (3i, 25, 1e3)
-***** error ned2aer (33, "s", 1e3)
-***** error ned2aer (33, 3i, 1e3)
-***** error ned2aer (33, 25, "s")
-***** error ned2aer (33, 25, 3i)
-***** error ned2aer ([1 1], [2 2]', [4 5])
-***** error ned2aer ([1 1], [2 2], [4 5 6])
-9 tests, 9 passed, 0 known failure, 0 skipped
-[inst/nm2km.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/nm2km.m
-***** test
- km = [10 13.000002880000002 14.9999962 17.000008 19 31.000072400000004];
- nm = [5.399568034557235 7.01944 8.09935 9.179269978401727 10.259179265658746 16.7387];
- assert (nm2km (nm), km)
- km = reshape (km, [3 2 1]);
- nm = reshape (nm, [3 2 1]);
- assert (nm2km (nm), km)
-***** assert (nm2km (8.09935), 14.9999962)
-2 tests, 2 passed, 0 known failure, 0 skipped
-[inst/degtorad.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/degtorad.m
-***** assert (degtorad(180),pi,10*eps)
-1 test, 1 passed, 0 known failure, 0 skipped
-[inst/scxsc.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/scxsc.m
-***** test
- R1 = rad2deg (107.5 / earthRadius ("NM")); # Convert NM to deg
- R2 = rad2deg (145 / earthRadius ("NM"));
- [lat, lon, jj] = scxsc (37.673442, -90.234036, R1, 36.109997, -90.953669, R2);
- assert (lat(1), 36.988778646, 1e-6);
- assert (lon(1), -88.15335362, 1e-6);
-***** test
- [a, b, c] = gc2sc (45, [0:45:360], 45);
- ## Correct a, must be 30 exactly degrees. reckon() is a bit inaccurate
- a = -30 * ones (9, 1);
- [d, e, f] = gc2sc (-45, -135, -45);
- wst = warning ("off", "Octave:coinciding-small-circles", "local");
- [g, h] = scxsc (a, b, c, d, e, f);
- warning (wst.state, "Octave:coinciding-small-circles");
- assert (g(2, 1), NaN);
- assert ([g(9, 1) h(9, 1)], [-57.997936587 -102.76438968], 1e-6);
-***** test
- wst1 = warning ("off", "Octave:coinciding-small-circles", "local");
- wst2 = warning ("off", "Octave:no-intersecting-circles", "local");
- [~, ~, w] = scxsc (0, 0, 1, 0, [0, 2, 0, 2], [1, 1, 2, 1.5]);
- warning (wst2.state, "Octave:no-intersecting-circles");
- warning (wst1.state, "Octave:coinciding-small-circles");
- assert (w, [3; 2; 1; 0], eps);
-***** warning scxsc (45, 90, 1, -30, 60, 1);
-***** warning scxsc (0, 0, 10, 0, 4, 2);
-***** warning scxsc (0, 4, 3, 0, 0, 10);
-***** error scxsc ("s", 0, 100, 10, 30, 0);
-***** error scxsc (3i, 0, 100, 10, 30, 0);
-***** error scxsc (50, "s", 100, 10, 30, 0);
-***** error scxsc (50, 2i, 10, 10, 30, 0);
-***** error scxsc (50, 0, "s", 10, 30, 0);
-***** error scxsc (50, 0, 100i, 10, 30, 0);
-***** error scxsc (50, 0, 100, "s", 30, 0);
-***** error scxsc (50, 0, 100, 10i, 30, 0);
-***** error scxsc (50, 0, 100, 10, "s", 0);
-***** error scxsc (50, 0, 100, 10, 30i, 0);
-***** error scxsc (50, 0, 100, 10, 30, "s");
-***** error scxsc (50, 0, 100, 10, 30, 2i);
-***** error scxsc (50, 0, 100, 10, 30, 0, "f");
-***** error scxsc (50, 0, 100, 10, 30, 0, "degreef");
-***** error scxsc (190, 0, 90, -90.000001, 180, 80);
-***** error scxsc (190, 0, -90.001, -90.000001, 180, 80);
-***** error scxsc (pi/1.999, 0, pi/2, pi/2.0001, 2, 2*pi/3, "r");
-23 tests, 23 passed, 0 known failure, 0 skipped
-[inst/aer2enu.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/aer2enu.m
-***** test
- [e, n, u] = aer2enu (33, 70, 1e3);
- assert ([e, n, u], [186.277521, 286.84222, 939.69262], 10e-6)
- [e, n, u] = aer2enu (0.57595865, 1.221730476, 1e3, "rad");
- assert ([e, n, u], [186.277521, 286.84222, 939.69262], 10e-6)
-***** error aer2enu("s", 25, 1e3)
-***** error aer2enu(3i, 25, 1e3)
-***** error aer2enu(33, "s", 1e3)
-***** error aer2enu(33, 3i, 1e3)
-***** error aer2enu(33, 25, "s")
-***** error aer2enu(33, 25, 3i)
-***** error aer2enu ([1 1], [2 2]', [4 5])
-***** error aer2enu ([1 1], [2 2], [4 5 6])
-***** error aer2enu (1, 2, 3, 4);
-***** error aer2enu (1, 2)
-***** error aer2enu (33, 70, 1e3, "f");
-***** error aer2enu (33, 70, 1e3, "degreef");
-13 tests, 13 passed, 0 known failure, 0 skipped
-[inst/iso2geo.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/iso2geo.m
-***** test
- psi = iso2geo (50.227465817);
- assert (psi, 45, 1e-6)
-***** test
- assert(iso2geo (geo2iso ([-90 : 10: 0; 0 : 10 : 90]), "wgs84"), ...
- [-90 : 10: 0; 0 : 10 : 90], 1e-8);
-***** error iso2geo ("s")
-***** error iso2geo (5i)
-4 tests, 4 passed, 0 known failure, 0 skipped
-[inst/dms2degrees.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/dms2degrees.m
-***** test
- hs = 0.5/60;
- deg = [ 10 10.5 -10.5 -10 -0.5 0.5 hs 0 -1/60 ]' + hs;
- dms = [ 10 0 30
- 10 30 30
- -10 29 30
- -9 59 30
- 0 -29 30
- 0 30 30
- 0 1 0
- 0 0 30
- 0 0 -30];
- for i = 1:rows (dms)
- assert (dms2degrees (dms(i,:)), deg(i), 2*10^-15);
- endfor
- assert (dms2degrees (dms), deg, eps*10);
- assert (dms2degrees (single (dms)), single (deg), 3*10^-8);
-***** error dms2degrees ([5 40 60])
-***** error dms2degrees ([5 40 61])
-***** error <3 columns> dms2degrees ([5 50])
-***** error dms2degrees ([5 -40 9])
-***** error dms2degrees ([-5 -40 9])
-***** error dms2degrees ([0 -40 -9])
-***** error <3 columns> dms2degrees (rand (7, 3, 3))
-8 tests, 8 passed, 0 known failure, 0 skipped
-[inst/geocentricLatitude.m]
->>>>> /build/reproducible-path/octave-mapping-1.4.2/inst/geocentricLatitude.m
-***** test
- earth_flattening = 0.0033528;
- assert (geocentricLatitude (45, earth_flattening), 44.8075766, 10e-6);
- assert (geocentricLatitude (pi/4, earth_flattening, 'radians'), 0.78204, 10e-6);
-***** error geocentricLatitude (0.5, "flat")
-***** error geocentricLatitude (0.5, 5i)
-***** error geocentricLatitude ("phi", 0.0033528)
-***** error geocentricLatitude (5i, 0.0033528 )
-***** error geocentricLatitude ([45 50], [0.7 0.8])
-***** error