Skip to content

Commit

Permalink
STY: review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Apr 29, 2021
1 parent dc7128d commit b613302
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 33 deletions.
10 changes: 5 additions & 5 deletions docs/citing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ pysatMissions
.. code-block:: latex

@software{pysatMissions,
author = {Jeff Klenzing and
Russell Stoneback and
Angeline Burrell and
Matthew Depew and
Carey Spence},
author = {Klenzing, Jeff and
Stoneback, Russell and
Burrell, Angeline and
Depew, Matthew and
Spence, Carey},
title = {pysat/pysatMissions: Version 0.2.1},
month = jul,
year = 2020,
Expand Down
17 changes: 10 additions & 7 deletions docs/references.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
References
==========

**aacgmv2**
aacgmv2
-------

-----------
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1212694.svg
:target: https://doi.org/10.5281/zenodo.1212694

`aacgmv2 <https://github.com/aburrell/aacgmv2>`_ is a python library for
accessing the Altitude-Adjusted Corrected Geomagnetic (AACGM) coordinates.
Expand All @@ -15,9 +17,11 @@ accessing the Altitude-Adjusted Corrected Geomagnetic (AACGM) coordinates.
Definition and functional approximations. Journal of Geophysical Research:
Space Physics, 119, 7501–7521. https://doi.org/10.1002/2014JA020264

**apexpy**
apexpy
------

----------
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1214206.svg
:target: https://doi.org/10.5281/zenodo.1214206

`apexpy <https://github.com/aburrell/apexpy>`_ is a python library for
calculating magnetic apex coordinates.
Expand All @@ -31,9 +35,8 @@ calculating magnetic apex coordinates.
* Laundal, K. M., & Richmond, A. D. (2017). Magnetic coordinate systems. Space
Science Reviews, 206, 27–59

**pysatMagVect**

----
pysatMagVect
------------

`pysatMagVect <https://github.com/rstoneback/pysatMagVect>`_ calculates
Orthogonal Multipole Magnetic Basis Vectors for the earth's magnetic field.
4 changes: 4 additions & 0 deletions docs/supported_instruments.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
Supported Instruments
=====================

.. _pysat_ephem:

Pysat ephem
-----------

.. automodule:: pysatMissions.instruments.pysat_ephem
:members:

.. _pysat_sgp4:

Pysat SGP4
----------

Expand Down
48 changes: 27 additions & 21 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
Tutorial
========

**Set up sgp4 with pysat**
Set up sgp4 with pysat
----------------------

The sgp4 instrument within pysatMissions is designed to be run like any pysat
instrument. To access, use
The :ref:`pysat_sgp4` instrument within pysatMissions is designed to be run
like any pysat instrument. To access, use

.. code:: python
Expand All @@ -14,8 +15,7 @@ instrument. To access, use
sgp4 = pysat.Instrument(inst_module=pysat_sgp4)
For pysat 3.0.0 or greater, this can be permanently added via the instrument
registry.
This can be permanently added via the instrument registry.

.. code:: python
Expand All @@ -32,14 +32,18 @@ or, to register all modules in pysat
pysat.utils.registry.register_by_module(pysatMissions.instruments)
**Orbital Propagators**
For other instruments, simply replace the module name (in this case, pysat_sgp4)
with the name of the desired instrument.

Orbital Propagators
-------------------

Currently, two orbital propagators are included with pysatMissions. The
pysat_sgp4 instrument uses the wgs72 gravity model to provide satellite position
and velocity in ECI co-ordinates. The pysat_ephem instrument uses the ephem
pysat package to calculate an orbit in lat/lon/alt and ECEF co-ordinates. As
an example, it also loads a series of empirical models to provide simulated
magnetic data as an aid for mission planning.
:ref:`pysat_sgp4` instrument uses the wgs72 gravity model to provide satellite
position and velocity in ECI co-ordinates. The :ref:`pysat_ephem` instrument
uses the ephem pysat package to calculate an orbit in lat/lon/alt and ECEF
co-ordinates. As an example, it also loads a series of empirical models to
provide simulated magnetic data as an aid for mission planning.

The orbital propagators are activated by the load command, similar to any
pysat instrument. To generate a simulated hour of orbital information with a
Expand All @@ -52,24 +56,26 @@ one-second cadence, run
**Empirical Models**
Empirical Models
----------------

A number of methods are included to invoke several python wrappers for empirical
models. This includes the aacgmv2, apexpy, and pysatMagVect models. These
methods can be added to any pysat instrument using the `custom` functions in
pysat.
pysat. The example below adds the aacgmv2 coordinates to one of the test
instruments in the core pysat package.

.. code:: python
import pysat
from pysatMissions.methods import magcoord
ivm = pysat.Instrument(platform='cnofs', name='ivm')
ivm.custom_attach(magcoord.add_aacgm_coordinates,
kwargs={'glat_label': 'glat',
'glong_label': 'glon',
'alt_label': 'altitude'})
inst = pysat.Instrument(platform='pysat', name='testing')
inst.custom_attach(magcoord.add_aacgm_coordinates,
kwargs={'glat_label': 'latitude',
'glong_label': 'longitude',
'alt_label': 'altitude'})
Note that the latitude, longitude, and altitude variable names of the
instrument must be specified since they are not identical to the default names
in the function.
Note that the latitude, longitude, and altitude variable names of the
instrument should be specified since the dataset may use different variable
names from those in the custom function.

0 comments on commit b613302

Please sign in to comment.