Skip to content

Commit a931739

Browse files
committed
correct Ellipsoid imports
1 parent b51a3ea commit a931739

File tree

21 files changed

+120
-55
lines changed

21 files changed

+120
-55
lines changed

.appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ build: off
1414
init:
1515
- cmd: set PATH=%PY_DIR%;%PY_DIR%\Scripts;%PATH%
1616

17-
install: pip install -e .[tests,full]
17+
install:
18+
- pip install -e .[tests,full]
1819

1920
test_script: pytest -rsv
2021

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
ko_fi: scivision

GenTest.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

LICENSE renamed to LICENSE.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ Redistribution and use in source and binary forms, with or without modification,
88

99
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1010

11-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12-
13-
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![image](https://zenodo.org/badge/DOI/10.5281/zenodo.213676.svg)](https://doi.org/10.5281/zenodo.213676)
2+
23
[![image](http://joss.theoj.org/papers/10.21105/joss.00580/status.svg)](https://doi.org/10.21105/joss.00580)
34
[![image](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)](http://www.astropy.org/)
45
[![image](https://travis-ci.org/scivision/pymap3d.svg?branch=master)](https://travis-ci.org/scivision/pymap3d)
@@ -84,6 +85,8 @@ lla = pm.aer2geodetic(*aer,*obslla)
8485
where tuple `lla` is comprised of scalar or N-D arrays `(lat,lon,alt)`.
8586

8687

88+
Example scripts are in the [examples](./examples) directory.
89+
8790
### Functions
8891

8992
Popular mapping toolbox functions ported to Python include the
@@ -109,12 +112,12 @@ Additional functions:
109112

110113
Abbreviations:
111114

112-
- [AER: Azimuth, Elevation, Range](https://en.wikipedia.org/wiki/Spherical_coordinate_system)
113-
- [ECEF: Earth-centered, Earth-fixed](https://en.wikipedia.org/wiki/ECEF)
114-
- [ECI: Earth-centered Inertial](https://en.wikipedia.org/wiki/Earth-centered_inertial)
115-
- [ENU: East North Up](https://en.wikipedia.org/wiki/Axes_conventions#Ground_reference_frames:_ENU_and_NED)
116-
- [NED: North East Down](https://en.wikipedia.org/wiki/North_east_down)
117-
- [radec: right ascension, declination](https://en.wikipedia.org/wiki/Right_ascension)
115+
* [AER: Azimuth, Elevation, Range](https://en.wikipedia.org/wiki/Spherical_coordinate_system)
116+
* [ECEF: Earth-centered, Earth-fixed](https://en.wikipedia.org/wiki/ECEF)
117+
* [ECI: Earth-centered Inertial](https://en.wikipedia.org/wiki/Earth-centered_inertial)
118+
* [ENU: East North Up](https://en.wikipedia.org/wiki/Axes_conventions#Ground_reference_frames:_ENU_and_NED)
119+
* [NED: North East Down](https://en.wikipedia.org/wiki/North_east_down)
120+
* [radec: right ascension, declination](https://en.wikipedia.org/wiki/Right_ascension)
118121

119122
### Caveats
120123

@@ -126,14 +129,11 @@ Abbreviations:
126129

127130
As compared to [PyProj](https://github.com/jswhit/pyproj):
128131

129-
- PyMap3D does not require anything beyond pure Python + Numpy.
130-
- PyMap3D API is similar to Matlab Mapping Toolbox, while PyProj's interface is quite distinct
131-
- PyMap3D intrinsically handles local coordinate systems such as ENU,
132-
while for PyProj ENU requires some [additional
133-
effort](https://github.com/jswhit/pyproj/issues/105).
134-
- PyProj is oriented towards points on the planet surface, while
135-
PyMap3D handles points on or above the planet surface equally well,
136-
particularly important for airborne vehicles and remote sensing.
132+
* PyMap3D does not require anything beyond pure Python -- not even Numpy is required for basic functions.
133+
* PyMap3D API is similar to Matlab Mapping Toolbox, while PyProj's interface is quite distinct
134+
* PyMap3D intrinsically handles local coordinate systems such as ENU,
135+
while PyProj ENU requires some [additional effort](https://github.com/jswhit/pyproj/issues/105).
136+
* PyProj is oriented towards points on the planet surface, while PyMap3D handles points on or above the planet surface equally well, particularly important for airborne vehicles and remote sensing.
137137

138138
### AstroPy.Units.Quantity
139139

File renamed without changes.
File renamed without changes.
File renamed without changes.

vdist.py renamed to examples/vdist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def main():
1212
P = p.parse_args()
1313

1414
dist_m = vdist(P.lat1, P.lon1, P.lat2, P.lon2)
15-
print('distance between WGS-84 points: {} m'.format(dist_m))
15+
16+
print('{:.3f} {:.3f} {:.3f}'.format(*dist_m))
1617

1718

1819
if __name__ == '__main__': # pragma: no cover

0 commit comments

Comments
 (0)