Skip to main content

A Python package to Calculate and Visualize Spacecraft Instrument Orientation

Reason this release was yanked:

old release. instrument pointing direction in enu and enu_c coordinates have been included in new release v1.2.1.

Project description

cavsiopy: Calculation and Visualization of Spacecraft Instrument Orientation

DOI

cavsiopy

Welcome to cavsiopy!

'cavsiopy' is an open source Python package, which was specifically developed to determine the look direction of the Radio Receiver Instrument (RRI) on the e-POP/ CASSIOPE/ Swarm-E for HF radio wave propagation studies, but can be applied to any satellite mission requiring accurate pointing information. Given the spacecraft position, the roll, yaw, and pitch angles, the body vector of the instrument, and a target location, the pointing direction and orientation of the instrument onboard the spacecraft with respect to the target can be determined in various reference frames. 'cavsiopy' supports the reference frames: Geocentric Equatorial Inertial J2000 (GEI J2K), Earth Centered Earth Fixed (ECEF), International Terrestrial Reference Frame (ITRF), geodetic North-East-Down, and geocentric North-East-Center.

cavsiopy contains routines for

  1. Rotating the look direction of an instrument on-board the spacecraft in orbital frame

  2. Calculation of the look angles of the spacecraft (elevation and azimuth)

  3. Calculation of the look angles of the instrument (elevation and azimuth)

  4. Calculation of the distance between the spacecraft and a designated point on the ground

  5. Calculation of the line-of-sight direction vector from the target to the spacecraft location

  6. Transformations between GEI J2K, ECEF, NED, NEC, ICRF, ITRF reference frames

  7. Visualization of spacecraft and instrument direction in 2D and 3D (simple or overlaid on geographical regions of the Earth below the satellite trajectory)

  8. Rotation matrices for rotations by x, y, z axes

Instrument pointing direction vectors can be obtained in GEI J2K, ECEF, NED, NEC, ICRF, ITRF.

Citation

If you use any of the cavsiopy functions/modules/plots please cite the software using DOI: https://doi.org/10.5281/zenodo.8361256

Dependencies

numpy, matplotlib, astropy, cartopy, geopy, h5py, pysofa2

Installation using pip:

Before installing cavsiopy some of the dependencies may need special installation instructions:

cartopy

  • If you are installing cartopy via pip (on Ubuntu/Debian) first libgeos-dev has to be on your system:
$ sudo apt -y install libgeos-dev
$ conda install -c conda-forge cartopy

Other packages and requirements

Download the requirements.txt from https://github.com/icebearcanada/cavsiopy

$ pip install -r requirements.txt

** Now, we are good to go! **

$ pip install cavsiopy

Installation using conda

$ conda install -c eceren cavsiopy

Version 1.2.0 Release Highlights

  1. East-North-Up: enu and Easth-North-Center(up): enc_u have been added to the returns of find_attitude function.

  2. utils.py added to find the location of coefficient files for pysofa, and removed the declaration of coefficient files for pysofa for the find_attitude function.

  3. Eclipse parameter can now be imported using ephemeris_importer.cas_ephemeris function from the CAS_ephemeris data files.

  4. Example python codes have been updated accordingly.

  5. Citation information has been added to init.py.

  6. Package dependencies have been corrected for the conda installable.

  7. Requirements.txt file has been updated.

Version 1.1.1

  1. 'attitude_3d_ground_quiver' has been enhanced to display a line connecting the subsatellite point with the ground target on the ground map.
  2. In 'rri_example.py' 'rotate_rri' function is renamed as 'rotate_inst.'
  3. name changes for several functions in auxiliary\preliminary_data_analysis.py module : plot_data_validity, import_quaternions.

Version 1.1.0: 'pysofa2' Integration

In previous versions, cavsiopy used the 'pysofa' package developed by Frederic Grollier in 2010.

Starting from version 1.1.0, we have transitioned to using 'pysofa2.'

To address missing functions in 'pysofa2,' we introduced 'complement_missing_sofa.py,' which utilizes the SOFA C Library compiled by 'pysofa2.'

Credits: E. Ceren K. Eyiguler, Warren Holley, Andrew D. Howarth, Donald W. Danskin, Kuldeep Pandey, Carley J. Martin

Contributing: Glenn C. Hussey, Robert Gillies, Andrew W. Yau

License: GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cavsiopy-1.2.0.tar.gz (4.7 MB view hashes)

Uploaded Source

Built Distribution

cavsiopy-1.2.0-py3-none-any.whl (783.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page