-
Notifications
You must be signed in to change notification settings - Fork 35
Add Dastcom5 Service #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shreyasbapat
wants to merge
16
commits into
NASA-Planetary-Science:main
Choose a base branch
from
shreyasbapat:dastcom5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Dastcom5 Service #115
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ae008dc
Add dastcom module
anhiga 19a15aa
Fix the module for sbpy
shreyasbapat 33f021f
Add tests for Dastcom5 module
shreyasbapat 317e722
Fix PEP8 Errors
shreyasbapat 1633b93
Add pandas to requirements
shreyasbapat de206d1
Fix show download progress
shreyasbapat 005293d
Add Dastcom to utils
shreyasbapat 779e6c3
Add a wrapper around dastcom5
shreyasbapat e85d6b0
Add text about DASTCOM5 to docs
shreyasbapat 61e2b54
Skip the doc example in testing
shreyasbapat 1343367
Use Astropy table instead of pandas
shreyasbapat 605d9c7
Move dastcom to sbpy.data.utils
shreyasbapat 878a87a
Fix rebase artifacts
shreyasbapat 99fe232
Add a parser function
shreyasbapat f0f2b98
Fix some more rebase artifacts
shreyasbapat 2d0bf04
MArk remote tests
shreyasbapat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule astropy_helpers
updated
94 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| ============== | ||
| Using DASTCOM5 | ||
| ============== | ||
|
|
||
|
|
||
| For using the DASTCOM5 Module, you have to first download the databse locally. | ||
| That can be done by: | ||
|
|
||
| >>> from sbpy.data.utils import dastcom5 | ||
| >>> dastcom5.download_dastcom5() # doctest: +SKIP | ||
|
|
||
| After the database is downloaded, all the queries can be done easily. | ||
|
|
||
| DASTCOM5 is a subset of Small Body Database provided by JPL, NASA. | ||
| For querying the database, either name or record number for the object | ||
| can be used. | ||
|
|
||
| >>> dastcom5.orbit_from_name('atira') # doctest: +SKIP | ||
| >>> dastcom5.orbit_from_record(900001) # doctest: +SKIP | ||
|
|
||
| More information about the DASTCOM5 Database can be taken from it's README file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ Content | |
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| dastcom5.rst | ||
| dataclass.rst | ||
| ephem.rst | ||
| obs.rst | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
|
|
||
| # This sub-module is destined for common non-package specific utility | ||
| # functions. | ||
|
|
||
| from sbpy.data.utils import dastcom5 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.