SkyMapMod 0.0.20__tar.gz → 0.0.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {skymapmod-0.0.20 → skymapmod-0.0.22}/PKG-INFO +1 -1
- {skymapmod-0.0.20 → skymapmod-0.0.22}/pyproject.toml +1 -1
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/airglow.py +19 -3
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/solar_radio_flux.py +9 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/LICENSE +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/README.md +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/__init__.py +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/airglow_spectrum.py +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/band_V_data.py +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/modtran_default_kp_transparency.py +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/solar_spectrum.py +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/transparency.py +0 -0
- {skymapmod-0.0.20 → skymapmod-0.0.22}/src/SkyMapMod/zodiac.py +0 -0
@@ -3,10 +3,27 @@ import numpy as np
|
|
3
3
|
import math
|
4
4
|
import matplotlib.pyplot as plt
|
5
5
|
|
6
|
+
from .solar_radio_flux import fluxdate
|
7
|
+
from .solar_radio_flux import fluxtime
|
8
|
+
from .solar_radio_flux import fluxobsflux
|
9
|
+
|
6
10
|
from .airglow_spectrum import wavelenght_kp, intensity_kp
|
7
11
|
from .modtran_default_kp_transparency import wavelenght_modtran_kp, trancparency_modtran_kp
|
8
12
|
|
9
|
-
def
|
13
|
+
def radioflux(date, time): #date -- в формате строки 'дд.мм.гггг', time -- в формате строки 'чч:мм:сс'
|
14
|
+
day, month, year = date.split('.')
|
15
|
+
date = year + month + day
|
16
|
+
hours, minutes, seconds = time.split(':')
|
17
|
+
time = hours + minutes + seconds
|
18
|
+
data_times = fluxtime[np.where(fluxdate==date)[0]]
|
19
|
+
box = []
|
20
|
+
for i in range(data_times.shape[0]):
|
21
|
+
box.append(abs(int(data_times[i]) - int(time)))
|
22
|
+
box = np.array(box)
|
23
|
+
return float(fluxobsflux[np.argmin(box)])
|
24
|
+
|
25
|
+
|
26
|
+
def airglow_spectrum(wavelenght_airglow = wavelenght_kp, intensity_airglow = intensity_kp, wavelenght_atmosphere = wavelenght_modtran_kp, transparency_atmosphere = trancparency_modtran_kp):
|
10
27
|
wavelenght = []
|
11
28
|
intensity = []
|
12
29
|
for i in range(wavelenght_airglow.shape[0]):
|
@@ -19,5 +36,4 @@ def airglow(wavelenght_airglow = wavelenght_kp, intensity_airglow = intensity_kp
|
|
19
36
|
|
20
37
|
from .solar_radio_flux import fluxdate
|
21
38
|
|
22
|
-
|
23
|
-
print(a)
|
39
|
+
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import requests
|
2
|
+
import numpy
|
2
3
|
|
3
4
|
url = "https://www.spaceweather.gc.ca/solar_flux_data/daily_flux_values/fluxtable.txt"
|
4
5
|
response = requests.get(url)
|
@@ -21,3 +22,11 @@ for i in range(2, len(a)-1):
|
|
21
22
|
fluxobsflux.append(a[i].split()[4])
|
22
23
|
fluxadjflux.append(a[i].split()[5])
|
23
24
|
fluxursi.append(a[i].split()[6])
|
25
|
+
|
26
|
+
fluxdate = np.array(fluxdate)
|
27
|
+
fluxtime = np.array(fluxtime)
|
28
|
+
fluxjulian = np.array(fluxjulian)
|
29
|
+
fluxcarrington = np.array(fluxcarrington)
|
30
|
+
fluxobsflux = np.array(fluxobsflux)
|
31
|
+
fluxadjflux = np.array(fluxadjflux)
|
32
|
+
fluxursi = np.array(fluxursi)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|