Skip to content

Commit 4175cb2

Browse files
committed
updates, doc build, new notebook
1 parent b622d54 commit 4175cb2

12 files changed

+486
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ dist/
66
/build/
77
nasapy.egg-info/
88
*.pyc
9-
*.DS_Store
9+
*.DS_Store
10+
*.ipynb_checkpoints

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Version History
22

3+
## Version 0.2.6
4+
5+
- `sentry` function now returns a summary object when `return_df=True` and a `des` or `spk` parameter are not specified.
6+
37
## Version 0.2.5
48

59
- `sentry` function now returns results as expected when not returning a pandas DataFrame.

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,56 @@ fireballs(date_min='2019-01-01')
252252
fireballs(date_min='2000-01-01', date_max='2020-01-01', return_df=True)
253253
~~~
254254

255+
#### Jet Propulsion Laboratory/Solar System Dynamics small body mission design suite API
256+
257+
~~~ python
258+
# Search for mission design data for SPK-ID 2000433
259+
r = mission_design(spk=2000433)
260+
# Print the object data from the returned dictionary object.
261+
r['object']
262+
~~~
263+
264+
#### Get Data on Near-Earth Object Human Space Flight Accessible Targets
265+
266+
~~~ python
267+
# Get all available summary data for NHATS objects.
268+
n = nhats()
269+
# Get summary data as a pandas DataFrame
270+
n = nhats(return_df=True)
271+
# Get the results from a 'standard' search on the NHATS webpage.
272+
nhats(delta_v=6, duration=360, stay=8, magnitude=26, launch='2020-2045', orbit_condition_code=7)
273+
# Return data for a specific object by its designation
274+
nhats(des=99942)
275+
~~~
276+
277+
#### Get Data from NASA's Center for Near-Earth Object Studies (CNEOS) Scout system
278+
279+
~~~ python
280+
# Get all available summary data.
281+
scout()
282+
# Return all summary data as a pandas DataFrame.
283+
scout(return_df=True)
284+
# Return data and plot files for a specific object by its temporary designation. Note the object may no longer
285+
# exist in the current database
286+
scout(tdes='P20UvyK')
287+
# Get ephemeris data for a specific object at the current time with a Field of View diameter of 5 arc-minutes
288+
# with a limiting V-magnitude of 23.1.
289+
scout(tdes='P20UvyK', fov_diam=5, fov_vmag=23.1)
290+
~~~
291+
292+
#### Get Data from the Center for Near Earth Object Studies (CNEOS) Sentry system
293+
294+
~~~ python
295+
# Get summary data for available sentry objects.
296+
sentry()
297+
# Get summary data as a pandas DataFrame
298+
sentry(return_df=True)
299+
# Get data for a specific Sentry object by its designation.
300+
sentry(des=99942)
301+
# Get data for objects removed from the Sentry system.
302+
sentry(removed=1)
303+
~~~
304+
255305
Other function examples
256306

257307
#### Getting the Julian and Modified Julian Date
393 Bytes
Binary file not shown.
1.47 KB
Binary file not shown.

docs/build/html/_sources/versions.rst.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Version History
55
===============
66

7+
Version 0.2.6
8+
-------------
9+
10+
- :code:`sentry` function now returns a summary object when :code:`return_df=True` and a :code:`des` or :code:`spk` parameter are not specified.
11+
712
Version 0.2.5
813
-------------
914

docs/build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/html/versions.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
<ul class="current">
8989
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li>
9090
<li class="toctree-l1 current"><a class="current reference internal" href="#">Version History</a><ul>
91+
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-6">Version 0.2.6</a></li>
9192
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-5">Version 0.2.5</a></li>
9293
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-4">Version 0.2.4</a></li>
9394
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-3">Version 0.2.3</a></li>
@@ -162,6 +163,12 @@
162163

163164
<div class="section" id="version-history">
164165
<span id="versions"></span><h1>Version History<a class="headerlink" href="#version-history" title="Permalink to this headline"></a></h1>
166+
<div class="section" id="version-0-2-6">
167+
<h2>Version 0.2.6<a class="headerlink" href="#version-0-2-6" title="Permalink to this headline"></a></h2>
168+
<ul class="simple">
169+
<li><p><code class="code docutils literal notranslate"><span class="pre">sentry</span></code> function now returns a summary object when <code class="code docutils literal notranslate"><span class="pre">return_df=True</span></code> and a <code class="code docutils literal notranslate"><span class="pre">des</span></code> or <code class="code docutils literal notranslate"><span class="pre">spk</span></code> parameter are not specified.</p></li>
170+
</ul>
171+
</div>
165172
<div class="section" id="version-0-2-5">
166173
<h2>Version 0.2.5<a class="headerlink" href="#version-0-2-5" title="Permalink to this headline"></a></h2>
167174
<ul class="simple">

docs/source/versions.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Version History
55
===============
66

7+
Version 0.2.6
8+
-------------
9+
10+
- :code:`sentry` function now returns a summary object when :code:`return_df=True` and a :code:`des` or :code:`spk` parameter are not specified.
11+
712
Version 0.2.5
813
-------------
914

notebooks/Analyzing the Next Decade of Earth Close-Approaching Objects with nasapy.ipynb

Lines changed: 410 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)