Skip to main content

Calculation of solar data using NASA’s SPICE toolbox.

Project description

spicedsun

Version 0.0.2

Calculation of solar data using NASA’s SPICE toolbox.

This data includes:

  • Azimuth angle (in degrees)
  • Zenith angle (in degrees)

Requirements

  • python>=3.7
  • numpy>=1.21.5
  • spiceypy>=5.0.0

Installation

pip install spicedsun

Kernels

In order to use the package, a directory with all the kernels must be downloaded.

That directory must contain the following kernels:

Usage

If one wanted to obtain the solar azimuth and zenith at Izaña Atmospheric Observatory, on 2022-01-17 at 15:00:00 (UTC), we could use the following snippet of code:

import spicedsun as sps

lat = 28.309283
lon = -16.499143
alt = 2373
dts = ["2022-01-17 15:00:00"]
sds = sps.get_sun_datas(lat, lon, alt, dts, "./kernels")
az = sds[0].azimuth
ze = sds[0].zenith

Note that the kernels directory is called "kernels" and is located in the directory where the previous code is executed.

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

spicedsun-0.0.2.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

spicedsun-0.0.2-py3-none-any.whl (6.1 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