SkyMapMod 0.0.21__tar.gz → 0.0.23__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: SkyMapMod
3
- Version: 0.0.21
3
+ Version: 0.0.23
4
4
  Project-URL: Homepage, https://istina.msu.ru/profile/aminevann/
5
5
  Author-email: Anna Amineva <amineva.2219@physics.msu.ru>
6
6
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "SkyMapMod"
7
- version = "0.0.21"
7
+ version = "0.0.23"
8
8
  authors = [
9
9
  { name="Anna Amineva", email="amineva.2219@physics.msu.ru" },
10
10
  ]
@@ -3,9 +3,26 @@ 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
 
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
+
9
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 = []
@@ -19,5 +36,4 @@ def airglow_spectrum(wavelenght_airglow = wavelenght_kp, intensity_airglow = int
19
36
 
20
37
  from .solar_radio_flux import fluxdate
21
38
 
22
- def check(a = fluxdate):
23
- return a
39
+
@@ -1,4 +1,5 @@
1
1
  import requests
2
+ import numpy as np
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