-
Notifications
You must be signed in to change notification settings - Fork 7
Template schema docs #134
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
Merged
Merged
Template schema docs #134
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ccb945c
start template schema docs
kelle b47d2f0
formatting
kelle 4dd430e
sources and TOC for template
kelle d2e0eb0
Merge branch 'main' of
kelle 4bce317
Publications
kelle 811dc6b
Photometry and PhotometryFilters
kelle 1505e6d
spectra
kelle d89d2fb
one page per table
kelle da570cc
another commit
kelle 0fa2d79
fix headings
kelle 90631be
dev dec update
kelle 449a137
Update docs/pages/dev_docs/developer_installation.rst
kelle 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
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,3 @@ | ||
| [submodule "astrodb-template-db"] | ||
| path = astrodb-template-db | ||
| url = https://github.com/astrodbtoolkit/astrodb-template-db.git | ||
Submodule astrodb-template-db
added at
f37dfa
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 |
|---|---|---|
|
|
@@ -56,6 +56,7 @@ | |
| "sphinx.ext.mathjax", | ||
| "nbsphinx", | ||
| "pydata_sphinx_theme", | ||
| 'sphinx_mdinclude', | ||
| ] | ||
|
|
||
|
|
||
|
|
||
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 |
|---|---|---|
|
|
@@ -4,4 +4,5 @@ markupsafe==2.0.1 | |
| nbsphinx | ||
| pydata-sphinx-theme | ||
| mock | ||
| sphinx-pyproject | ||
| sphinx-pyproject | ||
| sphinx_mdinclude | ||
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
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,13 @@ | ||
| Association | ||
| ########### | ||
|
|
||
| .. seealso:: | ||
| :doc:`../lookup_tables/associationlist` | ||
| Documentation on the Association List table | ||
|
|
||
| Table Documentation | ||
| =================== | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/Associations.md | ||
|
|
||
|
|
26 changes: 26 additions & 0 deletions
26
docs/pages/template_schema/data_tables/companion_relationships.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| CompanionRelationships | ||
| ####################### | ||
|
|
||
|
|
||
| Notes | ||
| ===== | ||
| Relationship types are not currently constrained but should be one of the following: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This suggests we make a RelationshipTypeList table at some point... |
||
|
|
||
| * *parent*: The source is higher mass/brighter than the companion | ||
| * *sibling*: The source is similar to the companion in the system heirarchy | ||
| * *child*: The source is lower mass/fainter than the companion | ||
| * *unresolved parent*: The source is the unresolved, combined light source of an unresolved multiple system which includes the companion | ||
|
|
||
| .. seealso:: | ||
| :doc:`../lookup_tables/companionlist` | ||
| Documentation on the Companion List table | ||
|
|
||
|
|
||
| Table documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/CompanionRelationships.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/CompanionRelationships.md | ||
20 changes: 20 additions & 0 deletions
20
docs/pages/template_schema/data_tables/companionparameters.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| CompanionParameters | ||
| ################### | ||
|
|
||
| .. seealso:: | ||
|
|
||
| :doc:`../lookup_tables/paramaterlist` | ||
| Documentation for the ParamaterList table | ||
|
|
||
| :doc:`companion_relationships` | ||
| Documentation for the CompanionRelationships table | ||
|
|
||
|
|
||
| Table Documentation | ||
| ==================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/CompanionParameters.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/CompanionParameters.md |
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,14 @@ | ||
| ************* | ||
| Data tables | ||
| ************* | ||
| These tables are examples and can be removed as needed. | ||
| Helper functions in the `astrodb_utils` package are | ||
| designed to help with adding data to these tables. | ||
| Additional tables can be added using these as templates. | ||
|
|
||
| .. toctree:: | ||
| :glob: | ||
| :titlesonly: | ||
| :maxdepth: 1 | ||
|
|
||
| * |
16 changes: 16 additions & 0 deletions
16
docs/pages/template_schema/data_tables/modeledparameters.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ModeledParameters | ||
| ####################### | ||
|
|
||
| .. seealso:: | ||
|
|
||
| :doc:`../lookup_tables/parameterlist` | ||
| Documentation for the ParameterList table | ||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/ModeledParameters.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/ModeledParameters.md |
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,11 @@ | ||
| Parallaxes | ||
| ########## | ||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/Parallaxes.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/Parallaxes.md |
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,29 @@ | ||
| Photometry | ||
| ########## | ||
|
|
||
|
|
||
| Notes | ||
| ===== | ||
| * Band names refer to entries in the :doc:`../lookup_tables/photometryfilters` table and are | ||
| listed at the `SVO filter profile service <http://svo2.cab.inta-csic.es/svo/theory/fps3/index.php?mode=browse&gname=Spitzer&asttype=>`_ | ||
|
|
||
| .. seealso:: | ||
|
|
||
| :doc:`../lookup_tables/photometryfilters` | ||
| Documentation for the PhotometryFilters table | ||
|
|
||
| :doc:`../lookup_tables/regimelist` | ||
| Documentation for the RegimeList table` | ||
|
|
||
| :doc:`../lookup_tables/telescopes` | ||
| Documentation for the Telescopes table | ||
|
|
||
|
|
||
| Table documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/Photometry.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/Photometry.md |
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,11 @@ | ||
| ProperMotions | ||
| ############# | ||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/ProperMotions.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/ProperMotions.md |
11 changes: 11 additions & 0 deletions
11
docs/pages/template_schema/data_tables/radialvelocities.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| RadialVelocities | ||
| ################ | ||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/RadialVelocities.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/RadialVelocities.md |
12 changes: 12 additions & 0 deletions
12
docs/pages/template_schema/data_tables/rotationalparameters.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| RotationalParameters | ||
| ####################### | ||
|
|
||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/RotationalParameters.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/RotationalParameters.md |
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,17 @@ | ||
| SourceTypes | ||
| ########### | ||
|
|
||
| .. seealso:: | ||
|
|
||
| :doc:`../lookup_tables/sourcetypelist` | ||
| Documentation for the SourceTypeList table | ||
|
|
||
|
|
||
| Table documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/SourceTypes.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/SourceTypes.md |
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,29 @@ | ||
| Spectra | ||
| ####### | ||
|
|
||
| .. seealso:: | ||
|
|
||
| :doc:`../lookup_tables/telescopes` | ||
| Documentation for the Telescopes table | ||
|
|
||
| :doc:`../lookup_tables/regimelist` | ||
| Documentation for the RegimeList table` | ||
|
|
||
|
|
||
| Relevant functions: `spectra.ingest_spectrum`, `spectra.spectrum_plottable`, `spectra.find_spectra` | ||
|
|
||
| If the spectrum provided has been modified from the author-provided one, | ||
| a link to the original spectrum can be provided in the `original_spectrum` column. | ||
|
|
||
| The local_spectrum is meant to store the path to a local copy of the spectrum with an | ||
| environment variable to define part of the path (so it can be shared among other users). | ||
| For example: `$ASTRODB_SPECTRA/infrared/filename.fits` | ||
|
|
||
| Notes | ||
| ===== | ||
| * An accurate observation date is required for a spectrum to be ingested. | ||
|
|
||
| * Data based on data from multiple observation dates has 'Multiple observation dates' | ||
| indicated in the *comments* field. One of the dates should be used for the *observation_date*. | ||
|
|
||
| * Spectra for companions should be associated with individual sources and not grouped with the primary source. |
17 changes: 17 additions & 0 deletions
17
docs/pages/template_schema/lookup_tables/associationlist.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| AssociationList | ||
| ############### | ||
|
|
||
| .. seealso:: | ||
| :doc:`../data_tables/associations` | ||
| Documentation on the Association table | ||
|
|
||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/AssociationList.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/AssociationList.md | ||
|
|
16 changes: 16 additions & 0 deletions
16
docs/pages/template_schema/lookup_tables/companionlist.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| CompanionList | ||
| ############### | ||
|
|
||
| .. seealso:: | ||
| :doc:`../data_tables/companion_relationships` | ||
| Documentation on the Companion Relationships table | ||
|
|
||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/CompanionList.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/CompanionList.md |
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,11 @@ | ||
| ************* | ||
| Lookup tables | ||
| ************* | ||
|
|
||
| These tables are expected and used by other tables | ||
|
|
||
| .. toctree:: | ||
| :glob: | ||
| :maxdepth: 1 | ||
|
|
||
| * |
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,17 @@ | ||
| Instruments | ||
| ########### | ||
|
|
||
| .. seealso:: | ||
|
|
||
| :doc:`../lookup_tables/telescopes` | ||
| Documentation for the Telescopes table | ||
|
|
||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/Instruments.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/Instruments.md |
19 changes: 19 additions & 0 deletions
19
docs/pages/template_schema/lookup_tables/parameterlist.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| ParameterList | ||
| ############### | ||
|
|
||
| .. seealso:: | ||
| :doc:`../data_tables/companionparameters` | ||
| Documentation for the CompanionParameters table | ||
|
|
||
| :doc:`../data_tables/modeledparameters` | ||
| Documentation for the ModeledParameters table | ||
|
|
||
|
|
||
| Table Documentation | ||
| =================== | ||
| .. _source: https://github.com/astrodbtoolkit/astrodb-template-db/blob/main/docs/schema/ParameterList.md | ||
|
|
||
| The below table is built directly from the schema and is | ||
| included here from the `astrodb-template-db` documentation: `source`_. | ||
|
|
||
| .. mdinclude:: ../../../../astrodb-template-db/docs/schema/ParameterList.md |
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.