Skip to content

Commit

Permalink
updates, doc build, new notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
aschleg committed Jan 10, 2020
1 parent b622d54 commit 4175cb2
Show file tree
Hide file tree
Showing 12 changed files with 486 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dist/
/build/
nasapy.egg-info/
*.pyc
*.DS_Store
*.DS_Store
*.ipynb_checkpoints
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Version History

## Version 0.2.6

- `sentry` function now returns a summary object when `return_df=True` and a `des` or `spk` parameter are not specified.

## Version 0.2.5

- `sentry` function now returns results as expected when not returning a pandas DataFrame.
Expand Down
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,56 @@ fireballs(date_min='2019-01-01')
fireballs(date_min='2000-01-01', date_max='2020-01-01', return_df=True)
~~~

#### Jet Propulsion Laboratory/Solar System Dynamics small body mission design suite API

~~~ python
# Search for mission design data for SPK-ID 2000433
r = mission_design(spk=2000433)
# Print the object data from the returned dictionary object.
r['object']
~~~

#### Get Data on Near-Earth Object Human Space Flight Accessible Targets

~~~ python
# Get all available summary data for NHATS objects.
n = nhats()
# Get summary data as a pandas DataFrame
n = nhats(return_df=True)
# Get the results from a 'standard' search on the NHATS webpage.
nhats(delta_v=6, duration=360, stay=8, magnitude=26, launch='2020-2045', orbit_condition_code=7)
# Return data for a specific object by its designation
nhats(des=99942)
~~~

#### Get Data from NASA's Center for Near-Earth Object Studies (CNEOS) Scout system

~~~ python
# Get all available summary data.
scout()
# Return all summary data as a pandas DataFrame.
scout(return_df=True)
# Return data and plot files for a specific object by its temporary designation. Note the object may no longer
# exist in the current database
scout(tdes='P20UvyK')
# Get ephemeris data for a specific object at the current time with a Field of View diameter of 5 arc-minutes
# with a limiting V-magnitude of 23.1.
scout(tdes='P20UvyK', fov_diam=5, fov_vmag=23.1)
~~~

#### Get Data from the Center for Near Earth Object Studies (CNEOS) Sentry system

~~~ python
# Get summary data for available sentry objects.
sentry()
# Get summary data as a pandas DataFrame
sentry(return_df=True)
# Get data for a specific Sentry object by its designation.
sentry(des=99942)
# Get data for objects removed from the Sentry system.
sentry(removed=1)
~~~

Other function examples

#### Getting the Julian and Modified Julian Date
Expand Down
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/versions.doctree
Binary file not shown.
5 changes: 5 additions & 0 deletions docs/build/html/_sources/versions.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
Version History
===============

Version 0.2.6
-------------

- :code:`sentry` function now returns a summary object when :code:`return_df=True` and a :code:`des` or :code:`spk` parameter are not specified.

Version 0.2.5
-------------

Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/build/html/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Version History</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-6">Version 0.2.6</a></li>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-5">Version 0.2.5</a></li>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-4">Version 0.2.4</a></li>
<li class="toctree-l2"><a class="reference internal" href="#version-0-2-3">Version 0.2.3</a></li>
Expand Down Expand Up @@ -162,6 +163,12 @@

<div class="section" id="version-history">
<span id="versions"></span><h1>Version History<a class="headerlink" href="#version-history" title="Permalink to this headline"></a></h1>
<div class="section" id="version-0-2-6">
<h2>Version 0.2.6<a class="headerlink" href="#version-0-2-6" title="Permalink to this headline"></a></h2>
<ul class="simple">
<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>
</ul>
</div>
<div class="section" id="version-0-2-5">
<h2>Version 0.2.5<a class="headerlink" href="#version-0-2-5" title="Permalink to this headline"></a></h2>
<ul class="simple">
Expand Down
5 changes: 5 additions & 0 deletions docs/source/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
Version History
===============

Version 0.2.6
-------------

- :code:`sentry` function now returns a summary object when :code:`return_df=True` and a :code:`des` or :code:`spk` parameter are not specified.

Version 0.2.5
-------------

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='nasapy',
version='0.2.5',
version='0.2.6',
author='Aaron Schlegel',
author_email='[email protected]',
description='Python wrapper for the NASA API',
Expand Down

0 comments on commit 4175cb2

Please sign in to comment.