giant.utilities¶
This package provides a few different utility routines for interfacing with external data and general data analysis.
The modules in this package each contain detailed information about what they provide/do and a summary of all of the functionality available from the modules in this package is provided below.
Summary Contents¶
Modules
This package contains helpful mixin classes to provide basic functionality throughout GIANT. |
|
This module provides a helper function to filter a list using a sequence of boolean values |
|
This module provides a class for options management. |
|
This module provides a function for calculating outliers in a 1 dimensional data set using Median Absolute Deviation. |
|
This module provides a utility function to print the lower left triangle of a matrix. |
|
Provides an iterator for generating unique random combinations from a population where order doesn't matter. |
|
This module contains helper functions for transforming from/to spherical coordinates. |
|
This module provides utility functions and classes for quickly creating callable objects to NAIF spice functions as well as a function to convert a datetime object to spice ephemeris time without using spice itself. |
|
This module provides a number of classes for interfacing with files used in the Stereophotoclinometry (SPC) software suite for performing shape modelling and surface feature navigation. |
|
This module provides 2 classes for performing tees of outputs to a file. |
|
This module provides functions for ingesting WCS header data into a format GIANT can understand. |
Classes
A base class that implements equality comparison based on attributes. |
|
A mixin class that provides __str__ and __repr__ functionality. |
|
Mixin class providing UserOptions-based configuration with reset capability. |
|
This is a class used to create a dataclass of user options. |
|
Iterate over number_of_combos random combinations of combo_length from population. |
|
This class creates a callable that returns the position (in km) of one object to another given a python datetime. |
|
This class creates a callable that returns the state vector (position and velocity, km and km/s respectively) of one object to another given a python datetime. |
|
This class creates a callable that returns the rotation from one frame to another as a |
|
This class is used to read/write from the SPC summary (.SUM) files. |
|
This class is used to read and write from SPC Image files (.DAT). |
|
This class is used to read/write from the SPC Nominal (.NOM) files. |
|
This class is used to read and write from SPC Landmark files. |
|
A class to represent the level of precision for the maplet transformation components (position_objmap and rotation_maplet2body). |
|
This class is used to read and write from SPC Maplet files. |
|
This class is used to read and write from SPC Shape files (Implicitly connected Quadrilateral, ICQ format). |
|
An enumeration specifying the options of what to redirect |
|
This class support simultaneously writing to a file and stdout/stderr |
|
This class provides the ability to simultaneously tee both STDOUT and STDERR to a file. |
Functions
Filter a list based on a boolean sequence or NumPy array. |
|
This function can be used to identify outliers in a 1 dimensional set of data. |
|
This pretty prints the lower left triangle of a matrix with labels. |
|
This utility converts (a) right ascension and declination pair(s) expressed in units of radians into (an) unit vector(s). |
|
This function converts a unit vector(s) into a right ascension/declination bearing(s). |
|
This function computes the great-circle angular distance in units of radians between ra/dec pairs. |
|
This function converts a python datetime object to ephemeris time correcting for leap seconds |
|
This function generates a partial function of the spkpos method from spice with the target, frame, abcorr, and observer inputs already set (so that the only remaining input is the ephemeris time). |
|
This function generates a partial function of the spkezr method from spice with the target, frame, abcorr, and observer inputs already set (so that the only remaining input is the ephemeris time). |
|
This function generates a partial function of the pxform function from spice with the from and the to frames specified. |
|
This function takes a callable object that takes a time in ephemeris time and returns a callable object that takes a time as a python datetime object. |
|
This function gets the distortion value from the lithos file pertaining to a specified image |
|
This function converts an astropy WCS object into a GIANT Rotation object. |
|
This function creates a giant .CameraModel that mimics the input WCS object. |
Constants
This is the observation_date format used in SPC summary and nominal files. |