atmosense-abcgan-drivers
Software to generate the drivers for ABCGAN
Installation
This package can be installed with pip
pip install git+https://github.com/sri-geospace/atmosense-abcgan-drivers.git
The following external dependencies are required, some of which may need to be installed manually.
Usage
This package can be used to generate a full set of drivers both within other python scripts and as a stand-alone command line program.
Python Script
In the following example, drivers are calculated once an hour on January 1, 2020.
import abcdrivers
import datetime as dt
starttime = dt.datetime(2020,1,1,0,0,0)
endtime = dt.datetime(2020,1,2,0,0,0)
timestep = 1.0 # in decimal hours
site_lat = 65.5
site_lon = -147.5
# generate an array of times to calculate drivers at
times, utime = abcdrivers.generate_time_array(starttime, endtime, timestep)
# calculate drivers for each time
drivers = abcdrivers.collect_drivers(times, site_lat, site_lon)
Note that it collect_drivers() can take in any array of datetime.datetime objects and it is not necessary to use the generate_time_array() function if the time array is created elsewhere.
Command Line
In order to generate driver from the command line, you must create a config file following the format of the example provided in the project root directory.
abcgan-drivers config.ini
Drivers will be saved to an output hdf5 file along with some other information about the processing. The output file name is specified in the config file.
Drivers
| Key | Full Name | Description |
|---|---|---|
| MLT | Magnetic Local Time | Local time calculated used magnetic coordinate system |
| SLT | Solar Local Time | Local time as determined by the sun's position |
| MLAT | Magnetic Latitude | Apex magnetic latitude |
| SZA | Solar Zenith Angle | Angle between the sun and local zenith |
| ShadHeight | Shadow Height | Height of the Earth's shadow in the atmosphere |
| moon_x | Lunar Position (x) | X component of Lunar position in GSE coordinates |
| moon_y | Lunar Position (y) | Y component of Lunar position in GSE coordinates |
| moon_z | Lunar Position (z) | Z component of Lunar position in GSE coordinates |
| moon_phase | Lunar Phase | Lunar phase in degrees |
| F10.7 | F10.7 Solar Radio Flux | Solar rado flux at 10.7 cm (2800 MHz) in s.f.u (10^-22 W m^-2 Hz^-1) |
| F10.7avg | Average F10.7 Solar Radio Flux | Average solar radio flux at 10.7 cm (2800 MHz) in s.f.u (10^-22 W m^-2 Hz^-1) |
| ap | ap Geomagnetic Index | Three hour equivalent planetary amplitude |
| Ap | Daily Ap Index | Daily equivalent planetary amplitude |
| dst | Disturbance storm-time (Dst) index | Index for geomagnetic storm activity |
| TCI | Thermosphere Climate Index | 60-day running average of global cooling power radiated from the thermosphere |
| MEI | Multivariate ESNO Index | Measure of the El Nino/Southern Oscillation (ESNO)/sea surface temperature |
| RMM1 | First MJO Index | First component of the Madden-Julian Oscillation Indices |
| RMM2 | Second MJO Index | Second component of the Madden-Julian Oscillation Indices |
| T* | Stratospheric Temperature | Stratospheric Temperature at pressure level * |
| U* | Stratospheric Wind | Stratospheric Wind at pressure level * |
Time Range Limitations
Many drivers are extracted from data files included as package data. Consequentially, this package can only calculate drivers in the time ranges these data files cover. To calculate drivers for recent times, the data files may need to be manually updated (see abcdrivers/data_files/README.md). This package cannot calculate drivers for future times.
Metadata
Release files for abcgan-drivers 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| abcgan-drivers-1.0.0.tar.gz | 76.5 MB | Without provenance | Details for abcgan-drivers-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| abcgan_drivers-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for abcgan_drivers-1.0.0-py3-none-any.whl |
Total release size: 153.1 MB
Release files / abcgan-drivers-1.0.0.tar.gz
| Download URL | abcgan-drivers-1.0.0.tar.gz |
|---|---|
| Size | 76.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fc5e041bac7a8af4c3fce347f605679ed5d06cdc2a60de86054d0d0701dfb35
|
|
BLAKE2b-256 checksum How to use checksums |
e0e81062427018ccb0b24f7b7b201d5704d308c79318c024d2bc30cf10caa7ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / abcgan_drivers-1.0.0-py3-none-any.whl
| Download URL | abcgan_drivers-1.0.0-py3-none-any.whl |
|---|---|
| Size | 76.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8fa024a1041edb2e15dcc004ab00cead110b24b12939cddc745e5f71ca83789
|
|
BLAKE2b-256 checksum How to use checksums |
23345ed4a5b266b386047dd4c2fe89bed40409795952d8595a03233d75a31b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for abcgan-drivers 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.