Catalog PyPI
PACKAGE EXPLORERView in registry

abcgan-drivers

PyPI

ABC driver calculation

Versions collected1
Direct dependencies8From release 1.0.0
Last observed20 Oct, 17:14 UTC

README

Version 1.0.0 documentation

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

KeyFull NameDescription
MLTMagnetic Local TimeLocal time calculated used magnetic coordinate system
SLTSolar Local TimeLocal time as determined by the sun's position
MLATMagnetic LatitudeApex magnetic latitude
SZASolar Zenith AngleAngle between the sun and local zenith
ShadHeightShadow HeightHeight of the Earth's shadow in the atmosphere
moon_xLunar Position (x)X component of Lunar position in GSE coordinates
moon_yLunar Position (y)Y component of Lunar position in GSE coordinates
moon_zLunar Position (z)Z component of Lunar position in GSE coordinates
moon_phaseLunar PhaseLunar phase in degrees
F10.7F10.7 Solar Radio FluxSolar rado flux at 10.7 cm (2800 MHz) in s.f.u (10^-22 W m^-2 Hz^-1)
F10.7avgAverage F10.7 Solar Radio FluxAverage solar radio flux at 10.7 cm (2800 MHz) in s.f.u (10^-22 W m^-2 Hz^-1)
apap Geomagnetic IndexThree hour equivalent planetary amplitude
ApDaily Ap IndexDaily equivalent planetary amplitude
dstDisturbance storm-time (Dst) indexIndex for geomagnetic storm activity
TCIThermosphere Climate Index60-day running average of global cooling power radiated from the thermosphere
MEIMultivariate ESNO IndexMeasure of the El Nino/Southern Oscillation (ESNO)/sea surface temperature
RMM1First MJO IndexFirst component of the Madden-Julian Oscillation Indices
RMM2Second MJO IndexSecond component of the Madden-Julian Oscillation Indices
T*Stratospheric TemperatureStratospheric Temperature at pressure level *
U*Stratospheric WindStratospheric 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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.04 Aug 20238

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:75c210a6b817bc0ab1bacab3f48c61192a29222437e2f79df35fc2c4a61411fd