Skip to main content

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.

Metadata

Release files for spicedsun 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spicedsun 0.0.2
File Size Uploaded
spicedsun-0.0.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spicedsun 0.0.2
File Interpreter ABI Platform
spicedsun-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / spicedsun-0.0.2.tar.gz

Download URL spicedsun-0.0.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b6b349ace92dc300841a99653cedd75132c71f332356a756a2adba978dcc6122
BLAKE2b-256 checksum
How to use checksums
694414859b70217c3e2180ce534259607c75d73415dc635185fb98617b4ef788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / spicedsun-0.0.2-py3-none-any.whl

Download URL spicedsun-0.0.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99c595d743e2152515fe83caec21c444558ce057e2abb60e5d7b16e98e19e7e5
BLAKE2b-256 checksum
How to use checksums
fb0db5082dc2d37eef12161d7bd8ba1a351dcc9efbde86ad144efb64b4f68e8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page