Skip to content
Snippets Groups Projects
Commit aabe00a3 authored by Adam Paquette's avatar Adam Paquette
Browse files

updated config with recommended changes and started documenting functions

parent 91d683ab
Branches
No related tags found
No related merge requests found
...@@ -21,12 +21,12 @@ import guzzle_sphinx_theme ...@@ -21,12 +21,12 @@ import guzzle_sphinx_theme
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'ale' project = 'ALE'
copyright = '2018, Adam Paquette' copyright = 'Public Domain'
author = 'Adam Paquette' author = 'USGS, Astrogeology Science Center'
# The short X.Y version # The short X.Y version
version = '' version = '0.1'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = '0.1.0' release = '0.1.0'
...@@ -43,6 +43,8 @@ release = '0.1.0' ...@@ -43,6 +43,8 @@ release = '0.1.0'
breathe_projects = {"ale": "./../doxyxml/"} breathe_projects = {"ale": "./../doxyxml/"}
# breathe_projects_source = {"ale": ("../../include", ['ale.h'])}
breathe_default_project = "ale" breathe_default_project = "ale"
extensions = [ extensions = [
...@@ -144,7 +146,7 @@ latex_elements = { ...@@ -144,7 +146,7 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(master_doc, 'ALE.tex', 'ALE Documentation', (master_doc, 'ALE.tex', 'ALE Documentation',
'Adam Paquette', 'manual'), author, 'manual'),
] ]
......
ALE C API ALE Package
====== ===========
.. doxygenfile:: ale.cpp .. toctree::
:project: ale :maxdepth: 2
library/index
:mod:`capi` --- Input/Output Algorithms :mod:`capi` --- Module C Functions
============================================ ============================================
The :mod:`src` module The :mod:`src` module
.. doxygenfile:: ale.h
:project: ale
.. versionadded:: 0.1.0 .. versionadded:: 0.1.0
:mod:`capi` --- All A.L.E. functions :mod:`capi` --- All ALE functions
=================================== ===================================
The internal data structures used by PyHAT to represent 1d, 2d, and n-dimensional data. The internal data structures used by PyHAT to represent 1d, 2d, and n-dimensional data.
......
#ifndef ALE_INCLUDE_ALE_H #ifndef ALE_INCLUDE_ALE_H
#define ALE_INCLUDE_ALE_H #define ALE_INCLUDE_ALE_H
/// @file
#include <json.hpp> #include <json.hpp>
#include <string> #include <string>
...@@ -14,27 +15,74 @@ namespace ale { ...@@ -14,27 +15,74 @@ namespace ale {
spline spline
}; };
nlohmann::json constructStateFromIsd(const std::string positionRotationData); /**
*@brief Get the position of the spacecraft at a given time based on a set of coordinates, and their associated times
*@param coords a vector of double vectors of coordinates
*@param times a double vector of times
*@param time time to observe the spacecraft's position at
*@param interp interpolation type
*/
std::vector<double> getPosition(std::vector<std::vector<double>> coords, std::vector<double> getPosition(std::vector<std::vector<double>> coords,
std::vector<double> times, std::vector<double> times,
double time, interpolation interp); double time, interpolation interp);
/**
*@brief Get the velocity of the spacecraft at a given time based on a set of coordinates, and their associated times
*@param coords a vector of double vectors of coordinates
*@param times a double vector of times
*@param time time to observe the spacecraft's velocity at
*@param interp interpolation type
*/
std::vector<double> getVelocity(std::vector<std::vector<double>> coords, std::vector<double> getVelocity(std::vector<std::vector<double>> coords,
std::vector<double> times, std::vector<double> times,
double time, const interpolation interp); double time, const interpolation interp);
/**
*@brief Get the position of the spacecraft at a given time based on a derived function from a set of coeffcients
*@param coeffs a vector of double vector of coeffcients
*@param time time to observe the spacecraft's position at
*/
std::vector<double> getPosition(std::vector<std::vector<double>> coeffs, double time); std::vector<double> getPosition(std::vector<std::vector<double>> coeffs, double time);
/**
*@brief Get the velocity of the spacecraft at a given time based on a derived function from a set of coeffcients
*@param coeffs a vector of double vector of coeffcients
*@param time time to observe the spacecraft's velocity at
*/
std::vector<double> getVelocity(std::vector<std::vector<double>> coeffs, double time); std::vector<double> getVelocity(std::vector<std::vector<double>> coeffs, double time);
/**
*@brief Get the rotation of the spacecraft at a given time based on a set of rotations, and their associated times
*@param rotations a vector of double vector of rotations
*@param times a double vector of times
*@param time time to observe the spacecraft's rotation at
*@param interp interpolation type
*/
std::vector<double> getRotation(std::vector<std::vector<double>> rotations, std::vector<double> getRotation(std::vector<std::vector<double>> rotations,
std::vector<double> times, std::vector<double> times,
double time, interpolation interp); double time, interpolation interp);
/**
*@brief Get the angular velocity of the spacecraft at a given time based on a set of rotations, and their associated times
*@param rotations a vector of double vector of rotations
*@param times a double vector of times
*@param time time to observe the spacecraft's angular velocity at
*@param interp interpolation type
*/
std::vector<double> getAngularVelocity(std::vector<std::vector<double>> rotations, std::vector<double> getAngularVelocity(std::vector<std::vector<double>> rotations,
std::vector<double> times, std::vector<double> times,
double time, interpolation interp); double time, interpolation interp);
/**
*@brief Get the rotation of the spacecraft at a given time based on a derived function from a set of coeffcients
*@param coeffs a vector of double vector of coeffcients
*@param time time to observe the spacecraft's rotation at
*/
std::vector<double> getRotation(std::vector<std::vector<double>> coeffs, double time); std::vector<double> getRotation(std::vector<std::vector<double>> coeffs, double time);
/**
*@brief Get the angular velocity of the spacecraft at a given time based on a derived function from a set of coeffcients
*@param coeffs a vector of double vector of coeffcients
*@param time time to observe the spacecraft's angular velocity at
*/
std::vector<double> getAngularVelocity(std::vector<std::vector<double>> coeffs, double time); std::vector<double> getAngularVelocity(std::vector<std::vector<double>> coeffs, double time);
double evaluatePolynomial(std::vector<double> coeffs, double time, int d); double evaluatePolynomial(std::vector<double> coeffs, double time, int d);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment